上一页 1 ··· 331 332 333 334 335 336 337 338 339 ··· 498 下一页
摘要: class Toggle extends Component { static propTypes = { defaultOn: PropTypes.bool, on: PropTypes.bool, onToggle: PropTypes.func, children: PropTypes.oneOfType([ PropTypes.func, ... 阅读全文
posted @ 2017-10-05 19:46 Zhentiw 阅读(302) 评论(0) 推荐(0)
摘要: # Why Python is Great: Namedtuples # Using namedtuple is way shorter than # defining a class manually: >>> from collections import namedtuple >>> Car = namedtup1e('Car', 'color mileage') # Our new "... 阅读全文
posted @ 2017-10-03 20:59 Zhentiw 阅读(245) 评论(0) 推荐(0)
摘要: Tf-idf, or term frequency-inverse document frequency, is a statistic that indicates how important a word is to the entire document. This lesson will e 阅读全文
posted @ 2017-10-03 20:38 Zhentiw 阅读(416) 评论(0) 推荐(0)
摘要: In this lesson, we will learn how to train a Naive Bayes classifier and a Logistic Regression classifier - basic machine learning algorithms - on JSON 阅读全文
posted @ 2017-10-03 20:23 Zhentiw 阅读(619) 评论(0) 推荐(0)
摘要: In this lesson, we will learn how to train a Naive Bayes classifier or a Logistic Regression classifier - basic machine learning algorithms - in order 阅读全文
posted @ 2017-10-03 19:20 Zhentiw 阅读(230) 评论(0) 推荐(0)
摘要: Shuffling is a common process used with randomizing the order for a deck of cards. The key property for a perfect shuffle is that each item should hav 阅读全文
posted @ 2017-10-03 18:39 Zhentiw 阅读(523) 评论(0) 推荐(0)
摘要: A common interview question is to write a
function
that
converts a string
into
an
integer e.g. "123" => 123. This function is commonly called atoi bec 阅读全文
posted @ 2017-10-03 16:17 Zhentiw 阅读(300) 评论(0) 推荐(0)
摘要: In a doubly linked list each node in the list stores the contents of the node and a pointer or reference to the next and the previous nodes in the lis 阅读全文
posted @ 2017-10-03 01:56 Zhentiw 阅读(939) 评论(0) 推荐(0)
摘要: In a singly linked list each node in the list stores the contents of the node and a reference (or pointer in some languages) to the next node in the l 阅读全文
posted @ 2017-10-02 19:01 Zhentiw 阅读(438) 评论(0) 推荐(0)
摘要: # The get() method on dicts # and its "default" argument name_for_userid = { 382: "Alice", 590: "Bob", 951: "Dilbert", } def greeting(userid): return "Hi %s!" % name_for_userid.get(... 阅读全文
posted @ 2017-10-01 18:30 Zhentiw 阅读(183) 评论(0) 推荐(0)
上一页 1 ··· 331 332 333 334 335 336 337 338 339 ··· 498 下一页