Fix sys.stdout bug for CatboostRegressorMultiTarget
This commit is contained in:
parent
6cb14148aa
commit
441032be25
@ -1,4 +1,5 @@
|
|||||||
import logging
|
import logging
|
||||||
|
import sys
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Any, Dict
|
from typing import Any, Dict
|
||||||
|
|
||||||
@ -58,8 +59,10 @@ class CatboostRegressorMultiTarget(BaseRegressionModel):
|
|||||||
|
|
||||||
fit_params = []
|
fit_params = []
|
||||||
for i in range(len(eval_sets)):
|
for i in range(len(eval_sets)):
|
||||||
fit_params.append(
|
fit_params.append({
|
||||||
{'eval_set': eval_sets[i], 'init_model': init_models[i]})
|
'eval_set': eval_sets[i], 'init_model': init_models[i],
|
||||||
|
'log_cout': sys.stdout, 'log_cerr': sys.stderr,
|
||||||
|
})
|
||||||
|
|
||||||
model = FreqaiMultiOutputRegressor(estimator=cbr)
|
model = FreqaiMultiOutputRegressor(estimator=cbr)
|
||||||
thread_training = self.freqai_info.get('multitarget_parallel_training', False)
|
thread_training = self.freqai_info.get('multitarget_parallel_training', False)
|
||||||
|
Loading…
Reference in New Issue
Block a user