One-hot encoding

From Rice Wiki

One-hot encoding encodes nominal categorical data into numerical ones by representing them as binary vectors. The drawback is high-dimensional sparse data, which may be computationally expensive.