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.
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.
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.