2022-05-01から1日間の記事一覧
機械学習に入門しています。 yushi-dev.hatenablog.com 今回から、Perceptronを実装していきます。 設計 class Perceptron(object): def __init__(self): self.w_ = np.zeros(1 + X.shape[1]) def predict(self, X): """ 1.予測 """ def fit(self, X, y): ""…
機械学習に入門しています。 yushi-dev.hatenablog.com 今回から、Perceptronを実装していきます。 設計 class Perceptron(object): def __init__(self): self.w_ = np.zeros(1 + X.shape[1]) def predict(self, X): """ 1.予測 """ def fit(self, X, y): ""…