ramp_database.model.Submission

class ramp_database.model.Submission(name, event_team, session=None, user_name=None)

Submission table.

Parameters
namestr

The submission name.

event_teamramp_database.model.EventTeam

The event/team instance.

sessionsqlalchemy.orm.Session

The session to directly perform the operation on the database.

Attributes
idint

The ID of the table row.

event_team_idint

The event/team ID.

event_teamramp_database.model.EventTeam

The event/team instance.

namestr

The name of the submission.

hash_string

A hash to identify the submission.

fileslist of ramp_database.model.SubmissionFile

The list of the files associated with the submission.

submission_timestampdatetime

The date and time when the submission was added to the database.

sent_to_training_timestampdatetime

The date and time when the submission was sent for training.

training_timestampdatetime

The date and time when the training finished.

contributivityfloat

The contributivity of the submission.

historical_contributivityfloat

The historical contributivity.

type{‘live’ or ‘test’}

The type of submission.

statestr

The state of the submission. For possible states, see the submission_states enum in this module (top of this file).

queue_positionint

The position in the queue when the submission was sent to be trained.

error_msgstr

The error message of the submission.

is_validbool

Is it a valid submission.

is_to_ensemblebool

Whether to use the submission for the contributivity score.

is_in_competitionbool

Whether the submission is used to participate to the comptetition.

notesstr

Store any note regarding the submission.

train_time_cv_meanfloat

The mean of the computation time for a fold on the train data.

valid_time_cv_meanfloat

The mean of the computation time for a fold on the valid data.

test_time_cv_meanfloat

The mean of the computation time for a fold on the test data.

train_time_cv_stdfloat

The standard deviation of the computation time for a fold on the train data.

valid_time_cv_stdfloat

The standard deviation of the computation time for a fold on the valid data.

test_time_cv_stdfloat

The standard deviation of the computation time for a fold on the test data.

max_ramfloat

The maximum amount of RAM consumed during training.

historical_contributivityslist of ramp_database.model.HistoricalContributivity

A back-reference of the historical contributivities for the submission.

scoreslist of ramp_database.model.SubmissionScore

A back-reference of scores for the submission.

fileslist of ramp_database.model.SubmissionFile

A back-reference of files attached to the submission.

on_cv_foldslist of ramp_database.model.SubmissionOnCVFold

A back-reference of the CV fold for this submission.

__init__(name, event_team, session=None, user_name=None)

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.