更新 function.py
Gitea Actions Experiment Test / Experiment-Actions (push) Successful in 31s

This commit is contained in:
2024-11-02 12:38:24 +08:00
parent f80e9371d8
commit f9818b1d36
-14
View File
@@ -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):
"""