def preprocess_features(X, ips):
'''
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, ips
评论列表
文章目录