notes

Personal notes
git clone git://git.laack.co/notes.git
Log | Files | Refs

LabelEncoding.md (574B)


      1 # Label Encoding
      2 
      3 ML CH2
      4 
      5 **Definition:** Label encoding is the process of encoding some arbitrary label as an arbitrary number. 
      6 
      7 This is often done when you have a string input to a neural network or linear regression model and there are too many options for the given feature to do [OneHotEncoding](OneHotEncoding.md).
      8 
      9 One issue with this is that the labels are arbitrary so if the model tries to use these numbers to predict higher being better or worse there will be issues. 
     10 
     11 See also [TargetEncoding](TargetEncoding.md) for another way to encode strings as numbers.