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

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; }
}
}
主站蜘蛛池模板: 房山区| 卢湾区| 应用必备| 新建县| 成都市| 达日县| 扬州市| 连平县| 博乐市| 武威市| 东乌珠穆沁旗| 灵丘县| 甘南县| 常山县| 集贤县| 昌图县| 石柱| 广宗县| 涿鹿县| 庆城县| 华阴市| 眉山市| 婺源县| 呼伦贝尔市| 饶平县| 永定县| 宣化县| 永善县| 广丰县| 寻甸| 乐昌市| 泽州县| 元谋县| 甘南县| 临洮县| 鹤岗市| 蕲春县| 察雅县| 西贡区| 灌阳县| 通辽市|