Skip to content

Commit

Permalink
Typo: Ooe-hot -> one-hot
Browse files Browse the repository at this point in the history
  • Loading branch information
jakevdp committed Jan 3, 2017
1 parent 950f26c commit 4825458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebooks/05.04-Feature-Engineering.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"It turns out that this is not generally a useful approach in Scikit-Learn: the package's models make the fundamental assumption that numerical features reflect algebraic quanitites.\n",
"Thus such a mapping would imply, for example, that *Queen Anne < Fremont < Wallingford*, or even that *Wallingford - Queen Anne = Fremont*, which (niche demographic jokes aside) does not make much sense.\n",
"\n",
"In this case, one proven technique is to use *Ooe-hot encoding*, which effectively creates extra columns indicating the presence or absence of a category with a value of 1 or 0, respectively.\n",
"In this case, one proven technique is to use *one-hot encoding*, which effectively creates extra columns indicating the presence or absence of a category with a value of 1 or 0, respectively.\n",
"When your data comes as a list of dictionaries, Scikit-Learn's ``DictVectorizer`` will do this for you:"
]
},
Expand Down

0 comments on commit 4825458

Please sign in to comment.