Skip to content

Commit

Permalink
clear sample_weight_fields for predict
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-gecheng committed Dec 13, 2024
1 parent 760221f commit 2701194
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 2701194

Please sign in to comment.