SchemaDefinition.Create(Type, SchemaDefinition+Direction) Method

Definition

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

C#
public static Microsoft.ML.Data.SchemaDefinition Create(Type userType, Microsoft.ML.Data.SchemaDefinition.Direction direction = Microsoft.ML.Data.SchemaDefinition+Direction.Both);

Parameters

userType
Type

The type to base the schema on.

direction
SchemaDefinition.Direction

Accept fields and properties based on their direction.

Returns

The generated schema definition.

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, 4.0.0, Preview