Iris dataset
The Iris dataset is a labeled collection of 150 iris specimens from three species, each represented by four sepal and petal measurements.
Classic Computer Science Problems in Swift: Essential techniques for practicing programmers
The iris dataset is a labeled collection of 150 iris-plant samples from three species, each represented by four measured attributes.
- How it is used
- Uses a small labeled dataset to demonstrate multiclass classification with a neural network.
- How deep it goes
- Explains the dataset structure and demonstrates parsing, training, and validation, but does not develop its historical collection or statistical properties.
- Examples
- Uses CSV rows, one-hot species classifications, a four-six-three network, and a 140/10 training-validation split.
- What you can do after
- Apply it via Swift neural-network code to parse, train on, and validate a three-class classifier.
Data Without Labels
The Iris dataset is a labeled collection of flower measurements covering three iris species, with 50 samples per species.
- How it is used
- Uses flower measurements to demonstrate prediction, PCA, dimensionality reduction, and clustering workflows.
- How deep it goes
- Walks through loading, checking, separating, standardizing, decomposing, measuring variance, and plotting, but does not detail classifier evaluation.
- Examples
- Uses a 150-row CSV, four measurement variables, three species labels, covariance output, explained-variance plots, and a two-component scatter plot.
- What you can do after
- Apply PCA via scikit-learn to standardize measurements, reduce dimensions, inspect explained variance, and visualize species-labeled observations.
Related concepts
- K-means clusteringused by · K-means clustering partitions data into a specified number of groups by assigning observations to representative centers and iteratively updating those centers to reduce within-group distances.
- DBSCANused by · DBSCAN is a density-based clustering algorithm that groups observations in dense regions and identifies observations in lower-density regions as noise or outliers.
- CSVuses · CSV is a plain-text format for tabular data, representing records as rows and fields as values separated by delimiters, conventionally commas, with quoting conventions for special content.
- wine datasetalternative to · The earlier example dataset about wine records used as a contrast for discussing temporal structure.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

