Skip to content

Commit

Permalink
info about ordinal encoding 2
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt committed Nov 12, 2019
1 parent a6494e4 commit b1a5915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch04/ch04.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1661,7 +1661,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"If we are unsure about the numerical differences between the categories of ordinal features, we can also encode them using a thresholded one-hot encoded format. For example, we can split the feature \"size\" with values M, L, and XL into two new features \"x > M\" and \"x > L\". For example, let's consider the original DataFrame:"
"If we are unsure about the numerical differences between the categories of ordinal features, or the difference between two ordinal values is not defined, we can also encode them using a threshold encoding with 0/1 values. For example, we can split the feature \"size\" with values M, L, and XL into two new features \"x > M\" and \"x > L\". Let's consider the original DataFrame:"
]
},
{
Expand Down

0 comments on commit b1a5915

Please sign in to comment.