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

Fail to train a regression task? #75

Closed
gdragone1 opened this issue Mar 1, 2019 · 5 comments
Closed

Fail to train a regression task? #75

gdragone1 opened this issue Mar 1, 2019 · 5 comments

Comments

@gdragone1
Copy link

gdragone1 commented Mar 1, 2019

Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: exceptions.IllegalStateException: The last layer of StackNet cannot have a classifier
at ml.stacknet.StackNetRegressor.fit(StackNetRegressor.java:2532)
at stacknetrun.runstacknet.main(runstacknet.java:556)
... 5 more

@gdragone1 gdragone1 changed the title Fail to find the target of regression task? Fail to train a regression task? Mar 1, 2019
@goldentom42
Copy link

Hi @gdragone1, I think the error message says it all.

The last layer of StackNet cannot have a classifier

Could you please tell us what the stack param file looks like ?

Thanks

@gdragone1
Copy link
Author

Param file like this:
RandomForestRegression estimators:100 threads:1 rounding:3 cut_off_subsample:0.15 max_depth:7 max_features:0.7 min_leaf:3.0 min_split:5.0 Objective:ENTROPY row_subsample:0.95 seed:1 verbose:false

GradientBoostingForestRegression rounding:3 estimators:1000 shrinkage:0.1 threads:1 offset:0.00001 max_depth:8 max_features:0.4 min_leaf:4.0 min_split:8.0 Objective:RMSE row_subsample:0.7 seed:1 verbose:false

@goldentom42
Copy link

And this param file gives you the error you report ?

That's pretty weird !

@gdragone1
Copy link
Author

gdragone1 commented Mar 2, 2019 via email

@goldentom42
Copy link

Ok thanks :)

Can you please mark as closed ?

cheers

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

2 participants