Coder Social home page Coder Social logo

cbr-lime's Introduction

CBR-LIME

License

CBR-Lime is a Lime configuration recommender, which uses human perception to acquire knowledge of what is an explanation of good quality.

Installation

To install the required libraries with pip

pip install -r requirements

Flow

All the elements must be executed in order

00_image_resize

(Optional) Script to resize the image dataset to the required dimensions.

01_filter_images

Filter and select the top image predictions.

For each image in the input folder recived obtain the top classification value, select the most accurate and copy it to the output folder.

02_calc_similitude

Calculate the similitude between images in the dataset.

Calculate the similitude comparing the neural net classification and generate two csv files one with all the dataset images and other with the top 3 related images for each one.

03_calc_explications

Calculate the perturbed image dataset for the experiment.

Calculate the perturbed image dataset to use in the experiemnt, generates nine perturbed images for each one in the original image dataset.

04_adquire_information

Application for adquire the users explication preferences.

Shows a windows with nine options, the user must choose based on her best human perception explication.

05_compute_acquired_information

Process the results of the experiment.

Process the results generated in the LimeExperiment, generates a csv file with the information and returns the file path.

06_compare_neighborhood

Generates the similarty comparation.

Generate the similarity matrix between images and similar neighborhood.

07_check_hypothesis

Application for choose the best Lime configuration between the default configuration and the process configuration.

08_process_experiment_data

Process the results of the experiments.

Process the results generated in the check hypothesis experiment and generates a csv file with the information and returns the file path.

Applications

Additionally two applications have been created to complement the software:

CBR-cycle

This application implement the full CBR cycle. Shows the original image, its associated perturbation and the result explication, the configuration can be revised and modified by the user.

Similitude-reviewer

Shows the three more similar images for each one in the dataset, the similarity value and the classification information.

cbr-lime's People

Contributors

victordpc avatar jareciog 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.