PotatoPlan/Game1/Sources/ML/InOut/ModelInput.cs

40 lines
986 B
C#
Raw Normal View History

2020-05-06 16:27:14 +02:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.ML;
using Microsoft.ML.Data;
2020-05-10 01:38:08 +02:00
class ModelInput
2020-05-06 16:27:14 +02:00
{
2020-05-10 01:38:08 +02:00
[ColumnName("Temperature"), LoadColumn(0)]
public float Temperature { get; set; }
2020-05-06 16:27:14 +02:00
2020-05-10 01:38:08 +02:00
[ColumnName("Humidity"), LoadColumn(1)]
public float Humidity { get; set; }
2020-05-06 16:27:14 +02:00
2020-05-10 01:38:08 +02:00
[ColumnName("Moisture"), LoadColumn(2)]
public float Moisture { get; set; }
2020-05-06 16:27:14 +02:00
2020-05-10 01:38:08 +02:00
[ColumnName("Soil_Type"), LoadColumn(3)]
public String Soil_Type { get; set; }
2020-05-06 16:27:14 +02:00
2020-05-10 01:38:08 +02:00
[ColumnName("Crop_Type"), LoadColumn(4)]
public String Crop_Type { get; set; }
2020-05-06 16:27:14 +02:00
2020-05-10 01:38:08 +02:00
[ColumnName("Nitrogen"), LoadColumn(5)]
public float Nitrogen { get; set; }
2020-05-06 16:27:14 +02:00
2020-05-10 01:38:08 +02:00
[ColumnName("Potassium"), LoadColumn(6)]
public float Potassium { get; set; }
2020-05-06 16:27:14 +02:00
2020-05-10 01:38:08 +02:00
[ColumnName("Phosphorous"), LoadColumn(7)]
public float Phosporous { get; set; }
2020-05-06 16:27:14 +02:00
2020-05-10 01:38:08 +02:00
[ColumnName("Fertilizer_Name"), LoadColumn(8)]
public String Fertilizer_Name { get; set; }
2020-05-06 16:27:14 +02:00
}
2020-05-10 01:38:08 +02:00