module documentation

Module for the views of the riskpredictor app.

Class AddCheckpointModelView View for adding a new CheckpointModel instance.
Class ChooseCheckpointModelView View for choosing a CheckpointModel instance.
Function help_view View for the help page of the riskpredictor app.
Function render_risk_prediction View for the riskpredictor dashboard.
Function retrieve_graph_representation Retrieve the graph representation from a model.
Function test_view View for testing the riskpredictor app.
Function update_risk_prediction View for the AJAX request of the riskpredictor dashboard.
Variable logger Undocumented
def help_view(request) -> HttpResponse:

View for the help page of the riskpredictor app.

def render_risk_prediction(request: HttpRequest, checkpoint_pk: int) -> HttpResponse:

View for the riskpredictor dashboard.

def retrieve_graph_representation(model: Model) -> graph.Representation:

Retrieve the graph representation from a model.

def test_view(request):

View for testing the riskpredictor app.

def update_risk_prediction(request: HttpRequest, checkpoint_pk: int) -> JsonResponse:

View for the AJAX request of the riskpredictor dashboard.

This view receives the same data as the render_risk_prediction function, but in JSON format. It then computes the risks and returns them in JSON format again to be handled by JavaScript on the client side.

logger =

Undocumented