wwrechard / pydlm

A python library for Bayesian time series modeling
BSD 3-Clause "New" or "Revised" License
475 stars 98 forks source link

Cannot use setLoggingLevel #70

Closed alencn1024 closed 3 weeks ago

alencn1024 commented 1 month ago

when I try to use setLoggingLevel to reduce unnecessary output info, there is an error

alencn1024 commented 1 month ago

AttributeError Traceback (most recent call last) /tmp/ipykernel_617/3387016881.py in 8 # Build a simple dlm 9 simple_dlm = dlm(time_series) + linear_trend + seasonal52 ---> 10 simple_dlm.setLoggingLevel('WARNING') 11 simple_dlm.fit()

AttributeError: 'dlm' object has no attribute 'setLoggingLevel'

alencn1024 commented 1 month ago

image I run the example showing in the readme file

wwrechard commented 4 weeks ago

Hi @alencn1024 I think you were using the pip installed package instead of the Github version, that's why the setLoggingLevel was not available. I've just released the Github version on PyPI (0.1.1.13). If you update your package to the latest version, you shall be able to run the command with no problem.

alencn1024 commented 3 weeks ago

@wwrechard Cool! it works now, thx very much!