validator = GridSearchCV(my_Regressor,
param_grid={'number_of_hidden_neurons': range(4, 5),
'epochs': [50],
},
fit_params={'sample_weight': my_sample_weights },
n_jobs=1,
)
validator.fit(x, y)validator = GridSearchCV(my_Regressor,
param_grid={'number_of_hidden_neurons': range(4, 5),
'epochs': [50],
'sample_weight': [my_sample_weights, my_sample_weights**2] ,
},
fit_params={},
n_jobs=1,
)
validator.fit(x, y)Dear Joel,I'm just passing an iterable as I would do with any other sequence of parameters to tune. In this case the list only has one element to use but in general I ought to be able to pass a collection of vectors.Anyway, I guess that that issue is not the cause of the problem.El 23 jun. 2017 1:04 a. m., "Joel Nothman" <joel.nothman@gmail.com> escribió:why are you passing [my_sample_weights] rather than just my_sample_weights?