摘要: 本次案例需要大家了解关于手写数字识别(mnist)的数据集的特点和结构: 输出: Test 196 Prediction: 7 True Class: 9Test 197 Prediction: 9 True Class: 9Test 198 Prediction: 1 True Class: 9T 阅读全文
posted @ 2017-07-22 19:53 故笙 阅读(1883) 评论(0) 推荐(0) 编辑
摘要: 公众号:一个有趣的机器学习社区 (大量机器学习资料分享) 阅读全文
posted @ 2017-07-22 16:46 故笙 阅读(1370) 评论(0) 推荐(0) 编辑
摘要: 在第一次用TensorBoard的时候在cmd启动tensorboard 输入下面的命令: C:\Users\hasee>tensorboard --logdir = C:\Users\hasee\Documents\logs 提示: Starting TensorBoard b'47' at ht 阅读全文
posted @ 2017-07-18 11:36 故笙 阅读(1247) 评论(0) 推荐(0) 编辑
摘要: >>> df one two three mouse 1 2 3 rabbit 4 5 6 >>> # select columns by name >>> df.filter(items=['one', 'three']) one three mouse 1 3 rabbit 4 6 >>> # se... 阅读全文
posted @ 2017-05-31 22:59 故笙 阅读(17506) 评论(0) 推荐(0) 编辑
摘要: def split_train_test(text_df, size=0.8): """ 分割训练集和测试集 """ # 为保证每个类中的数据能在训练集中和测试集中的比例相同,所以需要依次对每个类进行处理 train_text_df = pd.DataFrame() test_text_df = pd.DataFrame() la... 阅读全文
posted @ 2017-05-28 19:57 故笙 阅读(2826) 评论(0) 推荐(0) 编辑
摘要: # -*- coding:utf-8 -*- """ 统计每个国家存在心理健康问题的平均年龄 """ import csv import matplotlib.pyplot as plt import numpy as np import matplotlib data_depth = "./data/survey.csv" dict = {} result = {} matplotlib.us... 阅读全文
posted @ 2017-05-27 20:48 故笙 阅读(823) 评论(0) 推荐(0) 编辑