|
@@ -33,7 +33,7 @@ from .utils import LR
|
|
init()
|
|
init()
|
|
|
|
|
|
|
|
|
|
-class OnlineLearningTrainer:
|
|
|
|
|
|
+class OnlineLearningTrainerLr:
|
|
def __init__(self, data: DataSplitEntity = None, ol_config: OnlineLearningConfigEntity = None, *args, **kwargs):
|
|
def __init__(self, data: DataSplitEntity = None, ol_config: OnlineLearningConfigEntity = None, *args, **kwargs):
|
|
if ol_config is not None:
|
|
if ol_config is not None:
|
|
self._ol_config = ol_config
|
|
self._ol_config = ol_config
|
|
@@ -313,7 +313,7 @@ class OnlineLearningTrainer:
|
|
def load(path: str):
|
|
def load(path: str):
|
|
ol_config = OnlineLearningConfigEntity.from_config(path)
|
|
ol_config = OnlineLearningConfigEntity.from_config(path)
|
|
ol_config._path_resources = path
|
|
ol_config._path_resources = path
|
|
- return OnlineLearningTrainer(ol_config=ol_config)
|
|
|
|
|
|
+ return OnlineLearningTrainerLr(ol_config=ol_config)
|
|
|
|
|
|
def report(self, epoch: int = None):
|
|
def report(self, epoch: int = None):
|
|
self._model_optimized = self._f_get_best_model(self._df_param_optimized, epoch)
|
|
self._model_optimized = self._f_get_best_model(self._df_param_optimized, epoch)
|