- 博客(10)
- 问答 (1)
- 收藏
- 关注
转载 Mongodb 删除重复数据
参 2.使用ensureIndex建立索引来删除重复记录,此命令适用于Mongodb 3.0以下版本。在Mongodb3.0以上版本,ensureIndex已经被createIndex取代了,同时dropDups选项也已经被移除了,所以不能再使用以上命令来去掉重复数据: db.your_collection.ensureIndex({public_no:1}, {unique: tru
2017-10-29 19:45:24 1164
原创 [LeetCode] 31. Next Permutation
题目:https://leetcode.com/problems/next-permutation/description/ 题目 Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such
2017-10-29 10:21:26 150
原创 机器学习及实践 2.1.1.1 线性分类器
线性分类器 sklearn 中线性分类器 LogisticRegression 和SGDclassifier 对肿瘤进行、良/恶分类。 p35-p43 代码13:数据预处理: 1.读取csv 数据(1.创建特征向量表。2.pandas.read_csv 读取数据(网络或本地)) 2.缺失数据处理(丢弃) #代码 13 :良/恶性乳腺癌肿瘤数据预处理 im
2017-10-22 16:37:34 493
原创 [LeetCode] 22. Generate Parentheses
题目:https://leetcode.com/problems/generate-parentheses/description/ 题目 Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, give
2017-10-19 11:05:08 194
原创 [LeetCode] 20. Valid Parentheses
题目:https://leetcode.com/problems/valid-parentheses/description/ 题目 Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The
2017-10-08 21:14:40 196
原创 [LeetCode] 19. Remove Nth Node From End of List
题目:https://leetcode.com/problems/remove-nth-node-from-end-of-list/description/ 题目 Given a linked list, remove the nth node from the end of list and return its head. For example, Given linke
2017-10-05 16:36:17 162
原创 [LeetCode] 17. Letter Combinations of a Phone Number
题目:https://leetcode.com/problems/letter-combinations-of-a-phone-number/description/ 题目 Given a digit string, return all possible letter combinations that the number could represent. A mapping o
2017-10-03 10:23:25 163
原创 模式的秘密---单例模式
网址:http://www.imooc.com/learn/112 单例模式是Java中最常用的设计模式之一,它通过阻禁止外部实例化和修改,对象的方式来控制所创建的对象的数量。这个概念可以被广泛地推广到仅使用有一个现存的对象能更高效运行的系统,或者是限制在若干个对象实例化为特定的数目的高效系统环境系统中。 单例模式的应用场景是当全局中某一个类的实例只需要一个。 当然可以说
2017-10-02 19:31:05 158
原创 [LeetCode] 15. 3Sum
题目:https://leetcode.com/problems/3sum/description/ 题目 Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives
2017-10-02 10:02:44 206
原创 [LeetCode] 11. Container With Most Water
题目:https://leetcode.com/problems/container-with-most-water/description/ 题目 Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical line
2017-10-01 16:07:03 167
空空如也
Python opencv帧 怎么 显示在GUI 中?
2016-04-12
TA创建的收藏夹 TA关注的收藏夹
TA关注的人