Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 8, 2024
1 parent 671ffa2 commit 54de3dd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions dance/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -1084,11 +1084,11 @@ def run_step3(root_path, evaluate_pipeline, step2_pipeline_planer: PipelinePlane

pipeline_top_k = default(step2_pipeline_planer.config.pipeline_tuning_top_k, DEFAULT_PIPELINE_TUNING_TOP_K)
step3_k = default(step2_pipeline_planer.config.parameter_tuning_freq_n, DEFAULT_PARAMETER_TUNING_FREQ_N)
step3_start_k=default(step2_pipeline_planer.config.step3_start_k, 0)
# Skip some of the already run step3 because in pandas, when you sort columns with exactly the same values, the results are not random.
# Instead, pandas preserves the order of the original data. So we can skip it without causing any impact.
step3_start_k = default(step2_pipeline_planer.config.step3_start_k, 0)
# Skip some of the already run step3 because in pandas, when you sort columns with exactly the same values, the results are not random.
# Instead, pandas preserves the order of the original data. So we can skip it without causing any impact.
for i in range(pipeline_top_k):
if i<step3_start_k:
if i < step3_start_k:
continue
try:
pipeline_planer = PipelinePlaner.from_config_file(
Expand All @@ -1103,7 +1103,6 @@ def run_step3(root_path, evaluate_pipeline, step2_pipeline_planer: PipelinePlane
continue



# def get_params(preprocessing_pipeline:Pipeline,type,key,name):
# ans=[]
# pips=list(filter(lambda p: p.type==type, preprocessing_pipeline.config.pipeline))
Expand Down

0 comments on commit 54de3dd

Please sign in to comment.