kingfengji / gcForest

This is the official implementation for the paper 'Deep forest: Towards an alternative to deep neural networks'
http://lamda.nju.edu.cn/code_gcForest.ashx
1.31k stars 425 forks source link

ValueError: look_indexs unlegal!!! look_indexs=[6, 7] #5

Closed Danee-wawawa closed 7 years ago

Danee-wawawa commented 7 years ago

When I am trying to run "python tools/train_cascade.py --model models/mnist/gcforest/fg-tree500-depth100-3folds-ca.json", there is an error as the fllowing:

File "lib/gcforest/cascade/cascade_classifier.py", line 123, in fit_transform raise ValueError("look_indexs unlegal!!! look_indexs={}".format(look_indexs)) ValueError: look_indexs unlegal!!! look_indexs=[6, 7]

I don't know what's the problem, can anyone help me?

kingfengji commented 7 years ago

Uncomment this line.

It means cyclic cascading the input. Check the latest version of paper. Thanks.

Danee-wawawa commented 7 years ago

OK, I have solved this problem.Thank you. And I will read the latest.

kingfengji commented 7 years ago

great, thank. I'll make an update(delete this line) on the model for this issue.

Danee-wawawa commented 7 years ago

OK, thank you, that's will be great.