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

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; }
}
}
主站蜘蛛池模板: 沙雅县| 汶上县| 蒙自县| 尼勒克县| 依兰县| 定日县| 通山县| 图们市| 搜索| 镇康县| 响水县| 兴业县| 彰化县| 萨迦县| 武乡县| 苍山县| 永修县| 社旗县| 临猗县| 万州区| 道孚县| 横山县| 山丹县| 类乌齐县| 磴口县| 白河县| 利川市| 大理市| 颍上县| 荆门市| 沙雅县| 故城县| 武义县| 攀枝花市| 吉水县| 河东区| 和顺县| 中西区| 南投市| 芒康县| 五台县|