๐ŸŒฟ Neural Network Designer ยท IRIS Classification CPU Mode

Download from www.neuralnetworkdesigner.net โ€” Build & train classification models visually

๐Ÿ“Š IRIS Dataset Details

Step 0 ยท Overview

Features: SepalLength, SepalWidth, PetalLength, PetalWidth  |  Label: Species (Setosa, Versicolor, Virginica)

๐ŸŽฏ Objective: Classify iris species based on morphological measurements. This is a classic multi-class classification problem.

๐Ÿ’ก Workflow: Launch Neural Network Designer โ†’ Load IRIS.csv โ†’ Select target column โ†’ Auto-Design network โ†’ Build & Train โ†’ Evaluate & Export Python code.

๐Ÿ—‚๏ธ 1. Data Management Tab

Load CSV & Target Selection

๐Ÿ“Œ Steps: Click "Load Tabular Data" โ†’ choose IRIS.csv. After loading, dataset information will appear. Select column Species from Target Selection. Neural Network Designer automatically detects classification problem (3 classes).

โœ… Dataset snapshot: 150 rows, 6 columns (Id, SepalLengthCm, SepalWidthCm, PetalLengthCm, PetalWidthCm, Species).
Target: Species (multiclass). Auto-detection active.

๐Ÿง  2. Network Design Tab

Auto-Design & Architecture

Switch to Network Design โ†’ Click Auto-Design โ†’ choose desired template (e.g., dense network). Click "Apply preset". Visual model appears: Input โ†’ Dense(32, relu) โ†’ Output(softmax, 3 units).

๐Ÿ“ Model Parameters Preview
โœ” Input shape: (batch, features) โ†’ 4 features
โœ” Dense Layer: 32 neurons, ReLU activation
โœ” Output: 3 classes (softmax)
Total Parameters: 3,232

๐Ÿš€ 3. Training Tab โ€” Build & Train Model

Compile & Start Training

โš™๏ธ Model Compilation: Optimizer: adam | Learning Rate: 0.0001 | Loss: categorical_crossentropy
Training Parameters: Epochs: 50 | Batch Size: 32 | Validation Split: 0.20 | Early Stopping (patience=5)

๐Ÿ Final Training Console Summary (excerpt):
Epoch 50/50 โ€” Loss: 0.9410 โ€” Accuracy: 0.6042 โ€” Val Loss: 0.8718 โ€” Val Accuracy: 0.6250
โœ… Training Completed! Test Set Evaluation โ€” LOSS: 0.9128, ACCURACY: 0.7000

๐Ÿ“ˆ 4. Evaluation & Metrics

Model Performance

Click "Evaluate Model" to get evaluation results. Use "Plot Metrics" to visualize training vs validation loss/accuracy.

๐ŸŽฏ Model Evaluation Results
Loss: 0.9227  |  Accuracy: 0.6267
Classprecisionrecallf1-scoresupport
Iris-setosa0.620.580.6050
Iris-versicolor0.670.320.4350
Iris-virginica0.620.980.7650
accuracy0.63
macro avg0.630.630.60150
๐Ÿ”€ Confusion Matrix
Rows: True Labels, Columns: Predicted Labels
        Iris-s  Iris-vc  Iris-vg
Iris-s     29       13       8
Iris-vc    17       16      17
Iris-vg     1        0      49
                            
*values based on evaluation screenshot: setosa 29 correct, virginica 49 correct, versicolor 16 correct
๐Ÿ“‰ Training Metrics โ€” Loss & Accuracy curves over epochs (available via "Plot Metrics").

๐Ÿ 5. Generate Python Code โ€” Continue in Python Ecosystem

Export & Deploy

Click "Generate Python Code" โ†’ Copy the ready-to-use script. This code uses TensorFlow/Keras, scikit-learn preprocessing, and reproduces the model architecture designed in Neural Network Designer.

# Neural Network Model Generated by Neural Network Designer
# Generated on: 2026-04-11 19:03:11 | Total Layers: 3 | Parameters: 3,232

import numpy as np
import tensorflow as tf
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler, LabelEncoder
import pandas as pd

# Load IRIS dataset (replace with actual CSV path)
df = pd.read_csv('Iris.csv')
X = df[['SepalLengthCm', 'SepalWidthCm', 'PetalLengthCm', 'PetalWidthCm']].values
y = df['Species'].values

# Preprocessing
le = LabelEncoder()
y_encoded = le.fit_transform(y)
y_cat = tf.keras.utils.to_categorical(y_encoded, num_classes=3)

scaler = StandardScaler()
X_scaled = scaler.fit_transform(X)

X_train, X_test, y_train, y_test = train_test_split(X_scaled, y_cat, test_size=0.2, random_state=42)

# Build model (exactly matching Network Designer: Input->Dense(32,relu)->Output(3,softmax))
model = Sequential([
    Dense(32, activation='relu', input_shape=(4,)),
    Dense(3, activation='softmax')
])

model.compile(optimizer=tf.keras.optimizers.Adam(learning_rate=0.0001),
              loss='categorical_crossentropy',
              metrics=['accuracy'])

history = model.fit(X_train, y_train, epochs=50, batch_size=32, validation_split=0.2, verbose=1)

# Evaluation
loss, acc = model.evaluate(X_test, y_test)
print(f"Test Accuracy: {acc:.4f}, Loss: {loss:.4f}")
                    

โœจ Happy Learning with Neural Network Designer

www.neuralnetworkdesigner.net

๐ŸŽ“ Neural Network Designer provides an intuitive drag-and-drop interface, automated design, and full training pipeline for tabular data. The IRIS tutorial demonstrates how to go from raw CSV to a trained classifier within minutes, then export production-ready Python code.

โœ… Key Features:
- Auto problem detection (Classification/Regression)
- Visual network design & Auto-Design templates
- Real-time training metrics & early stopping
- Generate Python/TensorFlow code
๐Ÿ“ Files in this tutorial:
IRIS_Classification.html | IRIS_Dat_Management.png | IRIS_Network_Design.png
IRIS_Training.png | IRIS_Training_Train.png | IRIS_Evaluation.png | IRIS_Evaluation_Python_Code.png

๐Ÿ”— Download Neural Network Designer: www.neuralnetworkdesigner.net โ€” Build powerful models without coding, then dive into Python ecosystem seamlessly.