class documentation
class RiskpredictorForm(forms.Form):
Constructor: RiskpredictorForm(*args, checkpoint, **kwargs)
Form for the riskpredictor dashboard page.
Via this form a user can enter a diagnosis and have the web app compute the marginalized risk for every LNL covered by the model.
Conceptually, this form is similar to the DataexplorerForm
in that it is always
bound either to initial data or to whatever the user entered in the dashboard.
Using this form's cleaned_data attribute, the compute_risks
class ultimately
computes the posterior state distributions for the given diagnosis using the
defined model.
Class Method | from |
Create a form instance with the initial form data. |
Method | __init__ |
Initialize the form and add the fields for the lymph node levels. |
Method | add |
Add the fields for the lymph node levels defined in the trained model. |
Method | add |
Add the field for the midline status. |
Method | add |
Add the field for the T stage with the choices being defined in the model. |
Method | clean |
For now, the midline extension cannot be unknown (value of 0). |
Method | get |
Get the lymph node levels from the model. |
Class Variable | sensitivity |
The sensitivity of the entered diagnosis. |
Class Variable | specificity |
The specificity of the entered diagnosis. |
Instance Variable | checkpoint |
Undocumented |
Instance Variable | model |
Undocumented |