Aligns module naming with the upcoming classification_neural lab, which will use the same models/ package convention. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
13 lines
237 B
Python
13 lines
237 B
Python
import numpy as np
|
|
|
|
|
|
class ManualClassifier:
|
|
def fit(self, X, y):
|
|
return self
|
|
|
|
def predict(self, X):
|
|
return np.array([self.predict_one(msg) for msg in X])
|
|
|
|
def predict_one(self, message):
|
|
return "ham"
|