Does anyone have any recommendations for datasets with an ordinal target?

I'm currently using a rounded target from the Boston dataset.

from sklearn import  datasets
boston = datasets.load_boston()
X, y = boston.data, boston.target

y -= y.min()
y_ord = np.round(y)

Not sure what you are after, but Kaggle has many datasets you can use. You can use this search to get started:


another source:


| improve this answer | |
  • 1
    $\begingroup$ Thanks! This will help greatly... Kaggle datasets usually have correlated features buried under high dimensional categorical/interaction features. It makes it a bit more difficult to test new models. But the other website seems perfect. $\endgroup$ – FreedomToWin Jun 20 at 4:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.