Closed drewoldag closed 1 month ago
Before [e4266f46] | After [e811d916] | Ratio | Benchmark (Parameter) |
---|---|---|---|
2.51±0.01s | 2.54±0.01s | 1.01 | benchmarks.time_learn_loop('RandomForest', 'RandomSampling') |
173M | 173M | 1 | benchmarks.peakmem_learn_loop('KNN') |
168M | 168M | 1 | benchmarks.peakmem_learn_loop('RandomForest') |
133±0.8ms | 133±1ms | 1 | benchmarks.time_feature_creation |
159±0.6ms | 159±2ms | 1 | benchmarks.time_learn_loop('KNN', 'RandomSampling') |
161±0.9ms | 160±2ms | 1 | benchmarks.time_learn_loop('KNN', 'UncSampling') |
2.51±0.01s | 2.52±0.01s | 1 | benchmarks.time_learn_loop('RandomForest', 'UncSampling') |
Click here to view all benchmarks.
Initial commit to add ability to pass a pretrained classifier pickle filepath to ResspectClassifier to use instead of training.
This PR adds a attribute to
LoopClassifier
,pretrained_model_path
that will be used inlearn_loop
when callingdatabase.classify
.If the filepath is not None, we will attempt to unpickle and assign the result to the classifier in
ResspectClassifier
. Otherwise we raise aFileNotFound
exception.Something similar will need to be done for
time_domain_loop
, but we'll wait on that until after the configuration dataclass has been implemented.