SchemaDefinition Class

Definition

This class defines a schema of a typed data view.

C#
public sealed class SchemaDefinition : System.Collections.Generic.List<Microsoft.ML.Data.SchemaDefinition.Column>
Inheritance
SchemaDefinition

Properties

Item[String]

Get or set the column definition by column name. If there's no such column:

  • get returns null,
  • set adds a new column. If there's more than one column with the same name:
  • get returns the first column,
  • set replaces the first column.

Methods

Create(Type, SchemaDefinition+Direction)

Create a schema definition by enumerating all public fields of the given type.

Applies to

Product Versions
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