Git Product home page Git Product logo

Comments (8)

martinkim0 avatar martinkim0 commented on August 18, 2024

Hi, sorry you're experiencing this issue. Could you paste the search space you are trying out?

from scvi-tools.

mousepixels avatar mousepixels commented on August 18, 2024

I also tried the default with just:

tuner.fit(adata, metric="validation_loss")

param_space = {
'n_hidden': {
'distribution': 'choice',
'choices': [64, 128, 256, 512],
},
'n_latent': {
'distribution': 'choice',
'choices': [5, 10, 20, 30],
},
'n_layers': {
'distribution': 'choice',
'choices': [1, 2, 3],
},
'dropout_rate': {
'distribution': 'uniform',
'low': 0.0,
'high': 0.5,
},
'gene_likelihood': {
'distribution': 'choice',
'choices': ['zinb', 'nb'],
}
}

from scvi-tools.

mousepixels avatar mousepixels commented on August 18, 2024

I am also a little confused because in the model.history there is no validation loss even after successful training. Only reconstruction_loss_train.

(only shows up when early_stopping = True)

from scvi-tools.

mousepixels avatar mousepixels commented on August 18, 2024

I checked earlier versions of scvi-tools:
1.0.4 did not work
0.20.3 does work

from scvi-tools.

martinkim0 avatar martinkim0 commented on August 18, 2024

It's possible that this is due to a new release of Ray. Could you pass in param_space formatted using the tune search API:

from ray import tune 

param_space = {
  'n_hidden': tune.choice([64, 128, 256, 512]),
  'n_latent': tune.choice([5, 10, 20, 30]),
  'n_layers': tune.choice([1, 2, 3]),
  ... # other params
}

from scvi-tools.

martinkim0 avatar martinkim0 commented on August 18, 2024

Regarding validation loss, our default is set to not run validation steps. This can be enabled with passing in check_val_every_n_epoch=1 to the train method.

from scvi-tools.

mousepixels avatar mousepixels commented on August 18, 2024

Ok, great. That fixed it. I was a little confused because the default search_space was returning the same error. Thanks!

from scvi-tools.

martinkim0 avatar martinkim0 commented on August 18, 2024

Yeah we format the default search space a little differently because of the way we parse it internally. That might have been a bit confusing, sorry.

from scvi-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.