ML.net - Bad value at line 1 in column label

不羁岁月 提交于 2019-12-06 13:14:34

After looking at it for a short while I realized that one of my columns had the incorrect data type.

In the class used to load the learning data, IrisData, I used the incorrect data type for Label. Hence the console message: Bad value at line 1 in column Label.

To fix this, I changed the data type for the Label field from float to string:

public class IrisData
{
    ...
    [ColumnName("Label")]
    public string Label;
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!