summaryrefslogtreecommitdiff
path: root/RhSolutions.ML.Lib/Product.cs
diff options
context:
space:
mode:
Diffstat (limited to 'RhSolutions.ML.Lib/Product.cs')
-rw-r--r--RhSolutions.ML.Lib/Product.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/RhSolutions.ML.Lib/Product.cs b/RhSolutions.ML.Lib/Product.cs
new file mode 100644
index 0000000..99040fc
--- /dev/null
+++ b/RhSolutions.ML.Lib/Product.cs
@@ -0,0 +1,16 @@
+using Microsoft.ML.Data;
+namespace RhSolutions.ML;
+
+public class Product
+{
+ [LoadColumn(0)]
+ public string? Name { get; set; }
+ [LoadColumn(1)]
+ public string? Type { get; set; }
+}
+
+public class TypePrediction
+{
+ [ColumnName("PredictedLabel")]
+ public string? Type { get; set; }
+} \ No newline at end of file