ramp_database.model.SubmissionSimilarity

class ramp_database.model.SubmissionSimilarity(**kwargs)

SubmissionSimilarity table.

Attributes
idint

The ID of the table row.

typestr

The type of similarity.

notestr

Note about the similarity.

timestampdatetime

The date and time of the submission.

similarityfloat

The similarity index.

user_idint

The ID of the user.

userramp_database.model.User

The user instance.

source_submission_idint

The ID of the submission used as source.

source_submissionramp_database.model.Submission

The source submission instance.

target_submission_idint

The ID of the submission used as target.

target_submissionramp_database.model.Submission

The target submission instance.

__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.