danielnyga / pracmln

Markov Logic Networks in Python
http://www.pracmln.org
BSD 2-Clause "Simplified" License
134 stars 46 forks source link

no tools found after installation #32

Open bhomass opened 4 years ago

bhomass commented 4 years ago

I went thru the git clone and python setup.py install steps. no errors, but there is no apps subdirectory, and mlnquery and mlnlearn are not found any where.

How to get those built or downloaded?

bhomass commented 4 years ago

since I don't see the tools, I did python mlnlearn.py like it said in issue 24, but I get File "/home/bruce/anaconda3/envs/pracmln/lib/python3.6/site-packages/pracmln/mln/learning/bpll.py", line 41, in from ..util import fsum, temporary_evidence ImportError: cannot import name 'fsum'

This I don't know how to work around. it's in the bpll.py code. There is a try exception section importing either mpmath or math. what can be wrong there?

tariqutb commented 3 years ago

you can go to pracmln --> mln --> util.py then change line 42 "USE_MPMATH = True" to "USE_MPMATH = False"

Note: I have downloaded the whole project and import everything manually Environment: Python: 3.6.9 OS: Windows 10 With anaconda

@Ab-Abdurrahman