ARIMA无法连接“ str”和“ list”对象

时间:2019-04-02 07:48:02

标签: python

使用时间数据集和ARIMA进行预测,但始终会出现错误

  

'无法连接'str'和'list'对象'

数据集类型如下:

diff --git a/src/soplex/slufactor.cpp b/src/soplex/slufactor.cpp
index ae41604..a3314d8 100644
--- a/src/soplex/slufactor.cpp
+++ b/src/soplex/slufactor.cpp
@@ -1230,8 +1230,6 @@ SLUFactor::SLUFactor(const SLUFactor& old)
    l.rperm     = 0;

    solveCount = 0;
-   solveTime = TimerFactory::createTimer(timerType);
-   factorTime = TimerFactory::createTimer(timerType);

    try
    {
@@ -1326,16 +1324,23 @@ void SLUFactor::freeAll()

    if(l.rperm)
       spx_free(l.rperm);
+
+   if(solveTime)
+   {
+      solveTime->~Timer();
+      spx_free(solveTime);
+   }
+
+   if(factorTime)
+   {
+      factorTime->~Timer();
+      spx_free(factorTime);
+   }
 }

 SLUFactor::~SLUFactor()
 {
    freeAll();
-
-   solveTime->~Timer();
-   factorTime->~Timer();
-   spx_free(solveTime);
-   spx_free(factorTime);
 }

 static Real betterThreshold(Real th)
diff --git a/src/soplex/spxbasis.cpp b/src/soplex/spxbasis.cpp
index 6370e89..40d201b 100644
--- a/src/soplex/spxbasis.cpp
+++ b/src/soplex/spxbasis.cpp
@@ -1363,6 +1363,7 @@ SPxBasis::~SPxBasis()
       factor = 0;
    }

+   theTime->~Timer();
    spx_free(theTime);
 }

似乎没有str对象

Unnamed: 0       int64
max_price      float64
mean_price     float64
min_price      float64
num_black      float64
num_blue       float64
num_disc       float64
num_grey       float64
num_nodisc     float64
num_white        int64
sale_vol         int64
size_large     float64
size_medium    float64
size_small     float64  
std_price      float64
month            int64
dtype: object

0 个答案:

没有答案