observations.iris

iris(path)

Load the Iris Plants data set (Fisher, 1936). It contains 150 examples of iris plants, each with 4 real-valued attributes and its class.

Args:

  • path: str. Path to directory which either stores file or otherwise file will be downloaded and extracted there. Filename is iris.data.

Returns:

Tuple of np.darray x_train, np.ndarray y_train, and dictionary metadata of column headers (feature names).

Fisher, R. A. (1936). The use of multiple measurements in taxonomic problems. Annals of Human Genetics, 7(2), 179–188.