# mrVI hyperparameter tunning

**URL:** <https://discourse.scverse.org/t/mrvi-hyperparameter-tunning/1833>\
**Category:** scvi-tools\
**Created:** [October 24, 2023, 10:05am UTC](https://discourse.scverse.org/t/mrvi-hyperparameter-tunning/1833 "2023-10-24T10:05:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shani.bmo](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@shani.bmo](https://discourse.scverse.org/u/shani.bmo)\
**Post date:** [October 24, 2023, 10:05am UTC](https://discourse.scverse.org/t/mrvi-hyperparameter-tunning/1833/1 "2023-10-24T10:05:02Z")

</div>

Hi all,  
We get great results from mrVI and we want to further make sure we use it t optimally.  
We would like to do a quick HPO on mrVI and would love to get your experienced input on which parameters to focus? When running HPO on scVI, we focused on N\_latent, N\_hidden and learning rate. Are there additional parameters you advise to scan for mrVI? thanks!!

---

<div class="post-metadata">

**Author:** ![Justin\_Hong](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/justin_hong/32/85_2.png) [@Justin\_Hong](https://discourse.scverse.org/u/Justin_Hong)\
**Post date:** [October 24, 2023, 6:08pm UTC](https://discourse.scverse.org/t/mrvi-hyperparameter-tunning/1833/2 "2023-10-24T18:08:01Z")

</div>

Hi @shani.bmo ! Thanks for your interest in using MrVI. It’s really exciting that you are seeing good results from it. We have an upcoming reimplementation of MrVI with significant modifications, which I will recommend to use once it comes out. But in the meantime I would recommend focusing on the n\_latent, epochs/learning rate, kl annealing (n\_epochs\_kl\_warmup), hvg selection (be careful what metric you use for this), choice of sample / batch covariates.

---

<div class="post-metadata">

**Author:** ![shani.bmo](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@shani.bmo](https://discourse.scverse.org/u/shani.bmo)\
**Post date:** [October 25, 2023, 3:16pm UTC](https://discourse.scverse.org/t/mrvi-hyperparameter-tunning/1833/3 "2023-10-25T15:16:13Z")

</div>

@Justin_Hong thank you for your fast response and for your work 🙂 looking forward for the new version.

---

<div class="post-metadata">

**Author:** ![Justin\_Hong](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.scverse.org/justin_hong/32/85_2.png) [@Justin\_Hong](https://discourse.scverse.org/u/Justin_Hong)\
**Post date:** [June 3, 2024, 7:40pm UTC](https://discourse.scverse.org/t/mrvi-hyperparameter-tunning/1833/4 "2024-06-03T19:40:45Z")

</div>

Hi @shani.bmo just to update here in case you missed it, we the new manuscript is up on biorxiv along with an updated version in scvi-tools. You can see all the details in the tweetorial: [x.com](https://x.com/justjhong/status/1790017250272972913)
