Removed overwrite option
This commit is contained in:
@@ -223,9 +223,9 @@ AVAILABLE_CLI_OPTIONS = {
|
||||
),
|
||||
"export_csv": Arg(
|
||||
'--export-csv',
|
||||
help='Export to CSV-File. Put + in front of filename to overwrite.'
|
||||
help='Export to CSV-File.'
|
||||
' This will disable table print.'
|
||||
' Example: --export-csv +hyperopt.csv',
|
||||
' Example: --export-csv hyperopt.csv',
|
||||
metavar='FILE',
|
||||
),
|
||||
"hyperopt_jobs": Arg(
|
||||
|
@@ -63,14 +63,8 @@ def start_hyperopt_list(args: Dict[str, Any]) -> None:
|
||||
Hyperopt.print_epoch_details(results, total_epochs, print_json, no_header)
|
||||
|
||||
if trials and export_csv:
|
||||
overwrite_csv = False
|
||||
if export_csv[0] == '+':
|
||||
overwrite_csv = True
|
||||
export_csv = export_csv[1:]
|
||||
|
||||
Hyperopt.export_csv_file(
|
||||
config, trials, total_epochs,
|
||||
not filteroptions['only_best'], export_csv, overwrite_csv
|
||||
config, trials, total_epochs, not filteroptions['only_best'], export_csv
|
||||
)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user