omniopt2 7151__tar.gz → 7156__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. {omniopt2-7151 → omniopt2-7156}/.omniopt.py +6 -1
  2. {omniopt2-7151 → omniopt2-7156}/PKG-INFO +1 -1
  3. {omniopt2-7151 → omniopt2-7156}/omniopt2.egg-info/PKG-INFO +1 -1
  4. {omniopt2-7151 → omniopt2-7156}/omniopt_share +13 -5
  5. {omniopt2-7151 → omniopt2-7156}/pyproject.toml +1 -1
  6. {omniopt2-7151 → omniopt2-7156}/.colorfunctions.sh +0 -0
  7. {omniopt2-7151 → omniopt2-7156}/.dockerignore +0 -0
  8. {omniopt2-7151 → omniopt2-7156}/.general.sh +0 -0
  9. {omniopt2-7151 → omniopt2-7156}/.gitignore +0 -0
  10. {omniopt2-7151 → omniopt2-7156}/.helpers.py +0 -0
  11. {omniopt2-7151 → omniopt2-7156}/.omniopt_plot_cpu_ram_usage.py +0 -0
  12. {omniopt2-7151 → omniopt2-7156}/.omniopt_plot_general.py +0 -0
  13. {omniopt2-7151 → omniopt2-7156}/.omniopt_plot_gpu_usage.py +0 -0
  14. {omniopt2-7151 → omniopt2-7156}/.omniopt_plot_kde.py +0 -0
  15. {omniopt2-7151 → omniopt2-7156}/.omniopt_plot_scatter.py +0 -0
  16. {omniopt2-7151 → omniopt2-7156}/.omniopt_plot_scatter_generation_method.py +0 -0
  17. {omniopt2-7151 → omniopt2-7156}/.omniopt_plot_scatter_hex.py +0 -0
  18. {omniopt2-7151 → omniopt2-7156}/.omniopt_plot_time_and_exit_code.py +0 -0
  19. {omniopt2-7151 → omniopt2-7156}/.omniopt_plot_trial_index_result.py +0 -0
  20. {omniopt2-7151 → omniopt2-7156}/.omniopt_plot_worker.py +0 -0
  21. {omniopt2-7151 → omniopt2-7156}/.random_generator.py +0 -0
  22. {omniopt2-7151 → omniopt2-7156}/.shellscript_functions +0 -0
  23. {omniopt2-7151 → omniopt2-7156}/.tpe.py +0 -0
  24. {omniopt2-7151 → omniopt2-7156}/LICENSE +0 -0
  25. {omniopt2-7151 → omniopt2-7156}/MANIFEST.in +0 -0
  26. {omniopt2-7151 → omniopt2-7156}/README.md +0 -0
  27. {omniopt2-7151 → omniopt2-7156}/apt-dependencies.txt +0 -0
  28. {omniopt2-7151 → omniopt2-7156}/omniopt +0 -0
  29. {omniopt2-7151 → omniopt2-7156}/omniopt2.egg-info/SOURCES.txt +0 -0
  30. {omniopt2-7151 → omniopt2-7156}/omniopt2.egg-info/dependency_links.txt +0 -0
  31. {omniopt2-7151 → omniopt2-7156}/omniopt2.egg-info/requires.txt +0 -0
  32. {omniopt2-7151 → omniopt2-7156}/omniopt2.egg-info/top_level.txt +0 -0
  33. {omniopt2-7151 → omniopt2-7156}/omniopt_docker +0 -0
  34. {omniopt2-7151 → omniopt2-7156}/omniopt_evaluate +0 -0
  35. {omniopt2-7151 → omniopt2-7156}/omniopt_plot +0 -0
  36. {omniopt2-7151 → omniopt2-7156}/requirements.txt +0 -0
  37. {omniopt2-7151 → omniopt2-7156}/setup.cfg +0 -0
  38. {omniopt2-7151 → omniopt2-7156}/setup.py +0 -0
  39. {omniopt2-7151 → omniopt2-7156}/test_requirements.txt +0 -0
@@ -558,6 +558,7 @@ class ConfigLoader:
558
558
  checkout_to_latest_tested_version: bool
559
559
  load_data_from_existing_jobs: List[str]
560
560
  time: str
561
+ share_password: Optional[str]
561
562
  generate_all_jobs_at_once: bool
562
563
  result_names: Optional[List[str]]
563
564
  verbose_break_run_search_table: bool
@@ -653,6 +654,7 @@ class ConfigLoader:
653
654
  optional.add_argument('--show_generate_time_table', help='Generate a table at the end, showing how much time was spent trying to generate new points', action='store_true', default=False)
654
655
  optional.add_argument('--force_choice_for_ranges', help='Force float ranges to be converted to choice', action='store_true', default=False)
655
656
  optional.add_argument('--max_abandoned_retrial', help='Maximum number retrials to get when a job is abandoned post-generation', default=20, type=int)
657
+ optional.add_argument('--share_password', help='Use this as a password for share. Default is none.', default=None, type=str)
656
658
 
657
659
  speed.add_argument('--dont_warm_start_refitting', help='Do not keep Model weights, thus, refit for every generator (may be more accurate, but slower)', action='store_true', default=False)
658
660
  speed.add_argument('--refit_on_cv', help='Refit on Cross-Validation (helps in accuracy, but makes generating new points slower)', action='store_true', default=False)
@@ -1335,7 +1337,7 @@ class ExternalProgramGenerationNode(ExternalGenerationNode):
1335
1337
  return temp_dir
1336
1338
 
1337
1339
  @beartype
1338
- def get_next_candidate(self: Any, pending_parameters: List[Any]) -> Any:
1340
+ def get_next_candidate(self: Any, pending_parameters: List[TParameterization]) -> Any:
1339
1341
  if self.parameters is None:
1340
1342
  raise RuntimeError("Parameters are not initialized. Call update_generator_state first.")
1341
1343
 
@@ -1456,6 +1458,9 @@ def run_live_share_command(force: bool = False) -> Tuple[str, str]:
1456
1458
  if force:
1457
1459
  _command = f"{_command} --force"
1458
1460
 
1461
+ if args.share_password:
1462
+ _command = f"{_command} --password='{args.share_password}'"
1463
+
1459
1464
  if not shown_run_live_share_command:
1460
1465
  print_debug(f"run_live_share_command: {_command}")
1461
1466
  shown_run_live_share_command = True
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omniopt2
3
- Version: 7151
3
+ Version: 7156
4
4
  Summary: Automatic highly parallelized hyperparameter optimizer based on Ax/Botorch
5
5
  Home-page: https://scads.ai/transfer-2/verfuegbare-software-dienste-en/omniopt/
6
6
  Author: Norman Koch
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omniopt2
3
- Version: 7151
3
+ Version: 7156
4
4
  Summary: Automatic highly parallelized hyperparameter optimizer based on Ax/Botorch
5
5
  Home-page: https://scads.ai/transfer-2/verfuegbare-software-dienste-en/omniopt/
6
6
  Author: Norman Koch
@@ -62,6 +62,7 @@
62
62
  #keep_tmp_dir=0
63
63
  folders_to_share=()
64
64
  username=$USER
65
+ password=""
65
66
  outfile=
66
67
  send_single_runs=1
67
68
 
@@ -88,6 +89,7 @@
88
89
  echo " --no_color Disables color output"
89
90
  echo " --force Ignores cache"
90
91
  echo " --username=s3811141 Specify username (with or without = sign)"
92
+ echo " --password=abcdef123 Specify a password for this run"
91
93
  echo " --dont_send_singleruns Don't send single runs"
92
94
  #echo " --keep_tmp_dir Keeps the tmp dir, prints it as well"
93
95
  echo " --outfile=slurm-12345.out Path to the outfile"
@@ -116,8 +118,10 @@
116
118
  # keep_tmp_dir=1
117
119
  elif [ "$arg" == "--no_color" ]; then
118
120
  no_color=1
121
+ elif [[ "$arg" == --password=* ]]; then
122
+ password="${arg#--password=}"
119
123
  elif [[ "$arg" == --outfile=* ]]; then
120
- outfile="${arg#--username=}"
124
+ outfile="${arg#--outfile=}"
121
125
  elif [[ "$arg" == --username=* ]]; then
122
126
  username="${arg#--username=}"
123
127
  DONT_ASK_USERNAME=1
@@ -278,10 +282,10 @@
278
282
  if command -v zip 2>/dev/null >/dev/null; then
279
283
  zip -r $everything_but_singleruns . -x "single_runs/*" >/dev/null || {
280
284
  red_text "zip -r $everything_but_singleruns . -x \"single_runs/*\" failed"
281
- exit 1
282
- }
283
- else
284
- red_text "zip not found. You will not be able to continue this job from the URL."
285
+ exit 1
286
+ }
287
+ else
288
+ red_text "zip not found. You will not be able to continue this job from the URL."
285
289
  fi
286
290
 
287
291
  curl_options+=("-F" "everything_but_singleruns.zip=@$everything_but_singleruns")
@@ -439,6 +443,10 @@
439
443
  green_text "No update needed"
440
444
  fi
441
445
  else
446
+ if [[ $password != "" ]]; then
447
+ url="$url&password=$password"
448
+ fi
449
+
442
450
  if [[ $DEBUG -eq 1 ]]; then
443
451
  echo "curl -s ${curl_options[@]} $url"
444
452
  fi
@@ -5,7 +5,7 @@ authors = [
5
5
  {email = "norman.koch@tu-dresden.de"},
6
6
  {name = "Norman Koch"}
7
7
  ]
8
- version = "7151"
8
+ version = "7156"
9
9
 
10
10
  readme = "README.md"
11
11
  dynamic = ["dependencies"]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes