{% extends 'NMR/index.html' %} {% load static %} {% load extras %} {% block content %} {% if spectrum_list %}

Training accuracy: {{ accuracy_train }}

Testing accuracy: {{ accuracy_test }}

Confusion matrix
Positive Negative
True {{ tp }} {{ tn }}
False {{ fp }} {{ fn }}

{% csrf_token %} {% for spectrum in spectrum_list %} {% for peak in spectrum.peak_set.all %} {% if forloop.counter0|divisibleby:2 %} {% if peak.predict == False and peak.isPeak %} {% if peak.id != Null %} {% endif %} {% with peak=spectrum.peak_set.all|next:forloop.counter0 %} {% if peak.id != Null %} {% endif %} {% endwith %} {% else %} {% endif %} {% endif %} {% endfor %} {% endfor %}
False Negative {{ fn }}
{{ peak.spectrum }} {{ peak.pid }} {{ peak.id }}
{{ peak.probability }}% peak predicted as not peak
{{ peak.pid }} {{ peak.id }}
{% for spectrum in spectrum_list %} {% for peak in spectrum.peak_set.all %} {% if forloop.counter0|divisibleby:2 %} {% if peak.predict and peak.isPeak == False %} {% if peak.id != Null %} {% endif %} {% with peak=spectrum.peak_set.all|next:forloop.counter0 %} {% if peak.id != Null %} {% endif %} {% endwith %} {% else %} {% endif %} {% endif %} {% endfor %} {% endfor %}
False Positive {{ fp }}
{{ peak.spectrum }} {{ peak.pid }} {{ peak.id }}
{{ peak.probability }}% non-peak predicted as peak
{{ peak.pid }} {{ peak.id }}
{% for spectrum in spectrum_list %} {% for peak in spectrum.peak_set.all %} {% if forloop.counter0|divisibleby:2 %} {% if peak.predict and peak.isPeak %} {% if peak.id != Null %} {% endif %} {% with peak=spectrum.peak_set.all|next:forloop.counter0 %} {% if peak.id != Null %} {% endif %} {% endwith %} {% else %} {% endif %} {% endif %} {% endfor %} {% endfor %}
True Positive {{ tp }}
{{ peak.spectrum }} {{ peak.pid }} {{ peak.id }}
{{ peak.probability }}% predicted {{ peak.predict }}
{{ peak.pid }} {{ peak.id }}
{% for spectrum in spectrum_list %} {% for peak in spectrum.peak_set.all %} {% if forloop.counter0|divisibleby:2 %} {% if peak.predict == False and peak.isPeak == False %} {% if peak.id != Null %} {% endif %} {% with peak=spectrum.peak_set.all|next:forloop.counter0 %} {% if peak.id != Null %} {% endif %} {% endwith %} {% else %} {% endif %} {% endif %} {% endfor %} {% endfor %}
True Negative {{ tn }}
{{ peak.spectrum }} {{ peak.pid }} {{ peak.id }}
{{ peak.probability }}% predicted {{ peak.predict }}
{{ peak.pid }} {{ peak.id }}
{% else %}

No peak are available.

{% endif %} {% endblock %}