Skip to main content

Deep learning for ordinal classification

Project description

Deep learning utilities library

dlordinal is an open-source Python toolkit focused on deep learning with ordinal methodologies.

Overview
CI/CD !codecov !docs !python
Code ![pypi] ![binder] !black Linter: Ruff

Table of Contents

⚙️ Installation

dlordinal v2.1.1 is the last version supported by Python 3.8, Python 3.9 and Python 3.10.

The easiest way to install dlordinal is via pip:

pip install dlordinal

📖 Documentation

Sphinx is a documentation generator tool that is commonly used in the Python ecosystem. It allows developers to write documentation in a markup language called reStructuredText (reST) and generates HTML, PDF, and other formats from it. Sphinx provides a powerful and flexible way to document code, making it easier for developers to create comprehensive and user-friendly documentation for their projects.

To document dlordinal, it is necessary to install all documentation dependencies:

pip install -e '.[docs]'

Then access the docs/ directory:

docs/
↳ api.rst
↳ conf.py
↳ distributions.rst
↳ references.bib
↳ ...

If a new module is created in the software project, the api.rst file must be modified to include the name of the new module:

.. _api:

=============
API Reference
=============

This is the API for the **dlordinal** package.

.. toctree::
   :maxdepth: 2
   :caption: Contents:

   losses
   datasets
   distributions
   layers
   metrics
   sklearn_integration
   ***NEW_MODULE***

Afterwards, a new file in .rst format associated to the new module must be created, specifying the automatic inclusion of documentation from the module files containing a docstring, and the inclusion of the bibliography if it exists within any of them.

docs/
↳ api.rst
↳ conf.py
↳ distributions.rst
↳ new_module.rst
↳ references.bib
↳ ...
.. _new_module:

New Module
==========

.. automodule:: dlordinal.new_module
    :members:

.. footbibliography::

Finally, if any new bibliographic citations have been added, they should be included in the references.bib file.

Collaborating

Code contributions to the dlordinal project are welcomed via pull requests. Please, contact the maintainers (maybe opening an issue) before doing any work to make sure that your contributions align with the project.

Guidelines for code contributions

  • You can clone the repository and then install the library from the local repository folder:
git clone git@github.com:ayrna/dlordinal.git
pip install ./dlordinal
  • In order to set up the environment for development, install the project in editable mode and include the optional dev requirements:
pip install -e '.[dev]'
  • Install the pre-commit hooks before starting to make any modifications:
pre-commit install
  • Write code that is compatible with all supported versions of Python listed in the pyproject.toml file.
  • Create tests that cover the common cases and the corner cases of the code.
  • Preserve backwards-compatibility whenever possible, and make clear if something must change.
  • Document any portions of the code that might be less clear to others, especially to new developers.
  • Write API documentation as docstrings.

Project details


Download files

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

Source Distribution

dlordinal-2.1.1.tar.gz (32.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dlordinal-2.1.1-py3-none-any.whl (47.8 kB view details)

Uploaded Python 3

File details

Details for the file dlordinal-2.1.1.tar.gz.

File metadata

  • Download URL: dlordinal-2.1.1.tar.gz
  • Upload date:
  • Size: 32.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.19

File hashes

Hashes for dlordinal-2.1.1.tar.gz
Algorithm Hash digest
SHA256 24a04c9c03c988fb493cec786e1cecf21a35e3b793fd11db52464a7b07f6e1a4
MD5 f70c6fc8eddbc92bfc581cb035a307a9
BLAKE2b-256 29c336743f9d7a0e0057fd8d90137547e1a0291466a288a938a88d99872c5dfc

See more details on using hashes here.

File details

Details for the file dlordinal-2.1.1-py3-none-any.whl.

File metadata

  • Download URL: dlordinal-2.1.1-py3-none-any.whl
  • Upload date:
  • Size: 47.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.19

File hashes

Hashes for dlordinal-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 993569fabed722a33078a0e5ffc72e9ec8ecf965665d5aaa7c792be62d27216b
MD5 21769d6c66a9997698f5c8d7d1b4bf65
BLAKE2b-256 6a26c2c9b85805c59b71567507476b107f6335073b8f7a397326bef5ad02fefa

See more details on using hashes here.

Supported by

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