from sklearn.preprocessing import StandardScaler def preprocess_features(features): scaler = StandardScaler() scaled_features = scaler.transform(features) return scaled_features