我有一个数据集,其中有4种数据类型
这会导致异常结果
StackTrace:
at Microsoft.ML.Trainers.SdcaTrainerBase`3.TrainCore(IChannel ch, RoleMappedData data, LinearPredictor predictor, Int32 weightSetCount)
at Microsoft.ML.Runtime.Learners.StochasticTrainerBase`2.TrainModelCore(TrainContext context)
at Microsoft.ML.Runtime.Training.TrainerEstimatorBase`2.TrainTransformer(IDataView trainSet, IDataView validationSet, IPredictor initPredictor)
at Microsoft.ML.Runtime.Data.LearningPipelineExtensions.DelegateEstimator`1.Fit(IDataView input)
at Microsoft.ML.Runtime.Data.EstimatorChain`1.Fit(IDataView input)
at Microsoft.ML.Runtime.Data.EstimatorChain`1.Fit(IDataView input)
at Microsoft.ML.Runtime.Data.EstimatorChain`1.Fit(IDataView input)
at Microsoft.ML.StaticPipe.Estimator`3.Fit(DataView`1 view)
我的估算器中缺少什么?
答案 0 :(得分:0)
问题在于趋势的多类性质,ML.net并未按预期方式进行处理,而是enum的数据类型必须为uint值