I get the error:
AttributeError: module 'statsmodels.tsa.api' has no attribute 'DynamicFactorMQ'
model = sm.tsa.DynamicFactorMQ(
endog_m, endog_quarterly=endog_q,
factors=factors, factor_orders=factor_orders,
factor_multiplicities=factor_multiplicities)
This error is most likely coming up because you have an older version of Statsmodels installed. DynamicFactorMQ was introduced in version 0.12, so you should make sure that you're using a new enough version. You can check using:
import statsmodels.api as sm
print(sm.__version__)
Related
first time using hugging face transformers library and it's not getting through the import statement.
Running on Conda virtual environment Python 3.6
I also tried this below with the huggingface_hub library, and the error message is the same.
from huggingface_hub import HfApi
hf_api = HfApi()
models = hf_api.list_models()
I also faced a similar issue on my Python 3.6 environment. Installing hugging face on an environment with greater Python version was solved the issue.
Is there a way to install an older version of statsmodels? Such as using pip install statsmodels x.xx? I cant find any documentation on their website about this. Thanks
I've tried using the current version but encounter errors when running the code. if i use import statsmodels.tsa.arima_model.ARMA i get the following error
statsmodels.tsa.arima_model.ARMA and statsmodels.tsa.arima_model.ARIMA have been removed in favor of statsmodels.tsa.arima.model.ARIMA
When i replace arima_model with arima.model other lines of code will not work such as
` 2 # Build Model
3 model = ARIMA(train_data, order=(1,1,0))
----> 4 fitted = model.fit(disp=-1)
5 print(fitted.summary())
TypeError: fit() got an unexpected keyword argument 'disp'`
I'd like to revert the version of statsmodels so i can get the program to run
I have used pip install rdkit-pypi to install rdkit library. But when I type import rdkit as rd, it shows the error
ImportError: DLL load failed while importing rdBase: The specified module was not found.
I am using Anaconda as a base. What should I do to work with rdkit library?
I previously encountered this problem. After some reading, I came to know that the python version above 3.8.0 would not be compatible with rdkit. Even you need to change your base to rdkit.
I solve this by first downgrading the anaconda version with the python version lower than 3.8.0.
then I set my rdkit environment.
In this image u can see my python version and I'm not getting any error
In second image u can see my base to my-rdkit-envs
When using Hugginface Transformers on GLUE task, I've got the error AttributeError: 'MrpcProcessor' object has no attribute 'tfds_map'
I suspect a problem of compatibility.
My solution was to simply to downgrade the version of transformers to 2.2.0
pip uninstall transformers -y
pip install transformers==2.2.0
Right now I am using transformers 2.11.0 and this code works for me:
# First we create an empty Byte-Pair Encoding model (i.e. not trained model)
tokenizer = Tokenizer(BPE())
tokenizer.normalizer = Sequence([
NFKC(),
Lowercase()
])
So there seems to be a constructor which you can use.
My Caffe was running fine but then I installed Keras which gave the following error:
'module' object has no attribute 'MutableMapping'
According to some advice, I updated Protobuf following these instructions of building from sources.
https://github.com/protocolbuffers/protobuf/blob/master/src/README.md
And the result now is that neither Keras nor Caffe is running and I get the same error:
File "/home/myuser/anaconda2/lib/python2.7/site-packages/google/protobuf/descriptor.py", line 50, in <module>
from google.protobuf.pyext import _message
AttributeError: 'module' object has no attribute 'MutableMapping'
Of all the things, I would perhaps first try to uninstall the new version of Protobuf but how should I do it to go back to the previous state? And secondly, how to install the Protobuf so that Keras can also run?
The issue seemed to be having two protobuf installations at the same time.