ramp_database.tools.submission
.get_submission_state¶
-
ramp_database.tools.submission.
get_submission_state
(session, submission_id)¶ Get the state of a submission given its id.
- Parameters
- session
sqlalchemy.orm.Session
The session to directly perform the operation on the database.
- submission_idint
id of the requested submission
- session
- Returns
- submission_statestr
The state associated with the submission.
Notes
The possible states for a submission are:
‘new’: submitted by user to the web interface;
- ‘sent_to_training’: submission was send for training but not launch
yet.
‘trained’: training finished normally;
‘training_error’: training finished abnormally;
‘validated’: validation finished normally;
‘validating_error’: validation finished abnormally;
‘tested’: testing finished normally;
‘testing_error’: testing finished abnormally;
‘training’: training is running normally;
‘scored’: submission scored.