Skip to content

Commit

Permalink
moved locale.setlocale()
Browse files Browse the repository at this point in the history
  • Loading branch information
ju1115kr committed May 30, 2018
1 parent 4cc66d6 commit 82b6895
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions policy_learner.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


logger = logging.getLogger(__name__)

locale.setlocale(locale.LC_ALL, 'ko_KR.UTF-8')

class PolicyLearner:

Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 82b6895

Please sign in to comment.