News for hackers. Stuff that matters.
Re:Boston Housing Price Dataset was Removed from scikit-lear... by josephcsible on Friday December 30, 2022 @03:38PM (#34189812)
Am I understanding this right? They purged an entire dataset because one of its independent variables is how integrated a neighborhood is?
Re:Boston Housing Price Dataset was Removed from scikit-lear... by version_five on Friday December 30, 2022 @04:34PM (#34190384)
Yes. It's an embarrassment.
Re:Boston Housing Price Dataset was Removed from scikit-lear... by mcs5280 on Friday December 30, 2022 @04:35PM (#34190393)
If we selectively hide things from view all the world's problems will go away
Re:Boston Housing Price Dataset was Removed from scikit-lear... by mistrial9 on Friday December 30, 2022 @04:49PM (#34190524)
.. with AI
Re:Boston Housing Price Dataset was Removed from scikit-lear... by JeremyBanks on Friday December 30, 2022 @04:53PM (#34190560)
My Rights to be included as example data in a tool distribution
Re:Boston Housing Price Dataset was Removed from scikit-lear... by mertd on Friday December 30, 2022 @05:10PM (#34190683)
Read the code? You can try to import it but you'll get a message explaining the problems with it and a link to where to find it shall you decide you'd like to use it anyway. It's the opposite of hiding.
Re:Boston Housing Price Dataset was Removed from scikit-lear... by ipaddr on Friday December 30, 2022 @05:42PM (#34190992)
Putting unnecessarily gates in front making the process non-standard is not the opposite of hiding.. perhaps somewhere inbetween
Re:Boston Housing Price Dataset was Removed from scikit-lear... by laidoffamazon on Friday December 30, 2022 @09:30PM (#34192867)
They suggest an alternative of the same type without these issues.
Re:Boston Housing Price Dataset was Removed from scikit-lear... by tshaddox on Friday December 30, 2022 @05:41PM (#34190983)
This is a very small collection of toy datasets that this machine learning library includes for the purpose of illustrating the behavior of the library: http://scikit-learn.org/stable/datasets/toy_dataset.html

It’s out of the scope of this library to publish all datasets in existence or highlight particular datasets that are relevant to particular societal problems. It’s literally just a few datasets so that you can play around with the ML library without downloading any external datasets. I think it’s fair to allow them to exercise reasonable discretion in their choice of which toy datasets to ship with their ML library.

Re:Boston Housing Price Dataset was Removed from scikit-lear... by ffssffss on Friday December 30, 2022 @04:47PM (#34190506)
What's the point of such an incendiary comment? No, you aren't understanding it right. At worst you are offering a deliberately misleading interpretation. Here's what the link says:

         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.
Re:Boston Housing Price Dataset was Removed from scikit-lear... by josephcsible on Friday December 30, 2022 @04:53PM (#34190555)
The "B" variable measures how integrated a neighborhood is, and that snippet seems to be saying that its existence is the "ethical problem" that led them to purge the dataset. How is any of that different than what I said?
[dead]
Re:Boston Housing Price Dataset was Removed from scikit-lear... by trinsic2 on Friday December 30, 2022 @05:01PM (#34190615)
Stop what?
Re:Boston Housing Price Dataset was Removed from scikit-lear... by anigbrowl on Friday December 30, 2022 @07:52PM (#34192020)
Expressing incredulity over one piece of context without acknowledging the existence of other parts which modify it. There was a full detailed explanation at the medium blog, and all that was necessary to do was follow the citation given and read it. Repeatedly proclaiming confusion when already in possession of the explanatory material, rather than challenging that explanation, is not a credible posture.
Re:Boston Housing Price Dataset was Removed from scikit-lear... by trinsic2 on Saturday December 31, 2022 @11:34AM (#34198013)
If you say so...
Re:Boston Housing Price Dataset was Removed from scikit-lear... by threeseed on Friday December 30, 2022 @05:03PM (#34190627)
Please provide a source that says that "number of blacks in my neighbourhood" is a measure of "neighbourhood integration".

It's a ridiculous and offensive premise from my perspective.

Re:Boston Housing Price Dataset was Removed from scikit-lear... by josephcsible on Friday December 30, 2022 @05:33PM (#34190902)
> Please provide a source that says that "number of blacks in my neighbourhood" is a measure of "neighbourhood integration".

It isn't. Bk is "number of blacks in my neighbourhood" as you put it, and the whole point of using B instead of it was so that an all-black neighborhood wouldn't count as more integrated than one with a mix of races.

Re:Boston Housing Price Dataset was Removed from scikit-lear... by CoastalCoder on Friday December 30, 2022 @05:44PM (#34191006)
> Please provide a source that says that "number of blacks in my neighbourhood" is a measure of "neighbourhood integration".

I wonder if the dataset design makes more sense in the context of Boston in particular: [0].

[0] https://en.wikipedia.org/wiki/Boston_desegregation_busing_cr...

Re:Boston Housing Price Dataset was Removed from scikit-lear... by CoastalCoder on Friday December 30, 2022 @05:45PM (#34191027)
> It's a ridiculous and offensive premise from my perspective.

Can you elaborate on the problem you have with this?

(I'm just trying to not guess at your meaning.)

Re:Boston Housing Price Dataset was Removed from scikit-lear... by stevenbedrick on Friday December 30, 2022 @06:17PM (#34191300)
So, the issue is more subtle than that - if it was just a matter of including demographic data, there wouldn't be an issue. The problem is that the "B" column is _not_ measuring how integrated the neighborhood is- it is a transformed value whose calculation begins with data about integration levels, but the details of how and why that transformation is performed are super important. The calculation the original authors did to produce that column rests on a model about the relationship between a neighborhood's level of integration and its property values, and that model's assumptions are frankly racist and also factually incorrect (and were known to be incorrect at the time of its original publication back in the '70s). As a result, if one were to _use_ the "B" column in a model, one would be getting results that at best were wrong and useless, and at worst would make a model that literally encodes broken 70s-era ideas about how real estate and race interact in the US.

And the transformation itself is non-invertible, so it's not possible to recover the original values for about 7-8% of the rows in the dataset. The commit diff links to a thorough investigation of the data[1] in which the author takes a crack at linking up the ambiguous rows with the original 1970 Census data that supposedly went in to generating this dataset, and long story short, it looks like the original dataset's authors may have made some errors in their calculations on top of everything else.

1: https://medium.com/@docintangible/racist-data-destruction-11...

Re:Boston Housing Price Dataset was Removed from scikit-lear... by trinsic2 on Friday December 30, 2022 @05:00PM (#34190610)
How is doing a sanity check incendiary in your view again?
Re:Boston Housing Price Dataset was Removed from scikit-lear... by ffssffss on Friday December 30, 2022 @05:05PM (#34190650)
I think he wrote the comment in bad faith. The non-invertability is part of the problem, and he completely doesn't understand that. So at best he just wants to argue about race and has no interest in the technical material. Anyway, even if you had "ratio of blacks to whites", that still wouldn't be a very good piece of data, because it says nothing about the geographical distribution or diversity of social interactions which is what people mean when they say a neighborhood is "integrated".
Re:Boston Housing Price Dataset was Removed from scikit-lear... by jeffreyrogers on Friday December 30, 2022 @05:15PM (#34190722)
I don't see why non-invertibility matters. Lots of useful features are non-invertible.

Edit: and if you are dealing with real data sets or producing real datasets for analysis you will often have only approximations to the thing you want to measure. Determining whether your proxy variable is worth including or how to interpret your results in light of it are necessary skills to develop.

Re:Boston Housing Price Dataset was Removed from scikit-lear... by guipsp on Friday December 30, 2022 @05:44PM (#34191011)
The feature is bad. The non-invertibility means that you cannot get back the original data that was used to generate the feature, and try to salvage it.
Re:Boston Housing Price Dataset was Removed from scikit-lear... by josephcsible on Friday December 30, 2022 @05:59PM (#34191141)
Sure, that makes it less useful. But why is that so bad that the entire dataset should be discarded and not used, even for uses that don't care about that particular part of the original data?
Re:Boston Housing Price Dataset was Removed from scikit-lear... by guipsp on Friday December 30, 2022 @06:09PM (#34191210)
If you want the dataset, scikit even tells you how to get it. If you just want an example dataset, there are better ones. I mean, this seems somewhat like the Lena debacle: why insist on this particular dataset?
Re:Boston Housing Price Dataset was Removed from scikit-lear... by generalizations on Friday December 30, 2022 @05:08PM (#34190666)
> Please respond to the strongest plausible interpretation of what someone says, not a weaker one that's easier to criticize. Assume good faith.

https://news.ycombinator.com/newsguidelines.html

Re:Boston Housing Price Dataset was Removed from scikit-lear... by ffssffss on Friday December 30, 2022 @05:10PM (#34190688)
Sadly, assumptions of good faith are easily exploited by bad actors (the classic term for this is "just asking questions") but I suppose you're right, I should not have assumed malice.
Re:Boston Housing Price Dataset was Removed from scikit-lear... by generalizations on Friday December 30, 2022 @05:15PM (#34190727)
Better one one mud slinger than two, for the sake of the community. Guilty of it myself too many times. Cheers.
Re:Boston Housing Price Dataset was Removed from scikit-lear... by josephcsible on Friday December 30, 2022 @05:08PM (#34190669)
> The non-invertability is part of the problem, and he completely doesn't understand that.

I get that invertibility means that you can't fully recover the original racial percentage, e.g., that a 48/52 split and a 78/22 split will both look exactly the same, since (.48-.63)^2 and (.78-.63)^2 are equal. I don't see why that totally taints the entire dataset.

Re:Boston Housing Price Dataset was Removed from scikit-lear... by europeanguy on Friday December 30, 2022 @05:10PM (#34190684)
> I think he wrote the comment in bad faith. The non-invertability is part of the problem, and he completely doesn't understand that.

If he doesn't understand it, then it's not in bad faith. Right?

Re:Boston Housing Price Dataset was Removed from scikit-lear... by jimbob45 on Friday December 30, 2022 @05:32PM (#34190881)
Is it just me or this some horrifically bad English? I have a fairly strong math background and I'm struggling to figure out what the author meant by any of that.

As far as I can tell, it's something like, "The author made a bad variable. Also, the goal was to check air quality but the variable was bad." What does the subject being air quality impact have to do with anything there?

Re:Boston Housing Price Dataset was Removed from scikit-lear... by threeseed on Friday December 30, 2022 @04:53PM (#34190558)
No. The dataset [1] defines B as:

1000(Bk - 0.63)^2 where Bk is the proportion of blacks by town

And not sure how anyone can argue the dataset is worthy of being included. It is pretty offensive and misguided at minimum to argue that having more black people in your neighbourhood will depress housing prices. And for it to be solely because they are black and not to do with a range of other factors e.g. socio-economic.

[1] http://lib.stat.cmu.edu/datasets/boston

Re:Boston Housing Price Dataset was Removed from scikit-lear... by version_five on Friday December 30, 2022 @05:20PM (#34190765)

   It is pretty offensive and misguided at minimum to argue that having more black people in your neighbourhood will depress housing prices. 
I think that's the wrong lens to look at this through. I'm happy to concede your statement about it being offensive is true (although I think from a purely statistical perspective, correlations with poverty, etc probably make the assumption correct. Before 2015 or so when we all lost it, it would only be racist to say there was a causal relationship between race and price, not a correlation). Anyway, that's all an aside.

It's the purging of a dataset, a toy dataset in this context, for a reason of political correctness, that I don't support. If you look hard enough at anything, you can probably find a way to call it racist or some similar slur. If we start applying this lens to tools like scikit learn, we go down a path I don't agree with, that's completely performative in terms of actually addressing any wrongs, and is a continuing distraction from what could be useful work. Debating if and how racist this is is immaterial imo to whether or not we should erase everything doesn't align with modern hypersensitivity about political correctness

Re:Boston Housing Price Dataset was Removed from scikit-lear... by threeseed on Friday December 30, 2022 @05:37PM (#34190939)
> If you look hard enough at anything, you can probably find a way to call it racist or some similar slur.

Which is such an insane premise that it's hard to take the rest of your point seriously.

Re:Boston Housing Price Dataset was Removed from scikit-lear... by micromacrofoot on Friday December 30, 2022 @05:33PM (#34190906)
You're missing the fact that there are a lot of reasons the data itself is actually bad... another commenter shared a reasonable analysis: https://medium.com/@docintangible/racist-data-destruction-11...

So even if you want to ignore the fact that the data was outright used to discriminate in the past, the data itself is actually flawed in several ways...

Re:Boston Housing Price Dataset was Removed from scikit-lear... by skfingngihg on Saturday December 31, 2022 @02:24AM (#34194407)
I’m sure we can find flaws in any number of the included data sets, but we’re not excluding those, right?

Why are people singling out this one dataset?

Re:Boston Housing Price Dataset was Removed from scikit-lear... by micromacrofoot on Saturday December 31, 2022 @12:25PM (#34198521)
because this one is flawed and comes with some racist presumptions made by the people that originally correlated the data (the presumption being that black people moving into a neighborhood decreases property values... a particularly white-biased correlation without causation)
Re:Boston Housing Price Dataset was Removed from scikit-lear... by thw09j9m on Friday December 30, 2022 @05:26PM (#34190826)
> offensive and misguided

The data is the data. The data isn't suggesting that "having more black people in your neighbourhood will depress housing prices." That's your take on what a racist causal interpretation would look like.

The correlation is very real and turning a blind eye to it is worse: https://www.brookings.edu/testimonies/how-racial-disparities...

Re:Boston Housing Price Dataset was Removed from scikit-lear... by micromacrofoot on Friday December 30, 2022 @05:37PM (#34190940)
That's actually a racist causal interpretation made about the data when it was originally analyzed:

> At low to moderate levels of B, an increase in B should have a negative influence on housing value if Blacks are regarded as undesirable neighbors by Whites.

Re:Boston Housing Price Dataset was Removed from scikit-lear... by RobotToaster on Friday December 30, 2022 @05:56PM (#34191111)
Isn't that saying that lower house prices are caused by racism?
Re:Boston Housing Price Dataset was Removed from scikit-lear... by micromacrofoot on Saturday December 31, 2022 @11:11AM (#34197708)
In an incredible whitewashed way that's very familiar to anyone that lived during the Jim Crow era, yes. Note that it doesn't say that white people leave because they're intolerant of black neighbors, but paints black neighbors as undesirable.

Either way, it's a dramatic oversimplification. Black people are also significantly poorer than white people, so it's also likely that black people can only afford to move into a neighborhood as property values decrease... yet the people who collated this data chose to make a different assumption.

Re:Boston Housing Price Dataset was Removed from scikit-lear... by micromacrofoot on Friday December 30, 2022 @05:38PM (#34190952)
That's actually a racist causal interpretation made about the data when it was originally compiled and analyzed... which raises a lot of alarm bells:

> At low to moderate levels of B, an increase in B should have a negative influence on housing value if Blacks are regarded as undesirable neighbors by Whites.

Re:Boston Housing Price Dataset was Removed from scikit-lear... by kbelder on Friday December 30, 2022 @07:41PM (#34191941)
> At low to moderate levels of B, an increase in B should have a negative influence on housing value if Blacks are regarded as undesirable neighbors by Whites.

Isn't that true? It's almost a tautology.

(Bad things can be true.)

Re:Boston Housing Price Dataset was Removed from scikit-lear... by micromacrofoot on Saturday December 31, 2022 @10:57AM (#34197558)
It's significantly more complicated. This presumption (made by white people) assumes that black people are responsible for depressing housing values and ignores a myriad of other factors. It's such a narrow view of the problem that it makes me question the motivations of collating such data to begin with.

For example ignores the fact that on the whole black people are significantly poorer.

In Boston the average white family has a net worth of $200k+ while black families in the same city have a net worth of <$10 (that's not a typo, it's less than ten dollars). Poorer people by nature can not afford houses in more expensive neighborhoods, so naturally you have a concentration of black people in poorer neighborhoods... it's not because white people find black neighbors undesirable, it's that black people are disproportionately poorer.

This kind of oversimplification tends to perpetuate a lot of negative stereotypes about black people while hand-waiving away the chronic issues black people are faced with that creates this kind of disparity.

Re:Boston Housing Price Dataset was Removed from scikit-lear... by kortilla on Friday December 30, 2022 @05:13PM (#34190705)
Offensive to who? It sounds like a great way to compare racism in different areas.

The more it correlates with a lower price, the more race issues.

Re:Boston Housing Price Dataset was Removed from scikit-lear... by mateo411 on Friday December 30, 2022 @05:11PM (#34190695)
How did they arrive at .63?

It's seems like a weird choice. If there are 62% or 64% then the feature will yield the same value.

I think it would make more sense just to include percentage of households where at least one member of the household has a certain ethnicity.

I don't think it's a offensive to analyze demographic information in the aggregate. In fact this happens all the time.

Re:Boston Housing Price Dataset was Removed from scikit-lear... by josephcsible on Friday December 30, 2022 @05:25PM (#34190810)
I wonder if that was the overall proportion for the entire surrounding area at the time. If so, then B=0 would mean "this looks like what you'd expect if where people lived had nothing to do with race", and increasing values of B would be increasing evidence to the contrary.
Re:Boston Housing Price Dataset was Removed from scikit-lear... by HPsquared on Friday December 30, 2022 @05:42PM (#34190994)
It is kind of strange, I don't understand why they would use that. Here's a plot of the function:

https://www.wolframalpha.com/input?i=plot+%5B1000*%28x-0.63%...

Re:Boston Housing Price Dataset was Removed from scikit-lear... by josephcsible on Friday December 30, 2022 @04:55PM (#34190570)
Isn't that a measure of how integrated a neighborhood is? And even accepting for the sake of argument that such a variable is evil, why not just exclude it instead of ditching the whole dataset?
Re:Boston Housing Price Dataset was Removed from scikit-lear... by threeseed on Friday December 30, 2022 @04:59PM (#34190603)
a) No. If 50% of the community is African-Americans and live on one half and everyone else on the other then it would be exactly integrated. Except of course it isn't.

b) It is not scikit-learn's responsibility to alter third party datasets.

Re:Boston Housing Price Dataset was Removed from scikit-lear... by CoastalCoder on Friday December 30, 2022 @05:56PM (#34191109)
> a) No. If 50% of the community is African-Americans and live on one half and everyone else on the other then it would be exactly integrated. Except of course it isn't.

IIUC, you're arguing that "whole-town" level aggregation is misleading. So if we get more granular, we could do it my neighborhood, street, building, apartment/car/shelter, bedroom, bed, bed @ time of day, etc.

Any one of those aggregation levels could hide interesting distinctions that could be made if only the data were reported with even more granularity.

So are you arguing against aggregation in general? Or just whole-town aggregation specifically?

Re:Boston Housing Price Dataset was Removed from scikit-lear... by mdcds on Friday December 30, 2022 @05:02PM (#34190625)
data is just that, not an argument in itself. how you use it to disprove something is up to you.
Re:Boston Housing Price Dataset was Removed from scikit-lear... by guipsp on Friday December 30, 2022 @06:04PM (#34191171)
Except that this is not just data! The feature is just overall bad.
Re:Boston Housing Price Dataset was Removed from scikit-lear... by postalrat on Friday December 30, 2022 @10:14PM (#34193146)
More bad than evil?
Re:Boston Housing Price Dataset was Removed from scikit-lear... by guipsp on Saturday December 31, 2022 @07:00AM (#34195690)
Even if it wasn't evil, it's still bad is my point.
Re:Boston Housing Price Dataset was Removed from scikit-lear... by Yajirobe on Friday December 30, 2022 @05:11PM (#34190698)
Data can show a correlation. What the underlying causation is is not what the dataset aims to answer.
Re:Boston Housing Price Dataset was Removed from scikit-lear... by sidlls on Friday December 30, 2022 @06:00PM (#34191144)
But it’s a fact that—due to the very racism you’re pointing out—house prices tend to be lower the more minorities there are. That’s in part because of the racist policies of banks and the real estate industry. Ignoring it doesn’t do anyone a service. Now, whether it’s used/included responsibly in this dataset is another matter entirely.
Re:Boston Housing Price Dataset was Removed from scikit-lear... by anigbrowl on Friday December 30, 2022 @04:56PM (#34190575)
Re:Boston Housing Price Dataset was Removed from scikit-lear... by loeg on Friday December 30, 2022 @05:45PM (#34191019)
Close, but not exactly. One of its variables is how far its integration differs from 63% Black, squared.

I.e., you cannot distinguish a 73% black neighborhood from a 53% black neighborhood with this variable.

It's a bizarre variable and I guess I could see purging the column or at least suggesting it not be used, but I don't really understand why you'd delete the rest of the (sample) dataset on this basis.

Re:Boston Housing Price Dataset was Removed from scikit-lear... by josephcsible on Saturday December 31, 2022 @12:14AM (#34193811)
> Close, but not exactly. One of its variables is how far its integration differs from 63% Black, squared.

> I.e., you cannot distinguish a 73% black neighborhood from a 53% black neighborhood with this variable.

Isn't the point of that operation that a 1% black neighborhood and a 99% black neighborhood are both less integrated than a 50% black neighborhood? If you didn't do something like squaring, then wouldn't at least one of the former incorrectly register as more integrated than the latter?

> It's a bizarre variable and I guess I could see purging the column or at least suggesting it not be used, but I don't really understand why you'd delete the rest of the (sample) dataset on this basis.

Agreed.

Re:Boston Housing Price Dataset was Removed from scikit-lear... by loeg on Saturday December 31, 2022 @12:13PM (#34198423)
Yeah, I mean, I guess I'd suggest a raw Bk column to preserve the original data and maybe just absolute value of difference instead of square of difference.
Re:Boston Housing Price Dataset was Removed from scikit-lear... by mcguire on Friday December 30, 2022 @05:45PM (#34191025)
From https://fairlearn.org/main/user_guide/datasets/boston_housin...:

"Thus, any models trained using this data that do not take special care to process B will learn to use mathematically encoded racism as a factor in house price prediction."

Re:Boston Housing Price Dataset was Removed from scikit-lear... by loeg on Friday December 30, 2022 @05:52PM (#34191081)
House price prediction for prices in 1970s Boston, yes, where housing prices almost certainly reflected racist preferences. That seems like a (potentially) accurate model?

ML models could also learn that the correlation between B and price is negative (i.e., that integration improves house prices). But the critics of the dataset all suggest that B and price are positively correlated.

Re:Boston Housing Price Dataset was Removed from scikit-lear... by space_fountain on Friday December 30, 2022 @06:06PM (#34191192)
A confusion I sometimes have is where we should start pulling the string to unravel systematic racism. On some levels it can seem like if the purpose of this dataset was to analyze the impact of these variables on the prices humans (who were and are racist) are willing to pay than if B had predictive power (because people were racist), than excluding it in general seems wrong. On the other hand applying that across society is part of how we got redlining and in general a lot of the systematic part of systematic racism. Should we sort of handicap our models of human behavior to exclude race (and try to exclude proxies the model can find).

I think regardless removing this model seems right since it's A a toy, B dated, and C liable to not be seen with the care it needs to be, but say if I'm trying to calculate who will be the next famous actor, is it wrong to include variables to allow the model to pick up on how shallow and say fat phobic society is (or just plain racist again)