File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 33Hyperparameter optimization script for the updated Ames script
44
55"""
6+ from shutil import rmtree
7+ from ast import literal_eval
8+ from copy import copy
9+ from gc import collect
10+
611
712import numpy as np
813import optuna
914import pendulum
1015import pandas as pd
1116import tensorflow as tf
1217
13- from ast import literal_eval
14-
15- from copy import copy
16- from gc import collect
1718
1819# Define constants
1920LABEL_COLUMN = 'price'
@@ -118,8 +119,12 @@ def objective(trial):
118119
119120 result = cerebros .run_random_search ()
120121
121- # Make a copy of the result so it isn 't lost in garbage collection.
122+ # Delete artifacts so we don 't deplete disk space:
122123
124+ rmtree (project_name )
125+
126+ # Make a copy of the result so it isn't lost in garbage collection.
127+
123128 result_0 = copy (result )
124129
125130 # Garbage collection to create a clen state for
You can’t perform that action at this time.
0 commit comments