Skip to content

Commit e11e3bc

Browse files
Update simple_cerebros_random_search.py
Scope correction for project_name being lower-cased....
1 parent 1aab690 commit e11e3bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cerebros/simplecerebrosrandomsearch/simple_cerebros_random_search.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ def __init__(
326326
# self.num_processes = int(np.max([1, np.ceil(cpu_count() * .3)]))
327327
#self.db_name = f"sqlite:///{project_name}/oracles.sqlite"
328328
# self.conn = sqlite3.connect(db_name)
329+
project_name = project_name.lower()
329330
if not os.path.exists(project_name):
330331
os.makedirs(project_name)
331332
models_dir = f"{project_name}/models"
@@ -368,7 +369,7 @@ def __init__(
368369
self.validation_split = validation_split
369370
self.validation_data = validation_data
370371
self.patience = patience
371-
self.project_name = project_name.lower()
372+
self.project_name = project_name
372373
self.oracle_table = f'{self.project_name}_oracle'
373374
self.learning_rate = learning_rate
374375
self.loss = loss

0 commit comments

Comments
 (0)