Update app.py
Browse files
app.py
CHANGED
|
@@ -1,27 +1,27 @@
|
|
| 1 |
from flask import Flask
|
| 2 |
-
import seaborn as sns
|
| 3 |
-
from sklearn.linear_model import LogisticRegression
|
| 4 |
|
| 5 |
app = Flask(__name__)
|
| 6 |
|
| 7 |
@app.route('/')
|
| 8 |
def hello_world():
|
| 9 |
-
iris1 =sns.load_dataset("iris")
|
| 10 |
-
modlog= LogisticRegression (max_iter=300)
|
| 11 |
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
|
| 16 |
-
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
|
| 24 |
-
return 'Hello, AIML july 25 batch'
|
| 25 |
|
| 26 |
if __name__ == "__main__":
|
| 27 |
app.run(debug=True, host="0.0.0.0", port=5000)
|
|
|
|
| 1 |
from flask import Flask
|
| 2 |
+
#import seaborn as sns
|
| 3 |
+
#from sklearn.linear_model import LogisticRegression
|
| 4 |
|
| 5 |
app = Flask(__name__)
|
| 6 |
|
| 7 |
@app.route('/')
|
| 8 |
def hello_world():
|
| 9 |
+
#iris1 =sns.load_dataset("iris")
|
| 10 |
+
#modlog= LogisticRegression (max_iter=300)
|
| 11 |
|
| 12 |
+
# irisarr = iris1.values
|
| 13 |
+
# X = irisarr[:,0:4]
|
| 14 |
+
# Y = irisarr[:,4]
|
| 15 |
|
| 16 |
+
# modlog.fit(X,Y)
|
| 17 |
|
| 18 |
+
# sl = 5.1
|
| 19 |
+
# sw = 3.5
|
| 20 |
+
# pl = 1.4
|
| 21 |
+
# pw = 0.2 #setosa
|
| 22 |
+
# res = modlog.predict([[ sl , sw ,pl ,pw ] ])
|
| 23 |
|
| 24 |
+
return 'Hello, AIML july 25 batch' # + str(res[0])
|
| 25 |
|
| 26 |
if __name__ == "__main__":
|
| 27 |
app.run(debug=True, host="0.0.0.0", port=5000)
|