diff --git a/policy_learner.py b/policy_learner.py index 23dd432..438942c 100644 --- a/policy_learner.py +++ b/policy_learner.py @@ -12,7 +12,7 @@ logger = logging.getLogger(__name__) - +locale.setlocale(locale.LC_ALL, 'ko_KR.UTF-8') class PolicyLearner: @@ -181,7 +181,6 @@ def fit( # 에포크 관련 정보 로그 기록 if pos_learning_cnt + neg_learning_cnt > 0: loss /= pos_learning_cnt + neg_learning_cnt - locale.setlocale(locale.LC_ALL, 'ko_KR.UTF-8') logger.info("[Epoch %s/%s]\tEpsilon:%.4f\t#Expl.:%d/%d\t" "#Buy:%d\t#Sell:%d\t#Hold:%d\t" "#Stocks:%d\tPV:%s\t"