4 implementations of ILegacyDataLoader
Microsoft.ML.Data (4)
DataLoadSave\Binary\BinaryLoader.cs (1)
39
internal sealed class BinaryLoader :
ILegacyDataLoader
, IDisposable
DataLoadSave\LegacyCompositeDataLoader.cs (1)
31
internal sealed class LegacyCompositeDataLoader :
ILegacyDataLoader
, ITransposeDataView
DataLoadSave\Text\TextLoader.cs (1)
1637
private sealed class BoundLoader :
ILegacyDataLoader
DataLoadSave\Transpose\TransposeLoader.cs (1)
34
internal sealed class TransposeLoader :
ILegacyDataLoader
, ITransposeDataView
90 references to ILegacyDataLoader
Microsoft.ML.Data (86)
Commands\CrossValidationCommand.cs (3)
154
ILegacyDataLoader
loader = CreateRawLoader();
361
private readonly
ILegacyDataLoader
_loader;
398
ILegacyDataLoader
loader = null,
Commands\DataCommand.cs (20)
27
public IComponentFactory<IMultiStreamSource,
ILegacyDataLoader
> Loader;
204
protected
ILegacyDataLoader
LoadLoader(RepositoryReader rep, string path, bool loadTransforms)
209
protected void SaveLoader(
ILegacyDataLoader
loader, string path)
215
protected
ILegacyDataLoader
CreateAndSaveLoader(Func<IHostEnvironment, IMultiStreamSource,
ILegacyDataLoader
> defaultLoaderFactory = null)
217
var
loader = CreateLoader(defaultLoaderFactory);
250
out
ILegacyDataLoader
pipe)
272
ILegacyDataLoader
trainPipe = null;
319
protected
ILegacyDataLoader
CreateLoader(Func<IHostEnvironment, IMultiStreamSource,
ILegacyDataLoader
> defaultLoaderFactory = null)
321
var
loader = CreateRawLoader(defaultLoaderFactory);
326
private
ILegacyDataLoader
CreateTransformChain(
ILegacyDataLoader
loader)
331
protected
ILegacyDataLoader
CreateRawLoader(
332
Func<IHostEnvironment, IMultiStreamSource,
ILegacyDataLoader
> defaultLoaderFactory = null,
338
ILegacyDataLoader
loader;
381
private
ILegacyDataLoader
LoadTransformChain(
ILegacyDataLoader
srcData)
401
public static void SaveLoader(
ILegacyDataLoader
loader, IFileHandle file, IHostEnvironment host)
416
public static void SaveLoader(
ILegacyDataLoader
loader, Stream stream, IHostEnvironment host)
Commands\SaveDataCommand.cs (1)
85
ILegacyDataLoader
loader = CreateAndSaveLoader();
Commands\ScoreCommand.cs (1)
104
LoadModelObjects(ch, true, out var predictor, true, out var trainSchema, out
var
loader);
Commands\ShowSchemaCommand.cs (1)
69
ILegacyDataLoader
loader = CreateAndSaveLoader();
Commands\TestCommand.cs (1)
91
ILegacyDataLoader
loader;
Commands\TrainCommand.cs (3)
364
if (dataPipe is
ILegacyDataLoader
)
398
if (!blankLoader && pipeStart is
ILegacyDataLoader
loader)
482
if (view is
ILegacyDataLoader
loader)
Commands\TrainTestCommand.cs (1)
189
ILegacyDataLoader
testPipe;
Data\ILegacyDataLoader.cs (3)
41
/// Signature for creating an <see cref="
ILegacyDataLoader
"/>.
47
/// Signature for loading an <see cref="
ILegacyDataLoader
"/>.
53
/// Interface for a data loader. An <see cref="
ILegacyDataLoader
"/> can save its model information
DataLoadSave\LegacyCompositeDataLoader.cs (28)
15
[assembly: LoadableClass(typeof(
ILegacyDataLoader
), typeof(LegacyCompositeDataLoader), typeof(LegacyCompositeDataLoader.Arguments), typeof(SignatureDataLoader),
18
[assembly: LoadableClass(typeof(
ILegacyDataLoader
), typeof(LegacyCompositeDataLoader), null, typeof(SignatureLoadDataLoader),
36
public IComponentFactory<IMultiStreamSource,
ILegacyDataLoader
> Loader;
78
private readonly
ILegacyDataLoader
_loader;
92
/// otherwise, it'll be whatever <see cref="
ILegacyDataLoader
"/> is specified in <c>args.loader</c>.
94
public static
ILegacyDataLoader
Create(IHostEnvironment env, Arguments args, IMultiStreamSource files)
103
var
loader = args.Loader.CreateComponent(h, files);
112
public static
ILegacyDataLoader
Create(IHostEnvironment env,
ILegacyDataLoader
srcLoader,
123
private static
ILegacyDataLoader
CreateCore(IHost host,
ILegacyDataLoader
srcLoader,
176
public static
ILegacyDataLoader
ApplyTransforms(IHostEnvironment env,
ILegacyDataLoader
srcLoader,
190
private static
ILegacyDataLoader
ApplyTransformsCore(IHost host,
ILegacyDataLoader
srcLoader,
202
ILegacyDataLoader
pipeStart;
275
public static
ILegacyDataLoader
ApplyTransform(IHostEnvironment env,
ILegacyDataLoader
srcLoader,
293
public static
ILegacyDataLoader
Create(IHostEnvironment env, ModelLoadContext ctx, IMultiStreamSource files)
305
ILegacyDataLoader
loader;
306
ctx.LoadModel<
ILegacyDataLoader
, SignatureLoadDataLoader>(h, out loader, "Loader", files);
315
/// Creates a <see cref="
ILegacyDataLoader
"/> from the specified source loader, followed by
321
public static
ILegacyDataLoader
Create(IHostEnvironment env, ModelLoadContext ctx,
322
ILegacyDataLoader
srcLoader, Func<string, bool> isTransformTagAccepted)
430
var
srcLoader = transforms[0].Transform.Source as
ILegacyDataLoader
;
450
private static
ILegacyDataLoader
LoadTransforms(ModelLoadContext ctx,
ILegacyDataLoader
srcLoader, IHost host, Func<string, bool> isTransformTagAccepted)
DataLoadSave\Text\TextLoader.cs (7)
16
[assembly: LoadableClass(TextLoader.Summary, typeof(
ILegacyDataLoader
), typeof(TextLoader), typeof(TextLoader.Options), typeof(SignatureDataLoader),
19
[assembly: LoadableClass(TextLoader.Summary, typeof(
ILegacyDataLoader
), typeof(TextLoader), null, typeof(SignatureLoadDataLoader),
1294
public IComponentFactory<
ILegacyDataLoader
> Loader;
1489
internal static
ILegacyDataLoader
Create(IHostEnvironment env, ModelLoadContext ctx, IMultiStreamSource files)
1490
=> (
ILegacyDataLoader
)Create(env, ctx).Load(files);
1491
internal static
ILegacyDataLoader
Create(IHostEnvironment env, Options options, IMultiStreamSource files)
1492
=> (
ILegacyDataLoader
)new TextLoader(env, options, files).Load(files);
Model\ModelOperationsCatalog.cs (1)
182
var
loader = ModelFileUtils.LoadLoader(_env, rep, new MultiFileSource(null), false);
Model\Pfa\SavePfaCommand.cs (1)
123
ILegacyDataLoader
loader;
Transforms\ValueMapping.cs (1)
423
public IComponentFactory<IMultiStreamSource,
ILegacyDataLoader
> Loader;
Transforms\ValueToKeyMappingTransformer.cs (2)
113
internal IComponentFactory<IMultiStreamSource,
ILegacyDataLoader
> Loader;
387
string file, string termsColumn, IComponentFactory<IMultiStreamSource,
ILegacyDataLoader
> loaderFactory,
Utilities\ApplyTransformUtils.cs (1)
57
/// (or <see cref="
ILegacyDataLoader
"/> if <paramref name="oldSource"/> is <c>null</c>),
Utilities\ComponentCreation.cs (5)
83
internal static
ILegacyDataLoader
CreateLoader<TArgs>(this IHostEnvironment env, TArgs arguments, IMultiStreamSource files)
88
return CreateCore<
ILegacyDataLoader
, TArgs, SignatureDataLoader>(env, arguments, files);
95
internal static
ILegacyDataLoader
CreateLoader(this IHostEnvironment env, string settings, IMultiStreamSource files)
99
Type factoryType = typeof(IComponentFactory<IMultiStreamSource,
ILegacyDataLoader
>);
100
return CreateCore<
ILegacyDataLoader
>(env, factoryType, typeof(SignatureDataLoader), settings, files);
Utilities\ModelFileUtils.cs (6)
80
ILegacyDataLoader
loader;
82
ModelLoadContext.LoadModel<
ILegacyDataLoader
, SignatureLoadDataLoader>(env, out loader, rep, ent, DirDataLoaderModel, files);
176
public static
ILegacyDataLoader
LoadLoader(IHostEnvironment env, RepositoryReader rep, IMultiStreamSource files, bool loadTransforms)
182
ILegacyDataLoader
loader;
198
ModelLoadContext.LoadModel<
ILegacyDataLoader
, SignatureLoadDataLoader>(env, out loader, rep, ent, dir, files);
350
var
pipe = ModelFileUtils.LoadLoader(h, rep, new MultiFileSource(null), loadTransforms: true);
Microsoft.ML.Tests (4)
TextLoaderTests.cs (4)
40
var
data = TestCore(pathData, true,
101
var
data = TestCore(pathData, true,
125
var
data = TestCore(pathData, true,
820
var
result = ModelFileUtils.LoadLoader(mlContext, rep, new MultiFileSource(breastCancerPath), false);