Update app.py
Browse files
app.py
CHANGED
@@ -9,11 +9,14 @@ import joblib
|
|
9 |
project = hopsworks.login(api_key_value="0rdWXlLgEd3mkGOg.iRZ7TtAkWGPlJHNQcAEph6Qbokoaq7QTBRI9ckwWUki8tIYGyBvrKhJvtLoUOGQ4")
|
10 |
fs = project.get_feature_store()
|
11 |
|
12 |
-
mr = project.get_model_registry()
|
13 |
-
model = mr.get_model("xgboost_model", version=1)
|
14 |
-
model_dir = model.download()
|
15 |
-
model = joblib.load("/model.pkl")
|
16 |
-
|
|
|
|
|
|
|
17 |
|
18 |
def forecast():
|
19 |
|
|
|
9 |
project = hopsworks.login(api_key_value="0rdWXlLgEd3mkGOg.iRZ7TtAkWGPlJHNQcAEph6Qbokoaq7QTBRI9ckwWUki8tIYGyBvrKhJvtLoUOGQ4")
|
10 |
fs = project.get_feature_store()
|
11 |
|
12 |
+
# mr = project.get_model_registry()
|
13 |
+
# model = mr.get_model("xgboost_model", version=1)
|
14 |
+
# model_dir = model.download()
|
15 |
+
# model = joblib.load("/model.pkl")
|
16 |
+
model = get_model(project=project,
|
17 |
+
model_name="xgboost_model",
|
18 |
+
evaluation_metric="f1_score",
|
19 |
+
sort_metrics_by="max")
|
20 |
|
21 |
def forecast():
|
22 |
|