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

This commit is contained in:
2024-10-31 16:06:18 +08:00
parent 1682939bdb
commit d85edc9d22
+9
View File
@@ -1,5 +1,14 @@
import numpy as np
"""
实验说明:
- 自行编写实现数据加载与预测病马死亡的对率回归算法。
"""
# 填写学号和姓名
id = "202210423213" # 请替换为实际学号
name = "熊浩燃" # 请替换为实际姓名
def sigmoid(z):
"""计算Sigmoid函数值"""
return 1 / (1 + np.exp(-z))