官术网_书友最值得收藏!

The EmploymentHistory class

The EmploymentHistory class is the container class that contains the data to both predict and train our model. These columns map in order for the sample data reviewed previously. If you begin experimenting with new features and add to this list, ensure you increment the array index appropriately:

using Microsoft.ML.Data;

namespace chapter03.ML.Objects
{
public class EmploymentHistory
{
[LoadColumn(0)]
public float DurationInMonths { get; set; }

[LoadColumn(1)]
public float IsMarried { get; set; }

[LoadColumn(2)]
public float BSDegree { get; set; }

[LoadColumn(3)]
public float MSDegree { get; set; }

[LoadColumn(4)]
public float YearsExperience { get; set; }

[LoadColumn(5)]
public float AgeAtHire { get; set; }

[LoadColumn(6)]
public float HasKids { get; set; }

[LoadColumn(7)]
public float WithinMonthOfVesting { get; set; }

[LoadColumn(8)]
public float DeskDecorations { get; set; }

[LoadColumn(9)]
public float LongCommute { get; set; }
}
}
主站蜘蛛池模板: 佳木斯市| 平阴县| 延庆县| 邳州市| 霍城县| 汨罗市| 浦县| 芒康县| 句容市| 通山县| 恩平市| 六盘水市| 涞水县| 绥芬河市| 沙河市| 静乐县| 特克斯县| 察雅县| 阳东县| 获嘉县| 永康市| 达拉特旗| 赞皇县| 丰都县| 宁都县| 阳城县| 全州县| 呼伦贝尔市| 井陉县| 陕西省| 陇川县| 连江县| 阳信县| 郓城县| 酒泉市| 青阳县| 裕民县| 天长市| 西盟| 开平市| 宁晋县|