0

I am trying to use pgmpy and have used:

! pip install pgmpy --user --upgrade pip

I then get the error message

"TypeError: 'module' object is not callable".

I then run the command:

from pgmpy.factors import TabularCPD

and get a further error message:

"No module named 'torch'"

Is there a good way to start to work with conditional probability models using Jupyter notebooks?

vs97
  • 5,765
  • 3
  • 28
  • 41
Andrew3193
  • 11
  • 1
  • 2

2 Answers2

1

You can try this, it worked for me:

conda install -c ankurankan pgmpy
SHR
  • 7,940
  • 9
  • 38
  • 57
0

Try this installation as pgpy requires pytorch to be installed

pip install pgmpy
pip install torch
ArunJose
  • 1,999
  • 1
  • 10
  • 33