首页 > 解决方案 > 具有用户定义值集合的 ML.NET 价格预测模型

问题描述

试图将 ML.NET 添加到软件中以估计属性值,但问题是允许使用该软件的客户为Property对象创建用户定义的自定义字段。画出以下数据:

public class Property
{
    public int PropertyId { get; set; }
    public float Size { get; set; }
    public string ZipCode { get; set; }
    // etc.

    public float SalePrice { get; set; }

    public ICollection<PropertyCustomField> CustomFields { get; set; }
}

public class PropertyCustomField
{
    public string Name { get; set; }
    public string Value { get; set; }
}

我想建立和训练一个模型来预测SalePrice属性,但是不知道属性将有多少PropertyCustomField条目或它们将是什么,但它们通常会Property在系统中的其他记录中共享。它们绝对包含与财产价值相关的数据,因此不能简单地忽略它们。我已经阅读了许多 ML.NET 价格预测指南,但我还没有找到适合这种情况的指南。无论如何将这些任意数据转换为可以分类以供模型训练和使用的东西?

标签: c#ml.net

解决方案


推荐阅读