- Hands-On Machine Learning with ML.NET
- Jarred Capellman
- 142字
- 2021-06-24 16:43:32
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; }
}
}
推薦閱讀
- PHP動(dòng)態(tài)網(wǎng)站程序設(shè)計(jì)
- Mastering Visual Studio 2017
- GeoServer Cookbook
- Ext JS Data-driven Application Design
- Python Game Programming By Example
- Learning SQLite for iOS
- C#程序設(shè)計(jì)
- 從零開始學(xué)UI:概念解析、實(shí)戰(zhàn)提高、突破規(guī)則
- SQL Server 2008實(shí)用教程(第3版)
- Mastering ASP.NET Web API
- Puppet Cookbook(Third Edition)
- CISSP in 21 Days(Second Edition)
- WordPress 3.7 Complete(Third Edition)
- Mastering Android Application Development
- Java實(shí)踐指南