https://github.com/voorhs/flask-ensembles
Toy Models of Random Forest and Gradient Boosting with web interface
https://github.com/voorhs/flask-ensembles
flask-application gradient-boosting random-forest
Last synced: 3 months ago
JSON representation
Toy Models of Random Forest and Gradient Boosting with web interface
- Host: GitHub
- URL: https://github.com/voorhs/flask-ensembles
- Owner: voorhs
- Created: 2022-12-14T10:09:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-17T13:37:44.000Z (over 2 years ago)
- Last Synced: 2024-12-29T00:12:23.741Z (5 months ago)
- Topics: flask-application, gradient-boosting, random-forest
- Language: Jupyter Notebook
- Homepage:
- Size: 1.43 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Web Application with Random Forest and Gradient Boosting
Python-flask based web-application which provides fitting and predicting regression using Random Forest and Gradient Boosting which are implemented from scratch.
## Dependencies
- `numpy`
- `scipy`
- `sklearn`
- `flask`
- `flask_wtf`
- `wtforms`## Functionality
### Upload dataset
You need to upload `.csv` file with dataset for training. Since my app doesn't perform data preprocessing, your dataset must contain only numerical values. Additionaly, you can upload validation dataset. You must provide name of target column.

### Choose model

### Set parameters
You can specify parameters for model chosen. Random Forest model must be provided with following parameters:
- `n_estimators`: number of trees to ensemble, integer value
- `max_depth`: limitation on max depth of tree, integer value
- `subspace_size`: fraction of features selected to train a single tree, float in `(0, 1]`.In addition, Gradient Boosting requires `learning_rate`, positive float.

After clicking `Fit!` button you need to wait until your model is trained. It may take long time.
### Learning Results
After completing model training, learning curve for train dataset is shown (and for validation dataset, if provided). RMSE is used.

If you want to make predictions with trained model, click on `Predict?` button.
### Upload Prediction Dataset
You need to upload `.csv` file with dataset for prediction. It must have all columns named as in training datasets and not contain target column.

After clicking `Predict` button you need to wait until predictions are made. It may take long time.
### Prediction Results
After making prediction, it is shown in scrollable table. You can download it as `.csv` file.
