Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Error in clmtools #10

Open
muhammad-anwaar opened this issue Apr 9, 2017 · 2 comments
Open

Getting Error in clmtools #10

muhammad-anwaar opened this issue Apr 9, 2017 · 2 comments

Comments

@muhammad-anwaar
Copy link

I want to use clmtools to train the model with existing data , but The clmtool not working.
its giving this error.
Can you please help regarding this issue.

getting negative examples from landscape images
C:\Users\anwaar\Anaconda2\lib\site-packages\sklearn\preprocessing\data.py:160: UserWarning: Numerical issues were encountered when centering the data and might not be solved. Dataset may contain too large values. You may need to prescale your features.
warnings.warn("Numerical issues were encountered "
C:\Users\anwaar\Anaconda2\lib\site-packages\sklearn\preprocessing\data.py:177: UserWarning: Numerical issues were encountered when scaling the data and might not be solved. The standard deviation of the data is probably very close to 0.
warnings.warn("Numerical issues were encountered "
training patch:0
0
C:\Users\anwaar\Anaconda2\lib\site-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)
C:\Users\anwaar\Anaconda2\lib\site-packages\sklearn\grid_search.py:43: 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. This module will be removed in 0.20.
DeprecationWarning)
Traceback (most recent call last):
File "pdm_builder.py", line 54, in
patchModel = build_patches(data_patches, gradient=True, lbp=True, weights=weights, optimize_params=True)
File "c:\clm\clmtools\pdm_builder\buildlib\buildpatch.py", line 169, in build_patches
clfg = GridSearchCV(SVR(kernel="linear"), {'C':[0.1], 'epsilon' : [0.4, 0.3, 0.2, 0.1]}, loss_func=mean_squared_error, verbose=100)
TypeError: init() got an unexpected keyword argument 'loss_func'

@imadbakir
Copy link

Same !

@tkomde
Copy link

tkomde commented Apr 27, 2018

Some arguments in scikit-learn function are deprecated. Comment out "lossfunc = ..." of GridSearchCV in buildpatch.py will help you.
Old ref.
http://scikit-learn.org/0.15/modules/generated/sklearn.grid_search.GridSearchCV.html
New ref.
http://scikit-learn.org/0.19/modules/generated/sklearn.grid_search.GridSearchCV.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants