LITENetwork

class LITENetwork(use_litemv=False, n_filters=32, kernel_size=40, strides=1, activation='relu')[source]

LITE and LITE Multivariate (LITEMV) Networks.

LITE deep neural network architecture from [1]_ and its multivariate adaptation LITEMV from [2]_. For using LITEMV, simply set the use_litemv bool parameter to True.

Parameters:
use_litemvbool, default = False

The boolean value to control which version of the network to use. If set to False, then LITE is used, if set to True then LITEMV is used. LITEMV is the same architecture as LITE but specifically designed to better handle multivariate time series.

n_filtersint, default = 32

The number of filters used in one lite layer.

kernel_sizeint , default = 40

The head kernel size used for each lite layer,.

stridesint or list of int, default = 1

The strides of kernels in convolution layers for each lite layer, if not a list, the same is used in all lite layers.

activationstr or list of str, default = ‘relu’

The activation function used in each lite layer, if not a list, the same is used in all lite layers.

Notes

Adapted from the implementation from Ismail-Fawaz et. al

https://github.com/MSD-IRIMAS/LITE

References

..[1] Ismail-Fawaz et al. LITE: Light Inception with boosTing tEchniques for Time Series Classificaion, IEEE International Conference on Data Science and Advanced Analytics, 2023.

..[2] Ismail-Fawaz, Ali, et al. “Look Into the LITE in Deep Learning for Time Series Classification.” arXiv preprint arXiv:2409.02869 (2024).

Methods

build_network(input_shape, **kwargs)

Construct a network and return its input and output layers.

hybrid_layer(input_tensor, input_channels[, ...])

Construct the hybrid layer to compute features of custom filters.

hybrid_layer(input_tensor, input_channels, kernel_sizes=None)[source]

Construct the hybrid layer to compute features of custom filters.

Parameters:
input_tensortensorflow tensor, usually the input layer of the model.
input_channelsint, the number of input channels in case of multivariate.
kernel_sizeslist of int, default = [2,4,8,16,32,64],
the size of the hand-crafted filters.
Returns:
hybrid_layertensorflow tensor containing the concatenation
of the output features extracted form hand-crafted convolution filters.
build_network(input_shape, **kwargs)[source]

Construct a network and return its input and output layers.

input_shapetuple

The shape of the data fed into the input layer

Returns:
input_layera keras layer
output_layera keras layer