ramp_database.model
.SubmissionOnCVFold¶
-
class
ramp_database.model.
SubmissionOnCVFold
(submission, cv_fold)¶ SubmissionOnCVFold.
- Parameters
- submission
ramp_database.model.Submission
The submission used.
- cv_fold
ramp_database.model.CVFold
The fold to associate with the submission.
- submission
Notes
SubmissionOnCVFold is an instantiation of Submission, to be trained on a data file and a cv fold. We don’t actually store the trained model in the db (lack of disk and pickling issues), so trained submission is not a database column. On the other hand, we will store train, valid, and test predictions. In a sense substituting CPU time for storage.
- Attributes
- idint
The ID of the table row.
- submission_idint
The ID of the submission.
- submission
ramp_database.model.Submission
The submission instance.
- cv_fold_idint
The ID of the CV fold.
- cv_fold
ramp_database.model.CVFold
The CV fold instance.
- contributivityfloat
The contributivity of the submission.
- bestbool
Whether or not the submission is the best.
- train_timefloat
Computation time for the training set.
- valid_timefloat
Computation time for the validation set.
- test_timefloat
Computation time for the testing set.
- statestr
State of of the submission on this fold.
- error_msgstr
Error message in case of failing submission.
- scoreslist of
ramp_database.model.SubmissionScoreOnCVFold
A back-reference on the scores for this fold.
-
__init__
(submission, cv_fold)¶ 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.