Skip to main content

canica

canica is an interactive tool to visualize embeddings. Its main current goal is to explore text datasets, representing the input embeddings in a 2D tSNE plot.

canica gif

How to install

Just

pip install canica

And start using the CanicaTSNE and CanicaUMAP class in your notebooks.

How to use

canica is designed to work mainly as a data exploration tool embedded as a widget inside of a jupyter notebook. These are the instructions to explore a dataset in a notebook (the tutorial notebook provides more information).

In a notebook, load a pandas DataFrame and make sure that at least one column contains the embeddings you want to plot. In a cell, run:

from canica.widget import CanicaTSNE
CanicaTSNE(df, embedding_col="embedding_col", text_col="text_col", hue_col="some_score")

Where df is the pandas DataFrame, "embedding_col" is a column in df containing embeddings and hue_var is another column that will be represented using colours (currently it has to be a numerical column with values between 0 and 1). You can also use CanicaUMAP instead of CanicaTSNE to use UMAP.

This will show the canica embedding explorer and will enable interactive exploration of your dataset. Have a look at the tutorial notebook to see it working.

How to contribute

We welcome contributions of all kinds. For more information on how to do it, we refer you to the CONTRIBUTING.md file.

Release files for canica 0.0.19

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for canica 0.0.19
File Size Uploaded
canica-0.0.19.tar.gz 2.0 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for canica 0.0.19
File Interpreter ABI Platform
canica-0.0.19-py3-none-any.whl Python 3 none any Details

Total release size: 2.3 MB

Release files / canica-0.0.19.tar.gz

Download URL canica-0.0.19.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
0e7a1a669b86d444252a20753c5ed46491344c6b9676a555e63324c9a1536152
BLAKE2b-256 checksum
How to use checksums
7fb21ab75ca75e03c451d9e309b15d66d7989717faefd4c89a4ec4c4624982b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.25.0

Release files / canica-0.0.19-py3-none-any.whl

Download URL canica-0.0.19-py3-none-any.whl
Size 308.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff9a0455cf5f5af5a400889391255733e4feb00dfb7a0dd72bce75f8a0794759
BLAKE2b-256 checksum
How to use checksums
8409bfd3b98287106ab13a366bc218b309b9032308fefb422bfd541d9138d75c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.25.0

Release history Release notifications | RSS feed

This release

0.0.19 This release

2 release files

0.0.13

3 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page