<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def train(self, traindata: np.ndarray) -> None: """ Trains on dataset """

        self.clf.fit(traindata[:, 1:5], traindata[:, 5])