Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么教程里的demo都跑不通呢 #133

Open
bailixuance opened this issue Dec 8, 2023 · 2 comments
Open

为什么教程里的demo都跑不通呢 #133

bailixuance opened this issue Dec 8, 2023 · 2 comments

Comments

@bailixuance
Copy link

参考使用教程toad使用教程,进行特征筛选时报错。
代码:

train_selected, dropped = toad.selection.select(train,target = 'target', empty = 0.5, iv = 0.05, corr = 0.7, return_drop=True, exclude=['APP_ID_C','month'])
print(dropped)
print(train_selected.shape)

报错内容:

ValueError: could not convert string to float: 'RESIDENT INDIAN'

toad 版本是:0.1.2

这个问题也太低级了吧

@Secbone
Copy link
Member

Secbone commented Dec 10, 2023

@bailixuance 抱歉,这个问题是由于新版本的 pandas 更新后有参数变更,这部分测试用例没有覆盖导致没有及时发现。
目前已修复此问题并已添加测试用例,在新版本 0.1.3 中已可用,可以升级后再试一下

@bailixuance
Copy link
Author

我的pandas 确实是 2.0.3 的,不过在安装toad==0.1.3时有出新的问题:

  1. python 3.9 安装0.1.2、0.1.3 均编译失败
  2. python 3.8 仅0.1.2安装成功,0.1.3失败
    详情见 os 系统安装错误,编译错误 #134

@bailixuance 抱歉,这个问题是由于新版本的 pandas 更新后有参数变更,这部分测试用例没有覆盖导致没有及时发现。 目前已修复此问题并已添加测试用例,在新版本 0.1.3 中已可用,可以升级后再试一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants