This is a study for classifying surnames with the aid of a CNN. This study follows from KTH - DD2424 course to implement CNN from scratch and it has no obligation to present high accuracy or low loss.
Each letter will be represented as by a one-hot encoding vector of length d. Hence, each letter is a one-hot representation among all possible letters. Thus, d represents the number of different letters on the surname.