EmreEgilmez commited on
Commit
4e29053
1 Parent(s): ceb81ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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 with AI")
10
 
11
  # Train ve Test verilerini yükleme
12
- train_file = st.file_uploader("Upload your train CSV", type=["csv"])
13
- test_file = st.file_uploader("Upload your test CSV", type=["csv"])
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("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^2 Score: {performance:.2f}")
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}")