Skip to content

UCM-GAIA/CBR-LIME

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published