MLBazaar / BTB

A simple, extensible library for developing AutoML systems
https://mlbazaar.github.io/BTB/
MIT License
171 stars 41 forks source link

BTBSession crashes when record is not performed. #175

Closed pvk-developer closed 4 years ago

pvk-developer commented 4 years ago

Description

When runing a BTBSession with a Tunable({}) this will fail to record the score obtained with the "default" configuration of {}.

This case is an unusual one as the object Tunable without hyperparameters to tune shouldn't exist, however, during research on tuning hyperparameters of pipelines, we have faced this problem when there was no tunable hyperparameters on the pipeline.

Solution propose

We noticed that the cardinality is 1. In this case, the Tuner for that Tunable shouldn't be instantiated, tuner = None and then when attempts to record simply check that the selected tuner is not None.