IDownloadable

Interfaces · AiDotNet.Interfaces

Defines capability to automatically download and cache datasets.

For Beginners

Many standard datasets (MNIST, CIFAR, Cora, etc.) are available online. Instead of manually downloading and extracting files, the data loader can do it for you automatically and remember where the files are stored.

How It Works

Data loaders that implement this interface can fetch datasets from remote sources and cache them locally, making it easy to use standard benchmark datasets without manual setup.

Properties

Property Summary
IReadOnlyList<string> DownloadUrls { get; } Gets the URLs where the dataset can be downloaded from.
bool IsDownloaded { get; } Gets whether the dataset has been downloaded and is available locally.
string CachePath { get; } Gets the local path where the dataset is cached.

Methods

Method Summary
Task DownloadAsync(bool forceRedownload, IProgress<double> progress, CancellationToken cancellationToken) Downloads the dataset asynchronously if not already cached.
void ClearCache() Deletes the locally cached dataset files.