列举两种生成one-hot的方式:OneHotEncoder,np.eyes()
各自恢复原数据的方法如下
OneHotEncoder:1. inverse_transform 参考:https://blog.csdn.net/afgasdg/article/details/84346931
2. active_features_ 参考:https://oomake.com/question/6541974
np.eyes() 参考:https://blog.csdn.net/Jamesjjjjj/article/details/90674561
https://blog.csdn.net/sinat_29957455/article/details/86552811