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 429 forks source link

I am wondering why there is no field to control trees' scale in the cascade config --- "demo_mnist-ca.json" #41

Open zhaopanpan73 opened 6 years ago

zhaopanpan73 commented 6 years ago

the oroginal config in cascade :

"cascade": { "random_state": 0, "max_layers": 100, "early_stopping_rounds": 3, "look_indexs_cycle": [ [0, 1], [2, 3], [4, 5] ], "n_classes": 10, "estimators": [ {"n_folds":5,"type":"ExtraTreesClassifier","n_estimators":1000,"max_depth":null,"n_jobs":-1}, {"n_folds":5,"type":"RandomForestClassifier","n_estimators":1000,"max_depth":null,"n_jobs":-1} ] } }

sometimes we can set "min_samples_leaf":10 or "max_depth":10 in the estimators to control the scale of a tree in the forest

machao199271 commented 4 years ago

‘n_estimators’ is the number of trees