08 2016 档案

摘要:二元分类的效果评估方法有很多,常见的包括预测模型中使用的准确率(accuracy),精确率(precision)和召回率(recall)三项指标,以及综合评价指标(F1 measure), ROC AU值(Receiver Operating Characteristic ROC,Area Unde 阅读全文
posted @ 2016-08-25 16:41 坚持不懈--成功 阅读(2447) 评论(0) 推荐(0)
摘要:直接上代码:import matplotlib.pylab as pltimport numpy as npplt.figure()axes=plt.gca()y= np.random.randn(9)col_labels=['col1','col2','col3']row_labels=['row1','row2','row3']table_vals=[[11,12,13],[21,22,23]... 阅读全文
posted @ 2016-08-23 15:04 坚持不懈--成功 阅读(6054) 评论(0) 推荐(0)
摘要:import sqlite3 # create database conn = sqlite3.connect('test.db') #不存在就创建后再打开 print ("Opened database successfully") conn.execute('''''CREATE TABLE C 阅读全文
posted @ 2016-08-23 14:52 坚持不懈--成功 阅读(6365) 评论(0) 推荐(0)
摘要:方法一: 方法二: 阅读全文
posted @ 2016-08-22 16:42 坚持不懈--成功 阅读(799) 评论(0) 推荐(0)