supervised
Supervised
The base class for all supervised task.
Attributes
 verbose: A boolean value indicating the verbosity mode.
init
Initialize the instance.
Args
 verbose: A boolean of whether the search process will be printed to stdout.
fit
Find the best neural architecture and train it.
Based on the given dataset, the function will find the best neural architecture for it. The dataset is in numpy.ndarray format. So they training data should be passed through x_train
, y_train
.
Args

x: A numpy.ndarray instance containing the training data or the training data combined with the validation data.

y: A numpy.ndarray instance containing the label of the training data. or the label of the training data combined with the validation label.

x_test: A numpy.ndarray instance containing the testing data

y_test: A numpy.ndarray instance containing the label of the testing data.

time_limit: The time limit for the search in seconds.
final_fit
Final training after found the best architecture.
Args

x_train: A numpy.ndarray of training data.

y_train: A numpy.ndarray of training targets.

x_test: A numpy.ndarray of testing data.

y_test: A numpy.ndarray of testing targets.

trainer_args: A dictionary containing the parameters of the ModelTrainer constructor.

retrain: A boolean of whether reinitialize the weights of the model.
predict
Return predict results for the testing data.
Args
 x_test: An instance of numpy.ndarray containing the testing data.
Returns
evaluate
Return the accuracy score between predict value and y_test
.
PortableClass
init
Initialize the instance.
Args
 graph: The graph form of the learned model
predict
Return predict results for the testing data.
Args
 x_test: An instance of numpy.ndarray containing the testing data.
Returns
evaluate
Return the accuracy score between predict value and y_test
.