Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -103,6 +103,8 @@ def prediction():
|
|
| 103 |
xtrain, xtest, ytrain, ytest = train_test_split(x_new, y_new, test_size =.30, random_state = 0)
|
| 104 |
#xtrain.shape, xtest.shape, ytrain.shape, ytest.shape
|
| 105 |
|
|
|
|
|
|
|
| 106 |
|
| 107 |
from sklearn.preprocessing import StandardScaler
|
| 108 |
|
|
@@ -162,7 +164,7 @@ def prediction():
|
|
| 162 |
|
| 163 |
report_data = np.array([ Gender , Age , Driving_License , Region_Code , Previously_Insured , Vehicle_Age ,
|
| 164 |
Vehicle_Damage , Annual_Premium , Policy_Sales_Channel , Vintage ], ndmin=2)
|
| 165 |
-
|
| 166 |
|
| 167 |
#user_data = np.array(['gender','age','license','regioncode','is_previously_insured','vechile_age','is_your_vechile_damaged','annual_premium','policy_sales_channel','number_of_days_company',ndim=2])
|
| 168 |
scaler = StandardScaler()
|
|
|
|
| 103 |
xtrain, xtest, ytrain, ytest = train_test_split(x_new, y_new, test_size =.30, random_state = 0)
|
| 104 |
#xtrain.shape, xtest.shape, ytrain.shape, ytest.shape
|
| 105 |
|
| 106 |
+
st.write(xtrain.shape)
|
| 107 |
+
|
| 108 |
|
| 109 |
from sklearn.preprocessing import StandardScaler
|
| 110 |
|
|
|
|
| 164 |
|
| 165 |
report_data = np.array([ Gender , Age , Driving_License , Region_Code , Previously_Insured , Vehicle_Age ,
|
| 166 |
Vehicle_Damage , Annual_Premium , Policy_Sales_Channel , Vintage ], ndmin=2)
|
| 167 |
+
st.write(report_data.shape)
|
| 168 |
|
| 169 |
#user_data = np.array(['gender','age','license','regioncode','is_previously_insured','vechile_age','is_your_vechile_damaged','annual_premium','policy_sales_channel','number_of_days_company',ndim=2])
|
| 170 |
scaler = StandardScaler()
|