{% if include_styles %} {% include "styles.html" %} {% endif %} {% for key in show %} {% if key == "method" and expl.method %}

Explained as: {{ expl.method }}

{% endif %} {% if key == "description" and expl.description %} {# TODO - have a structured prepresentation and convert it to html and text #}
{{ expl.description }}
{% endif %} {% if key == "transition_features" and expl.transition_features %} {% include "transition_features.html" with context %} {% endif %} {% if key == "targets" and expl.targets %} {% include "weights.html" with context %} {% endif %} {% if key == "feature_importances" and expl.feature_importances %} {% for fw in expl.feature_importances.importances %} {% endfor %} {% if expl.feature_importances.remaining %} {% with fw = expl.feature_importances.importances|last %} {% endwith %} {% endif %}
Weight Feature
{{ "%0.4f"|format(fw.weight) }} {% if not fw.std is none %} ± {{ "%0.4f"|format(2 * fw.std) }} {% endif %} {{ fw.feature|format_feature(fw.weight, hl_spaces) }}
… {{ expl.feature_importances.remaining }} more …
{% endif %} {% if key == "decision_tree" and expl.decision_tree %} {# TODO - render a nice widget #}
{{ expl.decision_tree|format_decision_tree }}
{% endif %} {% endfor %} {% if expl.error %}
Error: {{ expl.error }}
{% endif %}