Skip to content

Model Class

ChangLiu edited this page May 30, 2025 · 4 revisions

neuraldecoding.model

Base class for neural decoding models.


Model

class Model(ABC)

Abstract base class for all neural decoding models.

Parameters:

  • params :

    Model parameters.

Attributes:

  • params :

    Stored model parameters

Methods

__init__(params)

Initialize the model with parameters.

Parameters:

  • params :

    Model-specific parameters.

__call__(data) (abstract)

Make predictions using the model.

Parameters:

  • data : Any

    Input data for prediction.

train_step(input_data) (abstract)

Perform a single training step.

Parameters:

  • input_data : Any

    Training data for one step.

forward(input) (abstract)

Forward pass through the model.

Parameters:

  • input : Any

    Model input data.

save_model(filepath) (abstract)

Save model parameters to file.

Parameters:

  • filepath : str

    Path where model parameters should be saved.

load_model(filepath) (abstract)

Load model parameters from file.

Parameters:

  • filepath : str

    Path to saved model parameters.

Clone this wiki locally