python归一化sklearn_关于sklearn中的归一化,标准化以及返回inverse_transform()的详细例子,注释清晰...
importtorchfromsklearnimportpreprocessingimportnumpyasnpX=np.array([[1.,-1.,2.],[2.,0.,0.],[0.,1.,-1.]])print(X)#Thetransformationisgivenby::#X_std=(X-X.min(axis=0))/(X.max(axis=0)-X.min(axis=0))#X_sc