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

关于将BATF应用到自己数据集时产生的不正定问题 #29

Open
Sirius-learning opened this issue Nov 5, 2023 · 3 comments
Open

Comments

@Sirius-learning
Copy link

LinAlgError: 8-th leading minor of the array is not positive definite
这是我最后报的错,参数和代码提供的一样,我上网查是因为我的数据中带有NaN。我想用您提供的办法做缺失值处理,请问怎样将BATF应用于带NaN的数据?非常感谢!

@xinychen
Copy link
Owner

xinychen commented Nov 6, 2023

您好!感谢您的反馈!能否尝试将nan换成0呢?

@Sirius-learning
Copy link
Author

您好,感谢回复!我已经将nan用KNNImputer填充为float data,依然有不正定的报错。请问这个算法会规定数据必须全部是正数吗?

@xinychen
Copy link
Owner

xinychen commented Nov 6, 2023

您好!没有要求数据的数值必须是正数。

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