LovnishVerma commited on
Commit
2371a68
·
verified ·
1 Parent(s): efb6081

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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
- from sklearn.pipeline import make_pipeline
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
- # Create pipeline: Scaling + Logistic Regression
19
- model = make_pipeline(StandardScaler(), LogisticRegression())
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('/')