thov commited on
Commit
ac217e8
1 Parent(s): 8496c78

partial dependance for numerical multiclass tasks

Browse files
Files changed (1) hide show
  1. autoML.py +5 -1
autoML.py CHANGED
@@ -169,11 +169,13 @@ def autoML(csv, task, budget, label, metric_to_minimize_class, metric_to_minimiz
169
  with tab3:
170
  with st.container():
171
  st.subheader('1D Partial Dependance for the three most important features')
 
 
172
 
173
  l_col_1D = list(st.columns((1,1,1)))
174
 
175
  common_params = {
176
- "subsample": 25,
177
  "n_jobs": 2,
178
  "grid_resolution": 20,
179
  "random_state": 0
@@ -194,6 +196,7 @@ def autoML(csv, task, budget, label, metric_to_minimize_class, metric_to_minimiz
194
  pipeline,
195
  df_features,
196
  **features_info,
 
197
  ax=ax,
198
  **common_params,
199
  )
@@ -225,6 +228,7 @@ def autoML(csv, task, budget, label, metric_to_minimize_class, metric_to_minimiz
225
  pipeline,
226
  df_features,
227
  **features_info,
 
228
  ax=ax,
229
  **common_params,
230
  )
 
169
  with tab3:
170
  with st.container():
171
  st.subheader('1D Partial Dependance for the three most important features')
172
+ st.write(len(set(y)))
173
+ st.write(set(y))
174
 
175
  l_col_1D = list(st.columns((1,1,1)))
176
 
177
  common_params = {
178
+ "subsample": 50,
179
  "n_jobs": 2,
180
  "grid_resolution": 20,
181
  "random_state": 0
 
196
  pipeline,
197
  df_features,
198
  **features_info,
199
+ target=len(set(y)),
200
  ax=ax,
201
  **common_params,
202
  )
 
228
  pipeline,
229
  df_features,
230
  **features_info,
231
+ target=len(set(y)),
232
  ax=ax,
233
  **common_params,
234
  )