ramp_database.model.CVFold

class ramp_database.model.CVFold(**kwargs)

CVFold table.

Storing train and test folds, more precisely: train and test indices for a single fold. Multiple records of this table are then linked to a submission (through ramp_database.model.SubmissionOnCVFold).

Attributes
idint

The ID of the table row.

type{‘live’, ‘test’}

The type of the CV fold.

train_isndarray

The training indices.

test_isndarray

The testing indices.

event_idint

The ID of the event.

eventramp_database.model.Event

The event instance.

submissionslist of ramp_database.model.SubmissionOnCVFold

A back-reference to the submission linked with this fold.

__init__(**kwargs)

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.