3 instantiations of DatabaseLoader
Microsoft.ML.Data (3)
DataLoadSave\Database\DatabaseLoader.cs (2)
77
return h.Apply("Loading Model", ch => new
DatabaseLoader
(h, ctx));
173
return new
DatabaseLoader
(host, options);
DataLoadSave\Database\DatabaseLoaderCatalog.cs (1)
32
=> new
DatabaseLoader
(CatalogUtils.GetEnvironment(catalog), options);
38 references to DatabaseLoader
Microsoft.ML.Data (25)
DataLoadSave\Database\DatabaseLoader.cs (12)
16
[assembly: LoadableClass(
DatabaseLoader
.Summary, typeof(
DatabaseLoader
), null, typeof(SignatureLoadModel),
17
"Database Loader",
DatabaseLoader
.LoaderSignature)]
34
loaderAssemblyName: typeof(
DatabaseLoader
).Assembly.FullName);
69
internal static
DatabaseLoader
Create(IHostEnvironment env, ModelLoadContext ctx)
102
internal static
DatabaseLoader
CreateDatabaseLoader<TInput>(IHostEnvironment host)
344
/// The settings for <see cref="
DatabaseLoader
"/>
472
public Bindings(
DatabaseLoader
parent, Column[] cols)
542
public Bindings(ModelLoadContext ctx,
DatabaseLoader
parent)
689
Contracts.CheckUserArg(KeyDataViewType.IsValidDataType(rawType), nameof(
DatabaseLoader
.Column.Type), "Bad item type for Key");
702
private readonly
DatabaseLoader
_loader;
706
public BoundLoader(
DatabaseLoader
loader, DatabaseSource source)
DataLoadSave\Database\DatabaseLoaderCatalog.cs (11)
14
/// <summary>Create a database loader <see cref="
DatabaseLoader
"/>.</summary>
16
/// <param name="columns">Array of columns <see cref="
DatabaseLoader
.Column"/> defining the schema.</param>
17
public static
DatabaseLoader
CreateDatabaseLoader(this DataOperationsCatalog catalog,
18
params
DatabaseLoader
.Column[] columns)
20
var options = new
DatabaseLoader
.Options
27
/// <summary>Create a database loader <see cref="
DatabaseLoader
"/>.</summary>
30
public static
DatabaseLoader
CreateDatabaseLoader(this DataOperationsCatalog catalog,
31
DatabaseLoader
.Options options)
34
/// <summary>Create a database loader <see cref="
DatabaseLoader
"/>.</summary>
39
public static
DatabaseLoader
CreateDatabaseLoader<TInput>(this DataOperationsCatalog catalog)
40
=>
DatabaseLoader
.CreateDatabaseLoader<TInput>(CatalogUtils.GetEnvironment(catalog));
DataLoadSave\Database\DatabaseLoaderCursor.cs (2)
35
private Cursor(
DatabaseLoader
parent, DatabaseSource source, bool[] active)
96
public static DataViewRowCursor Create(
DatabaseLoader
parent, DatabaseSource source, bool[] active)
Microsoft.ML.Tests (13)
DatabaseLoaderTests.cs (13)
54
var loaderColumns = new
DatabaseLoader
.Column[]
56
new
DatabaseLoader
.Column() { Name = "Label", Type = DbType.Int32 },
57
new
DatabaseLoader
.Column() { Name = "SepalLength", Type = DbType.Single },
58
new
DatabaseLoader
.Column() { Name = "SepalWidth", Type = DbType.Single },
59
new
DatabaseLoader
.Column() { Name = "PetalLength", Type = DbType.Single },
60
new
DatabaseLoader
.Column() { Name = "PetalWidth", Type = DbType.Single }
63
var
loader = mlContext.Data.CreateDatabaseLoader(loaderColumns);
99
var
loader = mlContext.Data.CreateDatabaseLoader<IrisDataWithLoadColumnName>();
135
var
loader = mlContext.Data.CreateDatabaseLoader<IrisVectorData>();
167
var
loader = mlContext.Data.CreateDatabaseLoader<IrisVectorDataWithLoadColumnName>();
199
var
loader = mlContext.Data.CreateDatabaseLoader<IrisData>();
258
var
loader = mlContext.Data.CreateDatabaseLoader(new
DatabaseLoader
.Column("datetime", DbType.DateTime, 0));