Skip to content

Commit

Permalink
[bugfix] clear sample_weight_fields for predict (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-gecheng authored Dec 13, 2024
1 parent 760221f commit 21090ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tzrec/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,7 @@ def predict(

data_config: DataConfig = pipeline_config.data_config
data_config.ClearField("label_fields")
data_config.ClearField("sample_weight_fields")
data_config.drop_remainder = False
# Build feature
features = _create_features(list(pipeline_config.feature_configs), data_config)
Expand Down

0 comments on commit 21090ff

Please sign in to comment.