mirror of
https://github.com/GoogleCloudPlatform/vertex-ai-samples.git
synced 2026-09-26 14:42:04 +00:00
fix: bug in selection algo for age and max notebooks (#2475)
* fix: invert time test * fix: percent unt
This commit is contained in:
@@ -166,7 +166,7 @@ else:
|
||||
|
||||
notebooks = [changed_notebook for changed_notebook in changed_notebooks if execute_changed_notebooks_helper.select_notebook(changed_notebook, accumulative_results, args.test_percent)]
|
||||
# cap the number of notebooks to the specified percentage
|
||||
max_notebooks = int((len(changed_notebooks) * args.test_percent))
|
||||
max_notebooks = int((len(changed_notebooks) * (args.test_percenti/100)))
|
||||
if (len(notebooks) > max_notebooks):
|
||||
notebooks = notebooks[:max_notebooks]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user