csvmatrix#

class ConfigModel(*, file)[source]#

Bases: BaseModel

Configuration model for CSV matrix

Parameters:

file (str) – CSV file that contains the matrix

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

file: str#
class CSVMatrix(cfg)[source]#

Bases: Matrix

Class for loading CSV matrix

get_matrix()[source]#

Get the matrix data.

Returns:

np.array – Matrix data as a numpy array