Skip to content

Commit

Permalink
Send number of cores
Browse files Browse the repository at this point in the history
  • Loading branch information
roquelopez committed Feb 20, 2024
1 parent 45bc40e commit 317b7ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/amlb/user_config/extensions/Alpha-AutoML/exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,19 @@ def run(dataset, config):
target_name = dataset.target.name
output_path = config.output_dir
time_bound = int(config.max_runtime_seconds/60)
cores = config.cores

log.info(f'Received parameters:\n'
f'train_dataset: {train_dataset_path}\n'
f'test_dataset: {test_dataset_path}\n'
f'target_name: {target_name}\n'
f'time_bound: {time_bound}\n'
f'metric: {metric}\n'
f'cores: {cores}'
)

automl = AutoMLClassifier(time_bound=time_bound, metric=metrics_mapping[metric], time_bound_run=15,
output_folder=output_path, verbose=logging.DEBUG)
output_folder=output_path, num_cpus=cores, verbose=logging.DEBUG)

train_dataset = pd.read_csv(train_dataset_path)
test_dataset = pd.read_csv(test_dataset_path)
Expand Down

0 comments on commit 317b7ab

Please sign in to comment.