Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
CookBook sample - Could not find input column 'CategoricalOneHot' #2485
Source code / logs
I cannot see the schema of your data, but your first pipeline estimator, the OneHotEncoding, expect the schema to have a column called "CategoricalOneHot". Is there such a column in your dataView object?
Can you do dataView.Preview() before starting the pipeline, and inspect the names of the columns?
Hi @sfilipi ,
Thanks for looking into this. Here is the code snippet from the CookBook that I have been trying to run and this leads to Could not find input column 'CategoricalOneHot'.
Please note that I had to make a couple of lines of changes to the code snippet in the CookBook to get it to compile. (See below)
Link to CookBook
Code from CookBook
Sample CSV from Adult dataset
Changes I had to make to the code snippet
Hi @sdg002 ,
In version 0.9 we swapped the order of the columns for the estimators, and it loos like we missed updating this snippet of the cookbook.
The order of the arguments, is OutputColumn, InputColumn: so the colum that appears second, or at the end of the estimator parameters, should exist in the dataview.
If you swap the order
see the test with that same pipeline here:
Note: leaving this issue open, and we'll close it with the PR that fixes the cookbook.