Probleme mit dem Importieren des Moduls pmdarimaPython

Python-Programme
Anonymous
 Probleme mit dem Importieren des Moduls pmdarima

Post by Anonymous »

Ich versuche, das Modul "PMDarima" zu verwenden, aber ich kann dies nicht tun. Ich habe sogar angefangen, ältere Versionen von Python zu verwenden, aber dann erhalte ich einen neuen Fehler, der dies sagt: ValueError: Numph.dype Größe geändert, kann auf eine binäre Inkompatibilität hinweisen. Erwartet 96 aus C -Header, erhalten 88 von PyObject < /p>
Hier ist ein Ausschnitt meines Codes: < /p>

Code: Select all

import pandas as pd
import numpy as np
from pmdarima.model_selection import train_test_split
import matplotlib.pyplot as plt
import warnings
import pmdarima as pm
I tried using a different module called from statsmodals called statsmodels.sandbox.tsa.try_arma_more, and I get this error now: AttributeError: 'numpy.ndarray' object has no attribute 'auto_arima'
For this line of code:

Code: Select all

sarima_model = pm.auto_arima(train_data,
start_p=1, start_q=1,
test='adf',       # use adftest to find optimal 'd'
max_p=3, max_q=3, # maximum p and q
m=24,             # 24 is the seasonal period for daily patterns in hourly data
d=None,           # let the test determine 'd'
seasonal=True,    # enforce seasonality
start_P=0,
D=1,              # force seasonal differencing
trace=True,
error_action='ignore',
suppress_warnings=True,

stepwise=True)

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post