All examples
Data

Explore the teaching catalogue

Inspect offline datasets, dimensions, citations, licenses, and source versions.

Download .aner source
dataset_catalog.aner
// The catalogue and metadata work independently of a model library.
import aner.dataset;

fn main() -> Unit {
    var index = 0;
    while index < dataset.count() {
        let identifier = dataset.id(index);
        let sample_dataset: Dataset = dataset.load(identifier);
        print("Dataset ID"); print(identifier);
        print("Name"); print(dataset.name(sample_dataset));
        print("Description"); print(dataset.description(sample_dataset));
        print("Rows"); print(dataset.rows(sample_dataset));
        print("Features"); print(dataset.cols(sample_dataset));
        print("Classes"); print(dataset.classes(sample_dataset));
        print("Source"); print(dataset.source(sample_dataset));
        print("License"); print(dataset.license(sample_dataset));
        print("Citation"); print(dataset.citation(sample_dataset));
        print("Version"); print(dataset.version(sample_dataset));
        print("SHA256"); print(dataset.sha256(sample_dataset));
        var feature = 0;
        while feature < dataset.cols(sample_dataset) {
            print(dataset.feature_name(sample_dataset, feature));
            print(dataset.feature_unit(sample_dataset, feature));
            feature = feature + 1;
        }
        var label = 0;
        while label < dataset.classes(sample_dataset) {
            print(label); print(dataset.class_name(sample_dataset, label));
            label = label + 1;
        }
        index = index + 1;
    }
}

Make it your experiment.

With Aner installed, save this program as examples/dataset_catalog.aner inside a folder for your experiment. Open a terminal in that folder, then check and run the program.

Terminal
aner check examples/dataset_catalog.aner
aner run examples/dataset_catalog.aner

The aner command must be on your PATH. Follow the installation guide if your terminal cannot find it.

Iris and Wine are teaching datasets with their own attribution. Example outcomes are not comparative benchmarks or evidence of clinical validity.

Dataset sources & attribution
Install Aner