Test that using a logdir can work correctly.
optimizer = dc.hyper.GaussianProcessHyperparamOpt(self.rf_model_builder)
params_dict = {"n_estimators": 10}
transformers = [
dc.trans.NormalizationTransformer(
transform_y=True, dataset=self.train_dataset)
]
metric = dc.metrics.Metric(dc.metrics.pearson_r2_score)
with tempfile.TemporaryDirectory() as tmpdirname:
best_model, best_hyperparams, all_results = optimizer.hyperparam_search(
params_dict,
After Change
Test that using a logdir can work correctly.
optimizer = dc.hyper.GaussianProcessHyperparamOpt(self.rf_model_builder)
params_dict = {"n_estimators": 10}
transformers = []
metric = dc.metrics.Metric(dc.metrics.pearson_r2_score)
with tempfile.TemporaryDirectory() as tmpdirname:
best_model, best_hyperparams, all_results = optimizer.hyperparam_search(
params_dict,