Code Monkey home page Code Monkey logo

hands_on's Introduction

Hands On Classifier Calibration

Binder

Table of contents

  1. Hands On
  2. Installation (optional)
  3. Available packages for calibration
  4. Additional material
  5. Collaborate

Hands On

The hands on is divided into the following sections

  1. Visualisation and evaluation tools
  2. How to train a calibrator
  3. Examples of classifiers and calibrators
    1. Binary
    2. Ternary
  4. How to compare calibrator performance

There are three options to follow the Hands On:

  1. Interactive by runing the code in your computer (following the installation steps below).
  2. Interactive in your webbrowser with Blinder by clicking the following button Binder (no installation is required).
  3. Static (pre-rendered) notebooks by clicking in each of the prevous sections (if it fails, try reloading).

Installation (optional)

The Hands On can be run directly in your webbrowser with no installation (go to section Hands On). However, if you want to run the Hands On code in your own machine follow the next steps.

The following instructions has been tested in a Linux machine with Ubuntu 18.04 and Python 3.6. If you know how to install in other Operating systems feel free to add the information in a pull request. It is possible that the code does not work on Windows (the Dirichlet calibration library uses Jax which does not support natively Windows).

Clone this repository

git clone --recurse-submodules https://github.com/classifier-calibration/hands_on.git
cd hands_on
git submodule update

This code is working with Python3.6.

# Use the module venv to create a virtual environment in a folder called venv
python3.6 -m venv venv
# Activate the virtual environment
source venv/bin/activate
# Upgrade package installer for Python
pip install --upgrade pip
# Install all the required dependencies indicated in the requirements.txt file
pip install -r binder/requirements.txt
pip install -e lib/PyCalib
pip install -e lib/dirichlet_python
# Create a kernel with the current virtual environment
python -m ipykernel install --user --name ClaCal --display-name "ClaCal handson"

Then you can start a Jupyter Notebook, and load the created kernel to run the Hands On.

jupyter notebook

Available packages for calibration

Additional material

Collaborate

The previous code, examples, list of libraries, and additional material does not cover everything available online. If you know anything missing in any section feel free to open an issue including your suggestion, or make a pull request with the corresponding changes.

hands_on's People

Contributors

perellonieto avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.