cvjena / ITAL

Information-Theoretic Active Learning
MIT License
14 stars 3 forks source link

RuntimeError: Don't know how to plot this dataset. #3

Open omid-ghozatlou opened 3 years ago

omid-ghozatlou commented 3 years ago

Hello

First of all, thank you for letting it be open source and the respiratory has a very interesting idea. I got this error when I want to plot batches after the learning round and also I have a question: How we can use this using real user feedback not simulate relevance feedback?

Thanks in advance

Callidior commented 3 years ago

Hello,

thanks for your interest in this project.

Our visualization utility function supports two types of datasets: Image datasets, which have an imgs_train attribute providing a list of all training images or their filenames, or datasets with 2-dimensional data. Your dataset seems to be none of these, so the function does not know how to plot it. Could you elaborate your use case further?

To integrate user feedback, one would call the ITAL.update method with the obtained feedback and then call ITAL.fetch_unlabelled to obtain a new batch of images to be annotated. During the entire process, you can also obtain the currently most relevant results using ITAL.top_results. It's probably useful to show both to the user. This way, the user can see the most relevant images at any stage of the process and decide when to stop and also improve the results further by annotating the provided active learning batch.