Skip to content

Commit

Permalink
Update docs/python-tutorial.md
Browse files Browse the repository at this point in the history
Co-authored-by: Hilmar Lapp <[email protected]>
  • Loading branch information
johnbradley and hlapp authored Jan 4, 2025
1 parent 1ced84a commit 4fa8b51
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/python-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ small 7.165559509303421e-05
### Fine-tune with SVM
[FineTuneSVM.ipynb](https://github.com/Imageomics/pybioclip/blob/main/examples/FineTuneSVM.ipynb) Fine-tunes BioCLIP by combining an [SVM](https://scikit-learn.org/stable/modules/generated/sklearn.svm.SVC.html#sklearn.svm.SVC) with BioCLIP image embeddings. <a target="_blank" href="https://colab.research.google.com/github/Imageomics/pybioclip/blob/main/examples/FineTuneSVM.ipynb">
<img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>
This work is based on code from [biobench](https://github.com/samuelstevens/biobench).
As can be seen from comparing the confusion matrices, fine-tuning an SVM classifier on BioCLIP image embeddings may yield better results than using BioCLIP in "zero-shot mode", i.e., predicting on a list of custom labels.

This work is based on code from [biobench](https://github.com/samuelstevens/biobench).

## PIL Images
The predict() functions used in all the examples above allow passing a list of paths or a list of [PIL Images](https://pillow.readthedocs.io/en/stable/reference/Image.html).
Expand Down

0 comments on commit 4fa8b51

Please sign in to comment.