Skip to main content

TF.Keras implementation of CORAL ordinal classification output layer

Project description

CORAL ordinal classification in tf.keras

Tensorflow Keras implementation of ordinal classification using CORAL by Cao et al. (2019), with thanks to Sebastian Raschka for the help in porting from PyTorch. This package includes an ordinal output layer and an associated loss function.

This is a work in progress, so please post any issues to the issue queue.

Source repository for the original PyTorch implementation. Docs and tests will eventually be added.

Installation

Install the stable version via pip:

pip install coral_ordinal

Install the most recent code on GitHub via pip:

pip install git+https://github.com/ck37/coral-ordinal/

Dependencies

This package relies on Python 3.6+, Tensorflow 2, numpy, pandas, and scipy.

Example

See this colab notebook for an example of using an ordinal output layer with MNIST.

References

Cao, W., Mirjalili, V., & Raschka, S. (2019). Consistent rank logits for ordinal regression with convolutional neural networks. arXiv preprint arXiv:1901.07884, 6.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

coral_ordinal-0.1.1-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page