Skip to content

Ideal hyperparams scArches #1

Description

@epaaso
  • Epochs, ELBO, batch size can be hyptertuned with https://docs.scvi-tools.org/en/stable/tutorials/notebooks/tuning/autotune_scvi.html
    • Algo que no esta ahi es la idea de hacer una ensemble...
  • Ideal number of epochs
    • Log the variance of loss depending on the number of genes, cells and avg variance
  • Elbow training?
    • This refers to the ELBO which is specific to VAE's and is the lwer bound for the posterior porbability, we can use thsi metric to see if our model is faring well. More on ELBO below
  • Batch size
    • The batch size can be as big as the GPU Ram allows it to be but one may lose some generalization. This happens, 256 has more accuracy.
  • Num workers
    • It is fine to use as many workers as you have cpus available, but this will raise the used memory a lot.
    • Also we don't really know how to change the num_workers. When using scvi directly it can be done directly with scvi.settings.num_workers_dn, But we didn't see this work. Maybe it has to do with the order of loading, We still have to figure it out.
    • This is an example of how to do it:
from threadpoolctl import threadpool_limits
with threadpool_limits(limits=30, user_api='blas'):
# Creating very large arrays
    arr1 = np.random.rand(10000, 10000)
    arr2 = np.random.rand(10000, 10000)
    
    # Performing lots of math that should utilize multiple cores
    result = np.dot(np.linalg.inv(arr1), arr2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status
    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions