Skip to content

Commit

Permalink
Fix Predictor Export and Test Predictor
Browse files Browse the repository at this point in the history
Summary: Make the key of Q-values consistent with previous predictor models

Reviewed By: kittipatv

Differential Revision: D16559447

fbshipit-source-id: 136c00c40f32eef08cbc5049c8ce62d640f0e8c4
  • Loading branch information
czxttkl authored and facebook-github-bot committed Jul 31, 2019
1 parent 85782d0 commit bdb88b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ml/rl/preprocessing/preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,8 @@ def _check_preprocessing_output(self, batch, norm_params):
:param norm_params: list of normalization parameters
"""
feature_type = norm_params[0].feature_type
min_value, max_value = batch.min(), batch.max()
min_value, max_value = batch.min().item(), batch.max().item()

if feature_type == "CONTINUOUS":
# Continuous features may be in range (-inf, inf)
pass
Expand Down

0 comments on commit bdb88b3

Please sign in to comment.