ezyrb.database.Database

class Database(parameters=None, snapshots=None, space=None)[source]

Database class

Parameters:
  • parameters (array_like) – the input parameters

  • snapshots (array_like) – the input snapshots

  • scaler_parameters (Scale) – the scaler for the parameters. Default is None meaning no scaling.

  • scaler_snapshots (Scale) – the scaler for the snapshots. Default is None meaning no scaling.

  • space (array_like) – the input spatial data

__init__(parameters=None, snapshots=None, space=None)[source]

Methods

__init__([parameters, snapshots, space])

add(parameter, snapshot)

Add (by row) new sets of snapshots and parameters to the original database.

get_snapshot_space(index)

Get the space coordinates of a snapshot by its index.

split(chunks[, seed])

Attributes

parameters_matrix

The matrix containing the input parameters (by row).

snapshots_matrix

The matrix containing the snapshots (by row).