Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bugfix]: fix negative sample using hive input bug #309

Merged
merged 1 commit into from
Nov 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions easy_rec/python/utils/config_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,9 +537,12 @@ def process_data_path(data_path, hive_util):
def process_neg_sampler_data_path(pipeline_config):
# replace neg_sampler hive table => hdfs path
if pai_util.is_on_pai():
return None
return
if not pipeline_config.data_config.HasField('sampler'):
return None
return
# not using hive, so not need to process it
if pipeline_config.WhichOneof('train_path') != 'hive_train_input':
return
hive_util = HiveUtils(
data_config=pipeline_config.data_config,
hive_config=pipeline_config.hive_train_input)
Expand Down