generated from LufsX/Experiment-LogReg
This commit is contained in:
@@ -95,6 +95,9 @@ def load_data(filepath):
|
||||
# 去掉特征3和特征24~28
|
||||
data = np.delete(data, [2] + list(range(23, 28)), axis=1) # 特征3的索引是2,特征24-28的索引是23-27
|
||||
|
||||
scaler = StandardScaler()
|
||||
data = scaler.fit_transform(data)
|
||||
|
||||
return data, target_variable
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user