Traceback (most recent call last):


 "/home/janvanrijn/projects/sklearn-bot/testjan.py", line 23, in <module>

clf_nom.fit(X[:, nominal_idx], y)


 "/home/janvanrijn/anaconda3/envs/sklearn-bot/lib/python3.6/site-packages/sklearn/pipeline.py", line 265, in fit

Xt, fit_params = self._fit(X, y, **fit_params)


 "/home/janvanrijn/anaconda3/envs/sklearn-bot/lib/python3.6/site-packages/sklearn/pipeline.py", line 230, in _fit

**fit_params_steps[name])


 "/home/janvanrijn/anaconda3/envs/sklearn-bot/lib/python3.6/site-packages/sklearn/externals/joblib/memory.py", line 329, in __call__

return self.func(*args, **kwargs)


 "/home/janvanrijn/anaconda3/envs/sklearn-bot/lib/python3.6/site-packages/sklearn/pipeline.py", line 614, in _fit_transform_one

res = transformer.fit_transform(X, y, **fit_params)


 "/home/janvanrijn/anaconda3/envs/sklearn-bot/lib/python3.6/site-packages/sklearn/base.py", line 465, in fit_transform

return self.fit(X, y, **fit_params).transform(X)


 "/home/janvanrijn/anaconda3/envs/sklearn-bot/lib/python3.6/site-packages/sklearn/impute.py", line 241, in fit

"data".format(fill_value))
ValueError: 'fill_value'=missing is invalid. Expected a numerical value when imputing numerical data

Traceback (most recent call last):



 "<ipython-input-18-d6b3de2ade66>", line 1, in <module>

X_smt, y_smt = smt.fit_sample(X, data.target)



 "C:\Users\UI378020\AppData\Local\Continuum\anaconda3\lib\site-packages\imblearn\base.py", line 83, in fit_resample

self.sampling_strategy, y, self._sampling_type)



 "C:\Users\UI378020\AppData\Local\Continuum\anaconda3\lib\site-packages\imblearn\utils\_validation.py", line 445, in check_sampling_strategy

_sampling_strategy_dict(sampling_strategy, y, sampling_type)



 "C:\Users\UI378020\AppData\Local\Continuum\anaconda3\lib\site-packages\imblearn\utils\_validation.py", line 250, in _sampling_strategy_dict

target_stats[class_sample], n_samples))

ValueError: With over-sampling methods, the number of samples in a class should be greater or equal to the original number of samples. Originally, there is 357 samples and 300 samples are asked.
