Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,10 +8,10 @@ warnings.simplefilter("ignore", UserWarning)
|
|
| 8 |
MODEL = pickle.load(open('IF_model_anomaly.pkl','rb'))
|
| 9 |
|
| 10 |
st.title("Retail Anomaly")
|
| 11 |
-
st.write("""
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
""")
|
| 16 |
|
| 17 |
def prediction(sales,model):
|
|
|
|
| 8 |
MODEL = pickle.load(open('IF_model_anomaly.pkl','rb'))
|
| 9 |
|
| 10 |
st.title("Retail Anomaly")
|
| 11 |
+
st.write(""" An anomaly (also known as an outlier) is when something happens that is outside of the norm, when it stands out or deviates from what is expected.
|
| 12 |
+
There are different kinds of anomalies in an e-commerce setting, they can be product anomaly, conversion anomaly or marketing anomaly.
|
| 13 |
+
The model used is Isolation Forest, which is built based on decision trees and is an unsupervised model.
|
| 14 |
+
Isolation forests can be used to detect anomaly in high dimensional and large datasets, with no labels.
|
| 15 |
""")
|
| 16 |
|
| 17 |
def prediction(sales,model):
|