python中定義的類的方法調用老出現missing 1 postional argument 或者self的解決辦法

import numpy as np # 歸一化 class StandardScaler: def __init__(self): '''初始化''' self.mean_ = None self.scale_ = None def fit(self,x): '''input x_train,train the
相關文章
相關標籤/搜索