Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,7 @@
|
|
1 |
from flask import Flask, render_template, request
|
2 |
import pandas as pd
|
3 |
from sklearn.linear_model import LogisticRegression
|
4 |
-
|
5 |
-
from sklearn.preprocessing import StandardScaler
|
6 |
|
7 |
app = Flask(__name__)
|
8 |
|
@@ -15,8 +14,8 @@ X = iris[['sepal_length', 'sepal_width', 'petal_length', 'petal_width']]
|
|
15 |
y = iris['species']
|
16 |
|
17 |
|
18 |
-
#
|
19 |
-
model =
|
20 |
model.fit(X, y) # Train once
|
21 |
|
22 |
@app.route('/')
|
|
|
1 |
from flask import Flask, render_template, request
|
2 |
import pandas as pd
|
3 |
from sklearn.linear_model import LogisticRegression
|
4 |
+
|
|
|
5 |
|
6 |
app = Flask(__name__)
|
7 |
|
|
|
14 |
y = iris['species']
|
15 |
|
16 |
|
17 |
+
# Logistic Regression
|
18 |
+
model = LogisticRegression()
|
19 |
model.fit(X, y) # Train once
|
20 |
|
21 |
@app.route('/')
|