![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法
花落陌上逢
这个作者很懒,什么都没留下…
展开
-
蒙特卡洛方法计算pi值
蒙特卡洛方法计算pi值from random import randomfrom time import perf_counterdarts = 1000*1000hits = 0start = perf_counter()for i in range(1,darts+1):x,y = random(),random()dist = pow(x ** 2 + y ** 2,0.5)if dist <= 1.0:hits = hits +1pi = 4 * (hits / dart原创 2021-01-22 22:51:59 · 855 阅读 · 0 评论 -
VGG16(调用权重)
from keras.applications.vgg16 import VGG16from keras.applications.vgg16 import decode_predictionsfrom keras.preprocessing import imagefrom keras.applications.vgg16 import preprocess_inputfrom kera...原创 2019-10-22 12:12:27 · 1674 阅读 · 0 评论 -
朴素贝叶斯
朴素贝叶斯(1)高斯朴素贝叶斯#导入第三方包import pandas as pd#读入数据skin = pd.read_excel(r'D:\\python 2019暑假\\朴素贝叶斯模型\\Skin_Segment.xlsx')#设置正例和负例skin.y = skin.y.map({2:0,1:1})skin.y.value_counts()0 1941981 ...原创 2019-10-22 12:07:39 · 610 阅读 · 1 评论