INaturalistDataLoader<T>

Models & Types · AiDotNet.Data.Vision.Benchmarks

Loads the iNaturalist species classification dataset (~2.7M images, 10,000 species in 2021 version).

Inheritance: DataLoaderBase<T> → InputOutputDataLoaderBase<T, Tensor<T>, Tensor<T>> → INaturalistDataLoader<T>

How It Works

iNaturalist uses a JSON annotation file with COCO-style format:

The dataset has a long-tailed class distribution, making it valuable for imbalanced learning research. Labels are one-hot encoded across the number of species categories.

Constructors

Constructor Summary
INaturalistDataLoader(INaturalistDataLoaderOptions options) Creates a new iNaturalist data loader.

Properties

Property Summary
int FeatureCount { get; }
int OutputDimension { get; }
int TotalCount { get; }
string Description { get; }
string Name { get; }

Methods

Method Summary
ValueTuple<IInputOutputDataLoader<T, Tensor<T>, Tensor<T>>, IInputOutputDataLoader<T, Tensor<T>, Tensor<T>>, IInputOutputDataLoader<T, Tensor<T>, Tensor<T>>> Split(double trainRatio, double validationRatio, int? seed)