c# - 具有用户定义值集合的 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 价格预测指南,但我还没有找到适合这种情况的指南。无论如何将这些任意数据转换为可以分类以供模型训练和使用的东西?
解决方案
推荐阅读
- nats.io - 发送大于 1MB 的消息是一种不好的做法吗?
- python - 如何在不破坏系统解释器的情况下修改 Python 环境?
- python - 无法在 django 中使用 react 应用程序中的注销功能
- c - 如何将偶数个字符复制到C中的字符串?
- php - 如何使用 PHPMailer 为不同的电子邮件地址设置不同的回复地址?
- android - GridLayout 图像离开屏幕
- c++ - 如何在静态库中查找缺少的库依赖项(或根本原因)以及何时使用 externalproject 方法构建 cmake 目标
- amazon-s3 - aws-cli 命令`aws s3 sync` 产生错误 CompleteMultipartUpload 多部分完成已经在进行中
- javascript - 如何通过在 Razor 页面中输入的字母过滤 @Html.DropDownListFor?
- reactjs - Preact:如何从一个组件获取 url 参数到另一个组件