About gcForest
gcForest is the official implementation of the Deep Forest approach described by Z.-H. Zhou and J. Feng in the IJCAI-2017 paper on an alternative to deep neural networks. The repository is a Python 2.7 library with demo client scripts that show how to train and apply the model, and it is meant to be flexible enough to change the model or fit your own datasets.
Usage follows a scikit-learn style. A GCForest object is built from a config dictionary, fit_transform runs on the training data, and predict runs on the test data. The configuration can be loaded from a JSON file or defined in a Python script. Inside the model, the base classifiers can be RandomForestClassifier, XGBClassifier, ExtraTreesClassifier, LogisticRegression or SGDClassifier.
A notice dated February 1, 2021 says the repository is no longer maintained and points to a newer Deep Forest repository with documentation on readthedocs and a package installable with pip install deep-forest. The older gcForest v1.1.1 stays as an illustration of the algorithm. The README says the package is provided as is and is free for academic usage.
Key features
- Scikit-learn style API with worked examples
- Whole model defined in one JSON file
- Model can also be defined as a Python dictionary
- Choice of base classifiers inside the forest
- Evaluate on test data during training
- Option to keep trained models out of memory
- Accepts 3-D and 4-D numpy arrays for the cascade layer
Good fit for
- Reproducing the deep forest paper
- Trying cascade forests on image-like data
- Running the MNIST demo script
gcForest: questions and answers
- What is gcForest used for?
- gcForest is a Python implementation of gcForest, the deep forest model from an IJCAI 2017 paper, now archived in favour of a newer repository. It is a good fit for reproducing the deep forest paper, trying cascade forests on image-like data and running the MNIST demo script.
- Is gcForest open source?
- Yes. gcForest is open source. Its source code is on GitHub at kingfengji/gcForest and is written mainly in Python.
- Is gcForest free?
- Yes. gcForest is open source, so the software itself is free to use.
- Can I self-host gcForest?
- Yes. gcForest can be self-hosted on your own server or infrastructure.
- Is gcForest actively maintained?
- The most recent commit to gcForest was on 4 February 2021. The project has 1.3k stars on GitHub.