domainlab.algos.observers package¶
Submodules¶
domainlab.algos.observers.a_observer module¶
interface for observer + visitor
domainlab.algos.observers.b_obvisitor module¶
observer and visitor pattern, responsible train, validation, test dispatch performance evaluation to model, dispatch model selection to model selection object
- class domainlab.algos.observers.b_obvisitor.ObVisitor(model_sel)[source]¶
Bases:
AObVisitor
Observer + Visitor pattern for model selection
- dump_prediction(model_ld, metric_te)[source]¶
given the test domain loader, use the loaded model model_ld to predict each instance
- property str_metric4msel¶
string representing the metric used for persisting models on the disk
domainlab.algos.observers.c_obvisitor_cleanup module¶
- class domainlab.algos.observers.c_obvisitor_cleanup.ObVisitorCleanUp(observer)[source]¶
Bases:
AObVisitor
decorator of observer, instead of using if and else to decide clean up or not, we use decorator
- property model_sel¶