Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initiate a ZScore transform directly from a OnePassMeanVarStd checkpoint file #241

Open
sjfleming opened this issue Sep 24, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@sjfleming
Copy link
Contributor

Instead of this, which is error prone

    - class_path: cellarium.ml.transforms.ZScore
      init_args:
        mean_g:
          !CheckpointLoader
          file_path: /home/jupyter/trained_models/onepass/lightning_logs/version_0/checkpoints/epoch=0-step=249.ckpt
          attr: model.mean_g
          convert_fn: null
        std_g:
          !CheckpointLoader
          file_path: /home/jupyter/trained_models/onepass/lightning_logs/version_0/checkpoints/epoch=0-step=249.ckpt
          attr: model.std_g
          convert_fn: null
        var_names_g:
          !CheckpointLoader
          file_path: /home/jupyter/trained_models/onepass/lightning_logs/version_0/checkpoints/epoch=0-step=249.ckpt
          attr: model.var_names_g
          convert_fn: null

allow this kind of thing

    - class_path: cellarium.ml.transforms.ZScore
      init_args:
        onepass_mean_var_std_ckpt:
          !CheckpointLoader
          file_path: /home/jupyter/trained_models/onepass/lightning_logs/version_0/checkpoints/epoch=0-step=249.ckpt
@sjfleming sjfleming added the enhancement New feature or request label Sep 24, 2024
@sjfleming
Copy link
Contributor Author

See if there are other opportunities to do this kind of thing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant