rzai@rzai00:~/prj/ali_music/scripts$ python find_best_params.py
/usr/local/lib/python2.7/dist-packages/sklearn/cross_validation.py:44: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
"This module will be removed in 0.20.", DeprecationWarning)
(12150, 194)
find_best_params.py:60: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
See the the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy
x_train_info_pd['actual_plays'] = y_test
Traceback (most recent call last):
File "find_best_params.py", line 84, in
best_sln = fmin(objective, space, algo=tpe.suggest,trials=Trials(), max_evals=4)
File "/usr/local/lib/python2.7/dist-packages/hyperopt/fmin.py", line 307, in fmin
return_argmin=return_argmin,
File "/usr/local/lib/python2.7/dist-packages/hyperopt/base.py", line 635, in fmin
return_argmin=return_argmin)
File "/usr/local/lib/python2.7/dist-packages/hyperopt/fmin.py", line 320, in fmin
rval.exhaust()
File "/usr/local/lib/python2.7/dist-packages/hyperopt/fmin.py", line 199, in exhaust
self.run(self.max_evals - n_done, block_until_done=self.async)
File "/usr/local/lib/python2.7/dist-packages/hyperopt/fmin.py", line 173, in run
self.serial_evaluate()
File "/usr/local/lib/python2.7/dist-packages/hyperopt/fmin.py", line 92, in serial_evaluate
result = self.domain.evaluate(spec, ctrl)
File "/usr/local/lib/python2.7/dist-packages/hyperopt/base.py", line 840, in evaluate
rval = self.fn(pyll_rval)
File "find_best_params.py", line 64, in objective
clf = xgb.train(args,dtrain,num_boost_round=int(args['num_round']))
File "/usr/local/lib/python2.7/dist-packages/xgboost/training.py", line 205, in train
xgb_model=xgb_model, callbacks=callbacks)
File "/usr/local/lib/python2.7/dist-packages/xgboost/training.py", line 76, in _train_internal
bst.update(dtrain, i, obj)
File "/usr/local/lib/python2.7/dist-packages/xgboost/core.py", line 806, in update
_check_call(_LIB.XGBoosterUpdateOneIter(self.handle, iteration, dtrain.handle))
File "/usr/local/lib/python2.7/dist-packages/xgboost/core.py", line 127, in _check_call
raise XGBoostError(_LIB.XGBGetLastError())
xgboost.core.XGBoostError: Invalid Parameter format for max_depth expect int but value='4.0'
rzai@rzai00:~/prj/ali_music/scripts$