ForeTiS.model._template_tensorflow_model
Module Contents
Classes
Template file for a prediction model based on |
- class ForeTiS.model._template_tensorflow_model.TemplateTensorflowModel(optuna_trial, datasets, featureset_name, optimize_featureset, pca_transform=None, target_column=None)
Bases:
ForeTiS.model._tensorflow_model.TensorflowModel
Template file for a prediction model based on
TensorflowModel
See
BaseModel
andTensorflowModel
for more information on the attributes.Steps you have to do to add your own model:
Copy this template file and rename it according to your model (will be the name to call it later on the command line)
Rename the class and add it to ForeTiS.model.__init__.py
Adjust the class attributes if necessary
Define your model in define_model()
Define the hyperparameters and ranges you want to use for optimization in define_hyperparams_to_tune().
CAUTION: Some hyperparameters are already defined in
common_hyperparams()
, which you can directly use here. Some of them are already suggested inTensorflowModel
.Test your new prediction model using toy data