Skip to content

Commit 933772c

Browse files
committed
fix
1 parent ab707b0 commit 933772c

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

anomaly-detector/tests/e2e_test_1.py anomaly-detector/tests/e2e_test_mvad.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
import numpy as np
33
import pandas as pd
44
from anomaly_detector import MultivariateAnomalyDetector
5-
from anomaly_detector import UnivariateAnomalyDetector
65
from mlflow.models import infer_signature
76

8-
mlflow.set_tracking_uri(uri="http://127.0.0.1:5000")
7+
mlflow.set_tracking_uri(uri="http://127.0.0.1:8080")
98

109

1110
def main():
@@ -26,7 +25,7 @@ def main():
2625
model.fit(training_data, params=params)
2726
predict_params = {"start_time": "string", "end_time": "string"}
2827
signature = infer_signature(params=predict_params)
29-
print(model)
28+
3029
model_info = mlflow.pyfunc.log_model(
3130
python_model=model,
3231
artifact_path="mvad_artifacts",
@@ -52,4 +51,4 @@ def main():
5251

5352

5453
if __name__ == "__main__":
55-
main()
54+
main()

anomaly-detector/tests/e2e_test_2.py anomaly-detector/tests/e2e_test_uvad.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from anomaly_detector import EntireAnomalyDetector
55
from mlflow.models import infer_signature
66

7-
mlflow.set_tracking_uri(uri="http://127.0.0.1:5000")
7+
mlflow.set_tracking_uri(uri="http://127.0.0.1:8080")
88

99

1010
def main():
@@ -24,7 +24,7 @@ def main():
2424
model = EntireAnomalyDetector()
2525

2626
signature = infer_signature(params=params)
27-
print(model)
27+
2828
model_info = mlflow.pyfunc.log_model(
2929
python_model=model,
3030
artifact_path="uvad_artifacts",

0 commit comments

Comments
 (0)