摘要: # 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 阅读(239) 评论(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 阅读(408) 评论(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 阅读(616) 评论(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 阅读(226) 评论(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 阅读(517) 评论(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 阅读(294) 评论(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 阅读(935) 评论(0) 推荐(0)