{% extends "base.html" %} {% block title %}Predict โ€” IrisAI{% endblock %} {% block body %}
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %}
{% for cat, msg in messages %}
{{ msg }}
{% endfor %}
{% endif %} {% endwith %}

๐Ÿ”ฌ Enter Measurements

Sepal dimensions (cm)

Typical: 4.3 โ€“ 7.9
Typical: 2.0 โ€“ 4.4

Petal dimensions (cm)

Typical: 1.0 โ€“ 6.9
Typical: 0.1 โ€“ 2.5

Try an example:

{% if result %}

Prediction

{{ result.info.emoji }} Iris {{ result.name | capitalize }}

{{ result.info.description }}

Confidence {{ result.confidence }}%
{% for cls, prob in result.all_probs.items() %} {{ cls }}: {{ prob }}% {% endfor %}
{% else %}
๐ŸŒฟ

No prediction yet

Fill in the measurements and click classify.

{% endif %}

About the Model

Random Forest Classifier ยท 100 estimators

Dataset: UCI Iris (150 samples) ยท 90% accuracy

Source: archive.ics.uci.edu

{% if history %}

๐Ÿ“‹ Your Recent Predictions

{% for row in history %} {% endfor %}
Species Sepal LSepal WPetal LPetal W Confidence When
{{ row.prediction | capitalize }} {{ row.sepal_length }} {{ row.sepal_width }} {{ row.petal_length }} {{ row.petal_width }} {{ "%.1f"|format(row.confidence) }}% {{ row.timestamp[:16] }}
{% endif %}
{% endblock %}