class documentation

class DashboardForm(forms.Form):

View In Hierarchy

Form for the dashboard page.

Method __init__ Undocumented
Method add_lnl_fields Add the fields for the lymph node levels defined in the trained model.
Method add_midline_field Add the field for the midline status.
Method add_sens_spec_fields Add the fields for the sensitivity and specificity.
Method add_t_stage_field Add the field for the T stage with the choices being defined in the model.
Method clean Transform three-way toggles to booleans.
Method clean_midline_extension For now, the midline extension cannot be unknown (value of 0).
Class Variable is_submitted Whether the form has been submitted via the button or not.
Instance Variable inference_result Undocumented
def __init__(self, *args, inference_result=None, **kwargs):

Undocumented

Parameters
*argsUndocumented
inference_result:InferenceResultUndocumented
**kwargsUndocumented
def add_lnl_fields(self, inference_result):

Add the fields for the lymph node levels defined in the trained model.

Parameters
inference_result:InferenceResultUndocumented
def add_midline_field(self):

Add the field for the midline status.

def add_sens_spec_fields(self, step=0.01):

Add the fields for the sensitivity and specificity.

Parameters
step:floatUndocumented
def add_t_stage_field(self, inference_result):

Add the field for the T stage with the choices being defined in the model.

Parameters
inference_result:InferenceResultUndocumented
def clean(self):

Transform three-way toggles to booleans.

Returns
Dict[str, Any]Undocumented
def clean_midline_extension(self):

For now, the midline extension cannot be unknown (value of 0).

Returns
boolUndocumented
is_submitted =

Whether the form has been submitted via the button or not.

inference_result =

Undocumented