def preprocess_features(X, Y):
'''
Scale the feature vectors using scikit preprocessing.
'''
assert(len(X.shape) == 2) # Double check that X is 2d.
X = preprocessing.maxabs_scale(X, copy=False)
return X, Y
文章目录