你听说过波士顿住房数据中的道德问题吗?当我尝试在 Python 的 scikit-learn(通过 load_boston 模块)中使用 Boston Housing 数据时,我收到了以下错误消息,这让我感到很惊讶。 我认为我们应该避免在向用户和潜在客户演示时使用这些数据。 我在 JIRA ticket JMP-16844 中输入我们应该从 JMP 中删除 Boston Housing 样本数据表。我经常天真地使用这个数据集。
`load_boston` has been removed from scikit-learn since version 1.2.
The Boston housing prices dataset has an ethical problem: as
investigated in [1], the authors of this dataset engineered a
non-invertible variable "B" assuming that racial self-segregation had a
positive impact on house prices [2]. Furthermore the goal of the
research that led to the creation of this dataset was to study the
impact of air quality but it did not give adequate demonstration of the
validity of this assumption.
The scikit-learn maintainers therefore strongly discourage the use of
this dataset unless the purpose of the code is to study and educate
about ethical issues in data science and machine learning.