-
Notifications
You must be signed in to change notification settings - Fork 344
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
Unknown error #5
Comments
Yes. I believe in the newer version this is fixed. In any case , the file (pred.csv) should have been printed fine. Can you confirm that this is the case? The error is in the metrics' calculation of the test data., so it does not affect the prediction |
If pred.csv intended to be created in same directory I can't see it hasn't created . |
I will have to look at the problem specifically then. can you send me the previous output - were the models run fine?. is it possible to send me a subset of the file that generated the problem? what was the command you ran? |
Params File : Sample input files : |
I am having this issue as well except for me the e.getMessage() returns 2 in the logs. I am running with the quora question dataset and I believe the issue has to do with certain models. For example, I took your vanilla paramsv1.txt and added a few new models such as VanillahnnClassifier, DecisionTreeRegressor and got the error. |
Hi @kaz-Anova ! I've a similar issue. Let me explain with screenshot and codes. Here is the params.txt
And here is the command;
Btw data is multiclass (3 classes) and imbalanced. |
could you send me the predictions' file and a subset of the training data that replicates the problem? |
@kaz-Anova unfortunately I can't share the data, it's private. I said something wrong! Preds.csv is a prediction for another data (it was a regression) so values are basically true. It's my fault, sorry! So then it doesn't create any prediction file after the error. |
Not sure if this helps, but I get the same error with the most recent version when using any classifier with any dataset in dense format (I've tested a few of my own data sets as well as the iris set) with any combination of model parameters. I've tested the data with and without headers and with and without a test target value in the first column. The error does not occur with regressors, but currently I can't get any classifiers to work. |
Hi @molecularswords, I do not seem to be able to reproduce your issue.
params.txt looks like :
which means 3 levels with 1 classifier at each step And the StackNet call is
I'm on Linux Ubuntu Xenial 16.04 and java 1.8.0_102. Can you have a try at this and see if this works for you ? |
@goldentom42 Your code works, and the reason it wasn't working for me before was completely my fault. After troubleshooting the problem I found that I was unwittingly updating an old params file in a different directory, the path of which is nearly identical to the correct path as was overlooked in my previous troubleshooting efforts before my original post. I apologize for my oversight and thank you for your efforts in helping to resolve my problem. |
@molecularswords, no need to apologize ;-) we're all on the same boat! |
@goldentom42 thank you for sharing iris example. i try with Anaconda under windows but it doesn't work? Can you help me please? thanks. |
Hi ahbon123, |
brilliant! it works when i removed xgboost from params.txt, thanks for both of you @kaz-Anova @goldentom42 , and following are the results. btw, why this happens in case xgboost is added? my java version: without xgboost: with xgboost: |
Please see instructions on how to install xgboost properly inside StackNet here: and the for lightgbm, it should be similar: |
i installed xgboost to lib/win using git clone xgboost, it still doesn't work, i think maybe i should follow the steps here |
what does the executable print if you try to execute it from the command line ? so if you just cd to |
Also please confirm you are using the https://github.com/kaz-Anova/StackNet/tree/master/lib/win/xg |
|
Then xgboost should run fine. Please do:
|
1. run java -jar StackNet.jar in lib, result: example of parameter file : LogisticRegression C:1 Type:Liblinear maxim_Iteration:100 scale:true verbose:false RandomForestClassifier estimators=1000 rounding:3 threads:4 max_depth:6 max_features:0.6 min_leaf:2.0 Objective:ENTROPY gamma:0.000001 row_subsample:1.0 verbose:false copy=false` 2. i changed verbose: false to verbose: true, same results: |
i think bugs occurred because of installation of xgboost. |
No, I was not clear Stacknet.jar needs to be in the same folder as (and the lib folder needs to be exactly as you downloaded it from the git - no other changes or additions) Please see this. this is all you need to run it. Put all files in the same directory, ensure |
it works now, thanks a lot! @kaz-Anova |
I've got working it on iris data , also . In further several days I am going to test it in real Kaggle Competition and so we can close this issue , I think |
Any another clue where the error and how to fix it ?
The text was updated successfully, but these errors were encountered: