Spaces:
Build error
Build error
kdnv update
Browse files- images/logreg.png +0 -0
- images/lstm.png +0 -0
- images/output.png +0 -0
- pages/kudinov_films.py +32 -0
images/logreg.png
ADDED
|
images/lstm.png
ADDED
|
images/output.png
ADDED
|
pages/kudinov_films.py
CHANGED
|
@@ -6,6 +6,7 @@ import json
|
|
| 6 |
import transformers
|
| 7 |
from torch import nn
|
| 8 |
import joblib
|
|
|
|
| 9 |
|
| 10 |
|
| 11 |
autotoken = transformers.AutoTokenizer.from_pretrained(
|
|
@@ -92,3 +93,34 @@ if submit:
|
|
| 92 |
with col3:
|
| 93 |
st.metric(label="Logistic Regression Prediction", value=ans_lr)
|
| 94 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
import transformers
|
| 7 |
from torch import nn
|
| 8 |
import joblib
|
| 9 |
+
import pandas as pd
|
| 10 |
|
| 11 |
|
| 12 |
autotoken = transformers.AutoTokenizer.from_pretrained(
|
|
|
|
| 93 |
with col3:
|
| 94 |
st.metric(label="Logistic Regression Prediction", value=ans_lr)
|
| 95 |
|
| 96 |
+
data = {
|
| 97 |
+
"Model Setup": [
|
| 98 |
+
"logreg tf-idf",
|
| 99 |
+
"rf tf-idf",
|
| 100 |
+
"catboost tf-idf",
|
| 101 |
+
"svc tf-idf",
|
| 102 |
+
"logreg bow",
|
| 103 |
+
"rf bow",
|
| 104 |
+
"catboost bow",
|
| 105 |
+
"svc bow",
|
| 106 |
+
"word2vec + LSTM + богдан",
|
| 107 |
+
"bert + linear"
|
| 108 |
+
],
|
| 109 |
+
"F1 Score": [
|
| 110 |
+
"0.666", "0.608", "0.654", "0.666",
|
| 111 |
+
"0.648", "0.563", "0.619", "0.646",
|
| 112 |
+
"0.653", "0.660"
|
| 113 |
+
]
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
df = pd.DataFrame(data)
|
| 117 |
+
|
| 118 |
+
st.title("Результаты обучения моделей")
|
| 119 |
+
st.table(df)
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
st.image('images/lstm.png')
|
| 123 |
+
st.image('images/output.png')
|
| 124 |
+
st.image('images/logreg.png')
|
| 125 |
+
|
| 126 |
+
|