- 博客(14)
- 问答 (1)
- 收藏
- 关注
原创 TensorFlow学习笔记(一)--Softmax Regression实现识别手写数字
#Softmax Regression识别手写数字import tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_datamnist = input_data.read_data_sets("MNIST_data/",one_hot=True)print(mnist.train.images.shap
2018-04-30 16:52:54 179
原创 PAT 1074. Reversing Linked List (25)
Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, given L being 1→2→3→4→5→6, if K = 3, then you must output 3→2→1→6→5→4; if K
2018-04-29 20:43:17 76
原创 PAT 1073. Scientific Notation (20)
Scientific notation is the way that scientists easily handle very large numbers or very small numbers. The notation matches the regular expression [+-][1-9]"."[0-9]+E[+-][0-9]+ which means that the in
2018-04-29 19:36:07 114
原创 python在机器学习中的使用之一--数据预处理
python中的sklearn库里面实现了很多机器学习的算法,而数据预处理是机器学习的第一步也是很重要的一步,sklearn库中的preprocessing类提供了数据标准化的方法。
2018-04-23 16:55:01 1141
原创 PAT 1071. Speech Patterns (25)
People often have a preference among synonyms of the same word. For example, some may prefer "the police", while others may prefer "the cops". Analyzing such patterns can help to narrow down a speaker
2018-04-19 01:01:38 90
原创 PAT 1070. Mooncake (25)
Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many types of fillings and crusts can be found in traditional mooncakes according to the region's culture. Now
2018-04-17 17:17:48 112
原创 PAT 1069. The Black Hole of Numbers (20)
For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decreasing order, a new number can be obtained by takin
2018-04-16 14:05:34 105
原创 PAT 1064. Complete Binary Search Tree (30)
A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with keys less than the node's key.The righ
2018-04-11 15:11:22 98
原创 PAT 1065. A+B and C (64bit) (20)
Given three integers A, B and C in [-263, 263], you are supposed to tell whether A+B > C.Input Specification:The first line of the input gives the positive number of test cases, T (Output
2018-04-11 14:37:12 93
原创 PAT 1063. Set Similarity (25)
Given two sets of integers, the similarity of the sets is defined to be Nc/Nt*100%, where Nc is the number of distinct common numbers shared by the two sets, and Nt is the total number of distinct n
2018-04-10 22:06:48 92
原创 PAT 1062. Talent and Virtue (25)
About 900 years ago, a Chinese philosopher Sima Guang wrote a history book in which he talked about people's talent and virtue. According to his theory, a man being outstanding in both talent and virt
2018-04-06 20:03:51 99
原创 PAT 1061. Dating (20)
Sherlock Holmes received a note with some strange strings: "Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm". It took him only a minute to figure out that those strange strings are a
2018-04-06 19:39:38 146
原创 PAT 1060. Are They Equal (25)
If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as 0.123*105 with simple chopping. Now given the number of significa
2018-04-01 20:14:54 82
原创 PAT 1059. Prime Factors (25)
Given any positive integer N, you are supposed to find all of its prime factors, and write them in the format N = p1^k1 * p2^k2 *…*pm^km.Input Specification:Each input file contains one test c
2018-04-01 16:53:55 99
空空如也
VScode扩展宿主意外终止。
2017-12-02
TA创建的收藏夹 TA关注的收藏夹
TA关注的人