class documentation

class RiskPredictionView(ViewLoggerMixin, DetailView):

View In Hierarchy

View for the dashboard of the riskpredictor app.

Class Method handle_form Populate the form and compute the risks.
Class Method initialize_form Fill the form with the initial data from the respective form fields.
Method get_context_data Undocumented
Method get_object Undocumented
Class Variable context_object_name Undocumented
Class Variable template_name Undocumented
Instance Variable form Undocumented
Instance Variable risks Undocumented
@classmethod
def handle_form(cls, inference_result, data):

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
inference_result:InferenceResultUndocumented
data:Dict[str, Any]Undocumented
Returns
Dict[str, Any]Undocumented
@classmethod
def initialize_form(cls, form, inference_result):

Fill the form with the initial data from the respective form fields.

Parameters
form:DashboardFormUndocumented
inference_result:InferenceResultUndocumented
Returns
DashboardFormUndocumented
def get_context_data(self, **kwargs):

Undocumented

Parameters
**kwargs:AnyUndocumented
Returns
Dict[str, Any]Undocumented
def get_object(self, queryset=None):

Undocumented

Returns
InferenceResultUndocumented
context_object_name: str =

Undocumented

template_name: str =

Undocumented

form =

Undocumented

risks =

Undocumented