Could not find function "train"

I'm trying to applicaticate KNN like this example .


when i tried



Problem in the last capture :