An API for streamlining unsupervised ML ops such as visualizations, clustering, CNN insights, etc.
Project description
OpticalToolkit
A collection of deep learning -- computer vision utility functions
Installation
pip install optical_toolkit
Visualize
- Visualize a dataset in a grid
- Visualize the 2d and 3d embeddings of images
from sklearn.datasets import load_digits
from optical_toolkit.embeddings import get_embeddings
X, y = load_digits()
2d_embeddings, fig_2d = get_embeddings(X, y, dims=2, embedding_type="tsne", return_plot=True)
3d_embeddings, fig_3d = get_embeddings(X, y, dims=3, embedding_type="tsne", return_plot=True)
Insight
- Visualize the filters of a (trained) CNN model
from optical_toolkit.cnn_filters import display_filters, display_model_filters
model_name = "xception"
layer_names = [
"block2_sepconv1",
"block5_sepconv1",
"block9_sepconv1",
"block14_sepconv1",
]
for layer_name in layer_names:
display_filters(
model=model_name,
layer_name=layer_name,
)
display_model_filters(model=model_name)
Analyze
- Analyze 'highly confident' errors in classification tasks
- Confusion matrix normalized by row/column
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
optical_toolkit-0.7.1.tar.gz
(10.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file optical_toolkit-0.7.1.tar.gz.
File metadata
- Download URL: optical_toolkit-0.7.1.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.10.16 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5d3ce96958855cb250d26be56fec8a5bc3358334c4990e8cf7a16edf82c6e25
|
|
| MD5 |
f5f9ad0a04eac72410d1b3d9b3154d68
|
|
| BLAKE2b-256 |
80e22b5d1c4b9ad3741cc07ff96f19afcb6ec08096bca1fb6e8d2bb9153ea8a1
|
File details
Details for the file optical_toolkit-0.7.1-py3-none-any.whl.
File metadata
- Download URL: optical_toolkit-0.7.1-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.10.16 Linux/6.8.0-1021-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56f4f34613894a84317e4d0fd8669470ada4e93392b476cf57223795b6fee63d
|
|
| MD5 |
497ebe30de8fcf78461d4743064a61a3
|
|
| BLAKE2b-256 |
44ce3300e992758f42b6c561eba3aa9b2dc09cd07406ade47295117fba7d047d
|