TCNForecaster


TCNForecaster

Introduction

Temporal Convolutional Networks (TCN) is a neural network that use convolutional architecture rather than recurrent networks. It supports multi-step and multi-variant cases. Causal Convolutions enables large scale parallel computing which makes TCN has less inference time than RNN based model such as LSTM.

Method

Arguments

__init__

TCNForecaster(past_seq_len,
              future_seq_len,
              input_feature_num,
              output_feature_num,
              num_channels=[30]*8,
              kernel_size=7,
              dropout=0.2,
              optimizer="Adam",
              loss="mse",
              lr=0.001)

fit

fit(x, y, validation_data=None, epochs=1, metric="mse", batch_size=32)

evaluate

evaluate(x, y, metrics=['mse'], multioutput="raw_values")

evaluate_with_onnx

evaluate_with_onnx(x, y, metrics=['mse'], dirname=None, multioutput="raw_values")

predict

predict(x)

predict_with_onnx

predict_with_onnx(x, dirname=None)

save

save(checkpoint_file)

restore

restore(checkpoint_file)