learner
SelectorTrainingIncompleteError
Bases: ValueError
Raised when selector learning sees partially labeled traces.
HyDRALearner(regressor_factory, threshold, start_width=10, step_width=5, selector_learner=None, callback=None, trace_schema=None)
Bases: SupervisedLearner
Identify hybrid-system modes from trace inputs and derivatives.
regressor_factory must create fresh incremental supervised learners.
The current learner supports single-output derivative training. When a
selector learner is provided, HyDRA labels accurate trace segments and
trains a selector to route future rows to learned modes.
Source code in src/flowcean/hydra/learner.py
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 | |
find_next_pending_segment(traces)
Find the first contiguous unlabeled segment across traces.
Source code in src/flowcean/hydra/learner.py
457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 | |