Source Dataset Iris¶
- dffml.source.dataset.iris.iris_training(cache_dir: Path = PosixPath('/home/runner/.cache/dffml/datasets/iris'))[source]¶
Examples
$ dffml list records -sources training=iris.training
>>> from dffml.noasync import load >>> from dffml import iris_training >>> >>> records = list(load(iris_training.source())) >>> print(len(records)) 120 >>> records[0].export() {'key': '0', 'features': {'SepalLength': 6.4, 'SepalWidth': 2.8, 'PetalLength': 5.6, 'PetalWidth': 2.2, 'classification': 2}, 'extra': {}}