{"published":"2026-03-20 09:55:54","description":"import numpy as np class Standardization: def __init__(self): self.mean_ = None self.std_ = None def fit(self, X): X = np.asarray(X) self.mean_ = X.mean(axis=0) self.std_ = X.std(axis=0) # \u30bc\u30ed\u9664\u7b97\u9632\u6b62 self.std_[self.std_ == 0] = 1.0 def transform(self, X): X = np.asarray(X) return (X - self.mean_) / self\u2026","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhtn20190109.hatenablog.com%2Fentry%2F2026%2F03%2F20%2F095554\" title=\"Standardization - HTN20190109\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"HTN20190109\u306e\u65e5\u8a18","version":"1.0","author_url":"https://blog.hatena.ne.jp/HTN20190109/","url":"https://htn20190109.hatenablog.com/entry/2026/03/20/095554","blog_url":"https://htn20190109.hatenablog.com/","provider_name":"Hatena Blog","height":"190","title":"Standardization","width":"100%","author_name":"HTN20190109","type":"rich","categories":["DL"],"provider_url":"https://hatena.blog"}