CompositeDataLoader<TSource,TLastTransformer> Class

Definition

This class represents a data loader that applies a transformer chain after loading. It also has methods to save itself to a repository.

C#
public sealed class CompositeDataLoader<TSource,TLastTransformer> : IDisposable, Microsoft.ML.IDataLoader<TSource> where TLastTransformer : class, ITransformer
C#
public sealed class CompositeDataLoader<TSource,TLastTransformer> : Microsoft.ML.IDataLoader<TSource> where TLastTransformer : class, ITransformer

Type Parameters

TSource
TLastTransformer
Inheritance
CompositeDataLoader<TSource,TLastTransformer>
Implements

Constructors

Fields

Loader

The underlying data loader.

Transformer

The chain of transformers (possibly empty) that are applied to data upon loading.

Methods

AppendTransformer<TNewLast>(TNewLast)

Append a new transformer to the end.

Dispose()
GetOutputSchema()
Load(TSource)

Produce the data view from the specified input. Note that IDataView's are lazy, so no actual loading happens here, just schema validation.

Explicit Interface Implementations

Extension Methods

Preview<TSource>(IDataLoader<TSource>, TSource, Int32)

Preview an effect of the loader on a given source.

Append<TSource,TTrans>(IDataLoader<TSource>, TTrans)

Create a new composite loader, by appending a transformer to this data loader.

Append<TSource,TTrans>(IDataLoader<TSource>, IEstimator<TTrans>)

Create a new composite loader estimator, by appending an estimator to this data loader.

Applies to

Proizvod Verzije
ML.NET 1.0.0, 1.1.0, 1.2.0, 1.3.1, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 2.0.0, 3.0.0, Preview, 4.0.0