generated from LufsX/Experiment-LogReg
This commit is contained in:
-14
@@ -6,20 +6,6 @@ from sklearn.model_selection import train_test_split
|
||||
id = "202210423130"
|
||||
name = "董秋"
|
||||
|
||||
def sigmoid(z):
|
||||
"""
|
||||
Sigmoid 激活函数。
|
||||
Args:
|
||||
- z (numpy array): 输入值。
|
||||
Returns:
|
||||
- numpy array: Sigmoid 激活值。
|
||||
"""
|
||||
return 1 / (1 + np.exp(-z))
|
||||
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
from sklearn.preprocessing import StandardScaler
|
||||
from sklearn.model_selection import train_test_split
|
||||
|
||||
def sigmoid(z):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user