jni / jni/ray

Add progress bar to RandomForest

Open
#33 1 comment 0 reactions 0 assignees View on GitHub
new-feature
Dominant language
Python
Stars
30
Forks
9
PR merge metrics
No merged PRs in 30d

Description

classify.RandomForest uses the VIGRA library, which is written in C++ and there's not a straightforward way to have a progress bar. Instead, we could train a 1-tree random forest before beginning the full training to see how long it takes to train a tree.

On one test dataset, indications are that this would provide a good estimate of total time (i.e., initial overhead and other factors won't mess things up), since we get the following times for training 1, 2, and 3 trees:

1 tree: 118.812502146 seconds
2 trees: 236.317131042 seconds
3 trees: 351.319090128 seconds

Each successive tree is very close to a multiple of the 1-tree training time. The progress bar could then be based on time.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.