【发布时间】:2018-09-21 17:57:13
【问题描述】:
这是从 TaxiFarePrediction 示例复制的 ML.Net 管道对象的创建。
LearningPipeline pipeline = new LearningPipeline
{
new TextLoader(TrainDataPath).CreateFrom<TaxiTrip>(separator:','),
new ColumnCopier(("FareAmount", "Label")),
new CategoricalOneHotVectorizer("VendorId","RateCode","PaymentType"),
new ColumnConcatenator("Features","VendorId","RateCode","PassengerCount","TripDistance","PaymentType"),
new FastTreeRegressor()
};
基本上,我想在应用 ColumnCopier、CategoricalOneHotVectorizer 和 ColumnConcatenator 之后返回数据。
【问题讨论】:
-
为什么不让回归器为空并在管道中检索数据? (没试过,我只是想知道)
-
@KevinAvignon 如何检索管道中的数据?
-
也就是说,您希望 pipleline 对您的数据应用转换并返回给您一个新的转换数据集?
-
@YuraZaletskyy 是的,我想返回转换后的数据集。
-
@Gaspare,你试过我的回答了吗?
标签: c# machine-learning .net-core ml.net