Class ModelNet40ClassificationDataLoader<T>
Loads the ModelNet40 point cloud classification dataset.
public sealed class ModelNet40ClassificationDataLoader<T> : PointCloudDatasetLoaderBase<T>, IInputOutputDataLoader<T, Tensor<T>, Tensor<T>>, IDataLoader<T>, IResettable, ICountable, IBatchIterable<(Tensor<T> Features, Tensor<T> Labels)>, IShuffleable
Type Parameters
T
- Inheritance
-
ModelNet40ClassificationDataLoader<T>
- Implements
-
IDataLoader<T>
- Inherited Members
- Extension Methods
Constructors
ModelNet40ClassificationDataLoader(ModelNet40ClassificationDataLoaderOptions?)
Initializes a new instance of the ModelNet40ClassificationDataLoader<T> class.
public ModelNet40ClassificationDataLoader(ModelNet40ClassificationDataLoaderOptions? options = null)
Parameters
Properties
ClassNames
Gets the class names for ModelNet40.
public IReadOnlyList<string> ClassNames { get; }
Property Value
Description
Gets a description of the dataset and its intended use.
public override string Description { get; }
Property Value
Name
Gets the human-readable name of this data loader.
public override string Name { get; }
Property Value
Remarks
Examples: "MNIST", "Cora Citation Network", "IMDB Reviews"
NumClasses
Gets the number of classes in the dataset.
public int NumClasses { get; }
Property Value
Methods
LoadDataCoreAsync(CancellationToken)
Core data loading implementation to be provided by derived classes.
protected override Task LoadDataCoreAsync(CancellationToken cancellationToken)
Parameters
cancellationTokenCancellationTokenCancellation token for async operation.
Returns
- Task
A task that completes when loading is finished.
Remarks
Derived classes must implement this to perform actual data loading: - Load from files, databases, or remote sources - Parse and validate data format - Store in appropriate internal structures
UnloadDataCore()
Core data unloading implementation to be provided by derived classes.
protected override void UnloadDataCore()
Remarks
Derived classes should implement this to release resources: - Clear internal data structures - Release file handles or connections - Allow garbage collection of loaded data