0
![Stack Overflow](http://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-icon.png)
I have implemented the categorical encoding with pandas, and as a classifier I have used SGDClassifier. Your code above calls MyClassifier(), but it is not defined inside the code itself.
import numpy as np
import pandas as pd
# from sklearn.preprocessing import LabelEncoder # No longer used
fro...