Back to models
Regressor

FCNRegressor

Fully Connected Neural Network (FCN), as described in [1].

Quickstart

python
from sktime.regression.deep_learning.fcn import FCNRegressor

estimator = FCNRegressor(n_epochs=2000, batch_size=16, callbacks=None, verbose=False, loss='mean_squared_error', metrics=None, random_state=None, activation='sigmoid', activation_hidden='relu', use_bias=True, optimizer=None, filter_sizes=(128, 256, 128), kernel_sizes=(8, 5, 3))

Parameters(13)

n_epochsint, default = 2000
the number of epochs to train the model
batch_sizeint, default = 16
the number of samples per gradient update.
callbackslist of keras.callbacks.Callback, optional (default=None)
List of Keras callbacks to apply during model training.
random_stateint or None, default=None
Seed for random number generation.
verboseboolean, default = False
whether to output extra information
lossstring, default=”mean_squared_error”
fit parameter for the keras model
metricslist of strings, default=[“accuracy”],
activationstring or a tf callable, default=”sigmoid”

Activation function used in the output layer. List of available activation functions: https://keras.io/api/layers/activations/

activation_hiddenstring or a tf callable, default=”relu”

Activation function used in the hidden layers. List of available activation functions: https://keras.io/api/layers/activations/

use_biasboolean, default = True
whether the layer uses a bias vector.
optimizerkeras.optimizers object, default = Adam(lr=0.01)
specify the optimizer and the learning rate to be used.
filter_sizeslist or tuple of int, default = (128,256,128)
number of filters for each convolutional layer. must have length equal to kernel_sizes.
kernel_sizeslist or tuple of int, default = (8,5,3)
kernel size for each convolutional layer. must have length equal to filter_sizes.

References

  1. [1 ] Zhao et. al, Convolutional neural networks for time series classification, Journal of Systems Engineering and Electronics, 28(1):2017.