File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 2
2
import numpy as np
3
3
import pandas as pd
4
4
from anomaly_detector import MultivariateAnomalyDetector
5
- from anomaly_detector import UnivariateAnomalyDetector
6
5
from mlflow .models import infer_signature
7
6
8
- mlflow .set_tracking_uri (uri = "http://127.0.0.1:5000 " )
7
+ mlflow .set_tracking_uri (uri = "http://127.0.0.1:8080 " )
9
8
10
9
11
10
def main ():
@@ -26,7 +25,7 @@ def main():
26
25
model .fit (training_data , params = params )
27
26
predict_params = {"start_time" : "string" , "end_time" : "string" }
28
27
signature = infer_signature (params = predict_params )
29
- print ( model )
28
+
30
29
model_info = mlflow .pyfunc .log_model (
31
30
python_model = model ,
32
31
artifact_path = "mvad_artifacts" ,
@@ -52,4 +51,4 @@ def main():
52
51
53
52
54
53
if __name__ == "__main__" :
55
- main ()
54
+ main ()
Original file line number Diff line number Diff line change 4
4
from anomaly_detector import EntireAnomalyDetector
5
5
from mlflow .models import infer_signature
6
6
7
- mlflow .set_tracking_uri (uri = "http://127.0.0.1:5000 " )
7
+ mlflow .set_tracking_uri (uri = "http://127.0.0.1:8080 " )
8
8
9
9
10
10
def main ():
@@ -24,7 +24,7 @@ def main():
24
24
model = EntireAnomalyDetector ()
25
25
26
26
signature = infer_signature (params = params )
27
- print ( model )
27
+
28
28
model_info = mlflow .pyfunc .log_model (
29
29
python_model = model ,
30
30
artifact_path = "uvad_artifacts" ,
You can’t perform that action at this time.
0 commit comments