Previous topic

fynance.models.neural_network.MultiLayerPerceptron.predict

Next topic

Rolling models

fynance.models.neural_network.MultiLayerPerceptron.set_data

MultiLayerPerceptron.set_data(X, y, x_type=None, y_type=None)

Set data inputs and outputs.

Parameters:
X, y : array-like

Respectively input and output data.

x_type, y_type : torch.dtype

Respectively input and ouput data types. Default is None.