dotnet / dotnet/machinelearning

Handle null/empty values better for training and consumption

Open
#5,952 9 comments 0 reactions 2 assignees Claimed by @michaelgsharp View on GitHub
area-Core
Dominant language
C#
Stars
9.4k
Forks
2k
Avg merge
2d 20h
Merged PRs (30d)
11

Description

**System Information (please complete the following information):**
- Model Builder Version: ml.net CLI 16.1.1
- Visual Studio Version 8.7.6 for macs

**Describe the bug**
Tried to change model input to support nullable types to support my data set, ConsumeModel throws error:

"System.ArgumentOutOfRangeException has been thrown, "Could not determine an IDataView type for member Flash_point (Parameter 'rawType')""

Have inputs, but some are missing values. (Empty cell, but are NOT zero)

**To Reproduce**
Steps to reproduce the behavior:
1. Train model with data with missing values
2. Try to run new data with missing values thru model
3. Change modelinput float options to float?
4. See error

**Expected behavior**
Handle nullable types since my data includes some empty cells

**Screenshots**
NA

**Additional context**
NA

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.