class documentation
class RiskPredictionView(ViewLoggerMixin, DetailView):
View for the dashboard of the riskpredictor app.
Class Method | handle |
Populate the form and compute the risks. |
Class Method | initialize |
Fill the form with the initial data from the respective form fields. |
Method | get |
Undocumented |
Method | get |
Undocumented |
Class Variable | context |
Undocumented |
Class Variable | template |
Undocumented |
Instance Variable | form |
Undocumented |
Instance Variable | risks |
Undocumented |
Populate the form and compute the risks.
Either fill the form with the request data or with the initial data. Then, call
the risk prediction methods and store the results in the risks
attribute.
Parameters | |
inferenceInferenceResult | Undocumented |
data:Dict[ | Undocumented |
Returns | |
Dict[ | Undocumented |
Fill the form with the initial data from the respective form fields.
Parameters | |
form:DashboardForm | Undocumented |
inferenceInferenceResult | Undocumented |
Returns | |
DashboardForm | Undocumented |