joaocansi
commited on
Commit
·
d4a9bd3
1
Parent(s):
4da7379
app.py
CHANGED
@@ -11,7 +11,7 @@ model = AutoModel.from_pretrained("neuralmind/bert-base-portuguese-cased")
|
|
11 |
model.eval()
|
12 |
|
13 |
data = np.load("x_train.npy")
|
14 |
-
iso_forest = IsolationForest(contamination=0.
|
15 |
iso_forest.fit(data)
|
16 |
|
17 |
def classify_email(text):
|
|
|
11 |
model.eval()
|
12 |
|
13 |
data = np.load("x_train.npy")
|
14 |
+
iso_forest = IsolationForest(contamination=0.25, random_state=42)
|
15 |
iso_forest.fit(data)
|
16 |
|
17 |
def classify_email(text):
|