Chicago / food-inspections-evaluation

This repository contains the code to generate predictions of critical violations at food establishments in Chicago. It also contains the results of an evaluation of the effectiveness of those predictions.
http://chicago.github.io/food-inspections-evaluation/
Other
411 stars 130 forks source link

In `GenerateOtherLicenseInfo` guard against case with too few categories #103

Closed geneorama closed 6 years ago

geneorama commented 6 years ago

We never had a problem in the evaluation with this function, because in our data there was always more than "max_cat" categories, but if you're working over a smaller subset of data and you try to take more categories than are available, you get an error.

We have a fix in the model code, and I'm porting that fix into the evaluation code.

geneorama commented 6 years ago

I forgot the "#" in 304a0be, so manually creating link to commit message now.