你聽說過波士頓住房數據中的道德問題嗎?當我嘗試在 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.