MLPNetwork

class MLPNetwork(use_bias=True)[source]

Establish the network structure for a MLP.

Adapted from the implementation used in [1]

Parameters:
use_biasbool, default = True

Condition on whether or not to use bias values for dense layers.

Notes

Adapted from the implementation from source code https://github.com/hfawaz/dl-4-tsc/blob/master/classifiers/mlp.py

References

[1]

Wang et al. Time series classification from scratch with deep neural

networks: A strong baseline, IJCNN, 2017.

Methods

build_network(input_shape, **kwargs)

Construct a network and return its input and output layers.

build_network(input_shape, **kwargs)[source]

Construct a network and return its input and output layers.

Parameters:
input_shapetuple of shape = (n_timepoints (m), n_channels (d))

The shape of the data fed into the input layer

Returns:
input_layera keras layer
output_layera keras layer