摘要:
5折交叉验证,测试10次,取平均值: 1 import random 2 3 4 def read(path: str) -> tuple: 5 with open(path, "r") as f: 6 text = f.readlines() 7 M = [] 8 for row in text: 阅读全文
posted @ 2021-05-10 16:46
墨鳌
阅读(65)
评论(0)
推荐(0)
摘要:
Python 信息熵-条件熵计算 1 import csv 2 import numpy as np 3 4 5 def read(path: str) -> tuple: 6 with open(path, 'r') as f: 7 text = csv.reader(f) 8 A = [] 9 阅读全文
posted @ 2021-05-10 15:28
墨鳌
阅读(82)
评论(0)
推荐(0)