摘要:
问题:这里的TP、FP、Score在不同的函数内部使用了同样的变量命名是否允许? 代码: def metrics_precision(x1,x2): TP=np.sum((x1==1)&(x2==1)) FP=np.sum((x1==0)&(x2==1)) score=TP/TP+FPreturn 阅读全文
posted @ 2019-10-24 18:35
athena920
阅读(448)
评论(0)
推荐(0)
摘要:
问题一:read_csv()读取文件,运行提示文件不存在 代码:import pandas as pd data=pd.read_csv('D:\MachineLearning\study\vehicle.csv') 运行报错:FileNotFoundError: [Errno 2] File b' 阅读全文
posted @ 2019-10-22 17:00
athena920
阅读(274)
评论(0)
推荐(0)
浙公网安备 33010602011771号