-
Book Overview & Buying
-
Table Of Contents
Mastering .NET Machine Learning
By :
As we saw in Chapter 5, Time Out – Obtaining Data, obtaining and shaping the data (which is often the largest problem in many projects) is a snap using F# type providers. However, once our data is local and shaped, our work in preparing the data for machine learning is not complete. There might still be abnormalities in each frame. Things like null values, empty values, and values outside a reasonable range need to be addressed. If you come from an R background, you will be familiar with null.omit and na.omit, which remove all of the rows from a data frame. We can achieve functional equivalence in F# by applying a filter function to the data. In the filter, you can search for null if it is a reference type, or .isNone if the column is an option type. While this is effective, it is a bit of a blunt hammer because you are throwing out a row that might have valid values in the other fields when only one field has an inappropriate value.
Another way to handle missing data is to...
Change the font size
Change margin width
Change background colour