Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -87,6 +87,7 @@ def prediction():
|
|
| 87 |
df['Vehicle_Damage'] = le_vDamage.fit_transform(df['Vehicle_Damage'])
|
| 88 |
|
| 89 |
x = df.drop('Response', axis = 1)
|
|
|
|
| 90 |
y = df['Response']
|
| 91 |
|
| 92 |
#balancing the data for Target column
|
|
@@ -94,6 +95,7 @@ def prediction():
|
|
| 94 |
|
| 95 |
smt = SMOTE(k_neighbors=8, random_state=10)
|
| 96 |
x_new, y_new = smt.fit_resample(x, y)
|
|
|
|
| 97 |
#x_new.shape, y_new.shape
|
| 98 |
|
| 99 |
#Splitting the data into train and test datasets
|
|
|
|
| 87 |
df['Vehicle_Damage'] = le_vDamage.fit_transform(df['Vehicle_Damage'])
|
| 88 |
|
| 89 |
x = df.drop('Response', axis = 1)
|
| 90 |
+
print(x.shape)
|
| 91 |
y = df['Response']
|
| 92 |
|
| 93 |
#balancing the data for Target column
|
|
|
|
| 95 |
|
| 96 |
smt = SMOTE(k_neighbors=8, random_state=10)
|
| 97 |
x_new, y_new = smt.fit_resample(x, y)
|
| 98 |
+
print(x_new)
|
| 99 |
#x_new.shape, y_new.shape
|
| 100 |
|
| 101 |
#Splitting the data into train and test datasets
|