2017年4月15日

机器学习常用性能指标总结

摘要: 序言 在机器学习中,性能指标(Metrics)是衡量一个模型好坏的关键,通过衡量模型输出 和 之间的某种"距离"得出的。 性能指标往往是我们做模型时的最终目标,如 ,`召回率 敏感度 性能指标`则作为模型训练过程中,作为验证集做决定(early stoping或model selection)的主要 阅读全文

posted @ 2017-04-15 14:31 Prince1994 阅读(7524) 评论(0) 推荐(0) 编辑

2016年11月8日

使用PCA + KNN对MNIST数据集进行手写数字识别

摘要: 首先引入需要的包 载入数据集,使数据中心化(减去平均值) 先看一下前16张训练机和数据集都长什么样, 使用plt画出图像 __求出平均脸, 简单计算,其实就是把每个像素求出平均值__, 画出来看看, 就长这样 所有图片都减去平均脸 把所有像素摊平(都变成以为向量) 执行PCA处理数据 这一步发现py 阅读全文

posted @ 2016-11-08 16:51 Prince1994 阅读(7639) 评论(1) 推荐(1) 编辑

2016年10月24日

## Python中的Package和Jupyter中import包问题

摘要: __前言__ 关于python包的一些知识 Java中的package概念 我们知道在java中的import package概念, java中的包就是一个目录,里面包含着子目录,子目录套着子目录,当需要引入下层包的时候,需要加一个点以表示分层的概念例如 ├─ aaa ├─bbb │ └─ccc └ 阅读全文

posted @ 2016-10-24 14:36 Prince1994 阅读(6880) 评论(1) 推荐(0) 编辑

2016年9月6日

PAT 1057

摘要: Stack is one of the most fundamental data structures, which is based on the principle of Last In First Out (LIFO). The basic operations include Push ( 阅读全文

posted @ 2016-09-06 15:17 Prince1994 阅读(183) 评论(0) 推荐(0) 编辑

2016年9月4日

1020. Tree Traversals

摘要: Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to ou 阅读全文

posted @ 2016-09-04 23:22 Prince1994 阅读(126) 评论(0) 推荐(0) 编辑

1034. Head of a Gang

摘要: One way that the police finds the head of a gang is to check people's phone calls. If there is a phone call between A and B, we say that A and B is re 阅读全文

posted @ 2016-09-04 20:02 Prince1994 阅读(143) 评论(0) 推荐(0) 编辑

2016年9月3日

1029. Median

摘要: Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1={11, 12, 13, 14} is 12, a 阅读全文

posted @ 2016-09-03 23:46 Prince1994 阅读(135) 评论(0) 推荐(0) 编辑

2016年8月27日

PAT 1046

摘要: 1046. Shortest Distance (20) The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest d 阅读全文

posted @ 2016-08-27 22:33 Prince1994 阅读(112) 评论(0) 推荐(0) 编辑

PAT 1047

摘要: 1049. Counting Ones (30) The task is simple: given any positive integer N, you are supposed to count the total number of 1's in the decimal form of th 阅读全文

posted @ 2016-08-27 20:16 Prince1994 阅读(175) 评论(0) 推荐(0) 编辑

PAT 1017

摘要: 最近由于在刷PAT的甲级题目,开始花时间整理一下一些题目的思路,以下是这题银行排队题目的主要想法和AC源码 1017. Queueing at Bank (25) Suppose a bank has K windows open for service. There is a yellow lin 阅读全文

posted @ 2016-08-27 10:39 Prince1994 阅读(555) 评论(0) 推荐(0) 编辑

导航