Skip to content

cli for linear classifier#355

Merged
edyoshikun merged 12 commits intomainfrom
linear_classifiers
Feb 11, 2026
Merged

cli for linear classifier#355
edyoshikun merged 12 commits intomainfrom
linear_classifiers

Conversation

@edyoshikun
Copy link
Copy Markdown
Member

@edyoshikun edyoshikun commented Jan 28, 2026

Probably best to checkout the README.md on how to use this.

  • Add viscy-dynaclr CLI entry point with two new commands for linear classifier workflows:
    • train-linear-classifier — train a logistic regression classifier on DynaCLR cell embeddings with W&B tracking
    • apply-linear-classifier — apply a trained classifier to new embeddings and save predictions
  • Add core implementation for LinearClassifierPipeline (classifier + optional StandardScaler/PCA) with full W&B artifact management
  • Add Pydantic-based configuration with validation for both training and inference configs
  • Add example YAML configs and documentation (annotations schema, naming conventions, README)

@edyoshikun edyoshikun marked this pull request as ready for review February 10, 2026 23:04
edyoshikun and others added 2 commits February 11, 2026 09:43
…ectory

Reorganize evaluation directory to support multiple evaluation methods.
Update CLI import paths in cli_dynaclr.py accordingly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Soorya19Pradeep
Copy link
Copy Markdown
Contributor

@edyoshikun, I tried out the cli. I think I have followed the instructions for setting up my wandb settings, including pip installations and logging in using API key and setting base url to https://czi.wandb.io. The training seems to be working, but it is not getting stored. I am getting the following error at the end:

============================================================
SAVING MODEL AND LOGGING TO WANDB

wandb: Loading settings from /home/soorya.pradeep/.config/wandb/settings
wandb: [wandb.login()] Loaded credentials for https://czi.wandb.io from /home/soorya.pradeep/.netrc.
wandb: W&B API key is configured. Use wandb login --relogin to force relogin

❌ Training failed: Error uploading run: returned error 401: {"data":{"upsertBucket":null},"errors":[{"message":"user is not logged in","path":["upsertBucket"],"extensions":{"code":"PERMISSION_ERROR"}}]}
Aborted!
Do you have any suggestions? Thanks!

@Soorya19Pradeep
Copy link
Copy Markdown
Contributor

The permission issue is resolved now. Thank you!
The trained classifier is now stored in my personal profile. Do you know which setting I need to change to get them to store in the computational imaging profile?

@edyoshikun edyoshikun merged commit a99d5f1 into main Feb 11, 2026
4 checks passed
@edyoshikun edyoshikun deleted the linear_classifiers branch February 11, 2026 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants