In ML.net
, I want to view the data in the IDataView
to verify whether the right data is loaded. I cannot see any visualizer/debugging tool to view them just like we view in System.Data.DataTable
as a table
var mlContext = new MLContext();
IDataView trainData = mlContext.Data.LoadFromTextFile<TaxiTrip>(GetAbsolutePath("../../taxi-fare-test.csv"), hasHeader: true);
There's a Preview
method for the IDataView
. You can run that method in a variable and debug through there to look at the data.
var preview = trainData.Preview();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With