codescraftman / machinelearning / templates / partials / regression_detail.html
regression_detail.html
Raw
{% if model %}
<div id="model-detail">
    <h2>{{ model.name }}</h2>
    <p>{{ model.description }}</p>

    <ul>
        <li>Accuracy: {{ model.accuracy }}</li>
        <li>Loss: {{ model.loss }}</li>
        <li>R-squared: {{ model.r_squared }}</li>
        <li>Mean Squared Error: {{ model.mean_squared_error }}</li>
        <li>Mean Absolute Error: {{ model.mean_absolute_error }}</li>
    </ul>

    <a href="{% url 'machinelearning:make_prediction' 'regression' model.pk %}">Make a Prediction</a>
</div>
{% endif %}