Syntax error while running scvi.model.AUTOZI(pbmc)

Hi there,

I am trying to follow the tutorial for zero inflation gene identification (AUTOZI):

Installation went smoothly. However while executing the following I got the error:

vae = scvi.model.AUTOZI(pbmc)
vae.train(max_epochs=200, plan_kwargs = {‘lr’:1e-2})
Traceback (most recent call last):
File “”, line 1, in
File “/home/qwang178/.local/lib/python3.6/site-packages/scvi/core/models/”, line 64, in train
File “/home/qwang178/.local/lib/python3.6/site-packages/scvi/core/trainers/”, line 89, in init
super().init(model, adata, **kwargs)
TypeError: init() got an unexpected keyword argument ‘max_epochs’

I understand it should be some other modules/packages dependency issue. Could you please help me pinpoint where the problem is and the possible fix?


What version of scvi-tools do you have?

import scvi

Hi there,

Here is what is seen on the system:

$ python
Python 3.6.8 |Anaconda custom (64-bit)| (default, Dec 30 2018, 01:22:34)

[GCC 7.3.0] on linux

Type “help”, “copyright”, “credits” or “license” for more information.

import scvi



This should be a version issue. You should upgrade scvi-tools (exact command depends on how you installed it). The correct version is 0.12.1