Share via


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.

public sealed class CompositeDataLoader<TSource,TLastTransformer> : IDisposable, Microsoft.ML.IDataLoader<TSource> where TLastTransformer : class, ITransformer
public sealed class CompositeDataLoader<TSource,TLastTransformer> : Microsoft.ML.IDataLoader<TSource> where TLastTransformer : class, ITransformer
type CompositeDataLoader<'Source, 'LastTransformer (requires 'LastTransformer : null and 'LastTransformer :> ITransformer)> = class
    interface IDataLoader<'Source>
    interface ICanSaveModel
    interface IDisposable
type CompositeDataLoader<'Source, 'LastTransformer (requires 'LastTransformer : null and 'LastTransformer :> ITransformer)> = class
    interface IDataLoader<'Source>
    interface ICanSaveModel
Public NotInheritable Class CompositeDataLoader(Of TSource, TLastTransformer)
Implements IDataLoader(Of TSource), IDisposable
Public NotInheritable Class CompositeDataLoader(Of TSource, TLastTransformer)
Implements IDataLoader(Of TSource)

Type Parameters

TSource
TLastTransformer
Inheritance
CompositeDataLoader<TSource,TLastTransformer>
Implements

Constructors

CompositeDataLoader<TSource,TLastTransformer>(IDataLoader<TSource>, TransformerChain<TLastTransformer>)

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

ICanSaveModel.Save(ModelSaveContext)

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