Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,22 +17,19 @@ import numpy as np
|
|
17 |
import streamlit as st
|
18 |
import plotly.graph_objs as go
|
19 |
|
20 |
-
# For measuring the inference time.
|
21 |
-
import time
|
22 |
-
|
23 |
def main():
|
24 |
data = get_data('jewellery')
|
25 |
s = setup(data, session_id = 123)
|
26 |
|
27 |
-
exp_clustering = ClusteringExperiment()
|
28 |
exp_anomaly = AnomalyExperiment()
|
29 |
|
30 |
# init setup on exp
|
31 |
-
exp_clustering.setup(data, session_id = 123)
|
32 |
exp_anomaly.setup(data, session_id = 123)
|
33 |
|
34 |
# train kmeans model
|
35 |
-
kmeans = create_model('kmeans')
|
36 |
iforest = create_model('iforest')
|
37 |
|
38 |
# kmeans_cluster = assign_model(kmeans)
|
|
|
17 |
import streamlit as st
|
18 |
import plotly.graph_objs as go
|
19 |
|
|
|
|
|
|
|
20 |
def main():
|
21 |
data = get_data('jewellery')
|
22 |
s = setup(data, session_id = 123)
|
23 |
|
24 |
+
# exp_clustering = ClusteringExperiment()
|
25 |
exp_anomaly = AnomalyExperiment()
|
26 |
|
27 |
# init setup on exp
|
28 |
+
# exp_clustering.setup(data, session_id = 123)
|
29 |
exp_anomaly.setup(data, session_id = 123)
|
30 |
|
31 |
# train kmeans model
|
32 |
+
# kmeans = create_model('kmeans')
|
33 |
iforest = create_model('iforest')
|
34 |
|
35 |
# kmeans_cluster = assign_model(kmeans)
|