Skip to content

Commit

Permalink
whole method ast paths sampling: set `distribution_for_rate_to_sample…
Browse files Browse the repository at this point in the history
…_by` to None instead of simply not specify arg (otherwise default c'tor is used)
  • Loading branch information
eladn committed Nov 20, 2021
1 parent 6033612 commit 0422d84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ndfa/code_nn_modules/params/method_code_encoder_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,12 @@ def set_dispatch_fields(cls):
method_ast_leaf_to_leaf_paths_dataloading_sampling_params: Optional[SamplingParams] = conf_field(
default_factory=lambda: SamplingParams(
max_nr_items=600,
distribution_for_rate_to_sample_by=None,
sample_in_eval=True))
method_ast_leaf_to_root_paths_dataloading_sampling_params: Optional[SamplingParams] = conf_field(
default_factory=lambda: SamplingParams(
max_nr_items=200,
distribution_for_rate_to_sample_by=None,
sample_in_eval=True))
sub_asts_leaf_to_leaf_paths_dataloading_sampling_params: Optional[SamplingParams] = conf_field(
default_factory=lambda: SamplingParams(
Expand Down

0 comments on commit 0422d84

Please sign in to comment.