100-Days-Of-ML-Code icon indicating copy to clipboard operation
100-Days-Of-ML-Code copied to clipboard

Updated libraries in Day 1_Data Preprocessing

Open gp1234 opened this issue 2 years ago • 5 comments
trafficstars


Update deprecated libraries from scikit

Two imports in the code were causing errors when run because they are right now deprecated by scikit.


Describe the bug

  1. The sklearn.preprocessing no longer has an Imputer import instead it got an SimpleImputer.
  2. The module `` got rename to sklean.model_selection instead of cross_validation ## To Reproduce Steps to reproduce the behavior:
  3. Copy the code as described originally
  4. Run it

Expected behavior

The code should run without any errors.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Mac on local Jypeter notebook

gp1234 avatar Mar 14 '23 00:03 gp1234

谢谢~已收到!

MirroZhou avatar Mar 14 '23 00:03 MirroZhou

这是来自QQ邮箱的自动回复邮件。 您好,您的邮件我已经收到,我将尽快跟您回复!!

Cherrie52 avatar Mar 14 '23 00:03 Cherrie52

你发给我的邮件已收到!                                ——王振华

wangzhenhua92429 avatar Mar 14 '23 00:03 wangzhenhua92429

这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。

wengJJ avatar Mar 14 '23 00:03 wengJJ

你的来信已收到,谢谢!

dqhf avatar Mar 14 '23 00:03 dqhf