Closed
Description
As we have agreed on the API reviews, we will make the following modifications to Schema
:
- Make it an
ICollection<Schema.Column>
- Expand
Column
class to contain 2 fields:IsHidden
andIndex
. - Remove all methods except those exposed by collections,
this
accessors andGetColumnOrNull
. - Make constructors internal. Create a
SchemaBuilder
(in a different namespaceMicrosoft.ML.Schema
) that would be responsible to building the schema.- This is to make it more obvious that columns are NOT reused by different schemas.
- Move
Schema.Metadata.Builder
into a separate classMetadataBuilder
in namespaceMicrosoft.ML.Schema
. - Finally, probably rename to
DataSchema