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

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; }
}
}
主站蜘蛛池模板: 西林县| 台州市| 文安县| 辽阳县| 通道| 冕宁县| 呼伦贝尔市| 五河县| 苗栗县| 哈尔滨市| 柞水县| 仙居县| 禹城市| 兴义市| 高陵县| 赞皇县| 满洲里市| 鱼台县| 兴业县| 岳池县| 手机| 江山市| 汤阴县| 公安县| 锡林浩特市| 个旧市| 彭水| 马公市| 普洱| 南雄市| 紫金县| 章丘市| 白沙| 儋州市| 通化市| 大兴区| 洛隆县| 永福县| 黄梅县| 花垣县| 勃利县|