摘要: In the former article "Data Preparation by Pandas and Scikit-Learn", we discussed about a series of steps in data preparation. Scikit-Learn provides t 阅读全文
posted @ 2019-01-02 09:40 Sherrrry 阅读(240) 评论(0) 推荐(0) 编辑
摘要: In this article, we dicuss some main steps in data preparation. Drop Labels Firstly, we drop labels for train set. Here we use drop() method in Pandas 阅读全文
posted @ 2019-01-02 09:34 Sherrrry 阅读(608) 评论(0) 推荐(0) 编辑
摘要: Train model: Show parameters of best model: Show the score of train set: Fit on test set: Show the score of test set: More about GridSearchCV: https:/ 阅读全文
posted @ 2019-01-02 05:06 Sherrrry 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 1. Using for-loop Iterate along row axis: Output: [1 2 3] [4 5 6] Iterate by index: Output: [1 2 3] [4 5 6] Iterate by row and index: Iterate by row a 阅读全文
posted @ 2019-01-02 04:49 Sherrrry 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 1. Reshape: The np.reshape() method will give a new shape to an array without changing its data. Note that the new shape should be compatible with the 阅读全文
posted @ 2019-01-02 04:05 Sherrrry 阅读(157) 评论(0) 推荐(0) 编辑