ML.NET Concepts – DataReader

Here is other article about ML.NET concepts.

Today i write about DataReader.

DataReader

The DataReader component have one job: create the Data.

As you can understand from interface above, it take a T generic object as input and return same type of Data.

IDataReader
Interface IDataReader

 

As you can see, DataReader could read data, but the results will be always the same schema descripted in the method GetOutputSchema.

Yeah! you can concatenate a DataReader with a Transformer and the keyword is always the same: Append()

var newReader = reader.Append(transformer1).Append(transformer2)

Like  Transformer the DataReader are Lazy!

Lazy Data? So Lazy Transformer! But Data reader? Lazy too!!

 

 

Riferiments:

ML.NET Tutorial

Data

Transformer