Spaces:
Runtime error
Runtime error
Commit
•
4e29053
1
Parent(s):
ceb81ef
Update app.py
Browse files
app.py
CHANGED
@@ -6,11 +6,11 @@ from sklearn.preprocessing import LabelEncoder, OneHotEncoder
|
|
6 |
from sklearn.metrics import r2_score, accuracy_score
|
7 |
|
8 |
# Streamlit başlığı
|
9 |
-
st.title("Data Corrector
|
10 |
|
11 |
# Train ve Test verilerini yükleme
|
12 |
-
train_file = st.file_uploader("Upload
|
13 |
-
test_file = st.file_uploader("Upload
|
14 |
|
15 |
if train_file and test_file:
|
16 |
train_df = pd.read_csv(train_file)
|
@@ -110,9 +110,9 @@ if train_file and test_file:
|
|
110 |
st.write("Test Data with Predictions", test_df)
|
111 |
|
112 |
if performances:
|
113 |
-
st.write("
|
114 |
for column, model_type, performance in performances:
|
115 |
if model_type == "numeric":
|
116 |
-
st.write(f"Column: {column}, Type: {model_type}, R
|
117 |
else:
|
118 |
-
st.write(f"Column: {column}, Type: {model_type}, Accuracy Score: {performance:.2f}")
|
|
|
6 |
from sklearn.metrics import r2_score, accuracy_score
|
7 |
|
8 |
# Streamlit başlığı
|
9 |
+
st.title("Automatic Data Corrector / Quality Enhancer Tool")
|
10 |
|
11 |
# Train ve Test verilerini yükleme
|
12 |
+
train_file = st.file_uploader("Upload Your Train Data", type=["csv"])
|
13 |
+
test_file = st.file_uploader("Upload Your Test Data", type=["csv"])
|
14 |
|
15 |
if train_file and test_file:
|
16 |
train_df = pd.read_csv(train_file)
|
|
|
110 |
st.write("Test Data with Predictions", test_df)
|
111 |
|
112 |
if performances:
|
113 |
+
st.write("MODEL PERFORMANCE:")
|
114 |
for column, model_type, performance in performances:
|
115 |
if model_type == "numeric":
|
116 |
+
st.write(f"Column: {column} , Type: {model_type} , R² Score: {performance:.2f}")
|
117 |
else:
|
118 |
+
st.write(f"Column: {column} , Type: {model_type} , Accuracy Score: {performance:.2f}")
|