Sfoglia il codice sorgente

Stan fix for pystan 2.16

bl 7 anni fa
parent
commit
a38aaa38c6

+ 1 - 1
R/inst/stan/prophet.stan

@@ -14,7 +14,7 @@ functions {
     for (i in 1:T) {
       while ((cp_idx <= S) && (t[i] >= t_change[cp_idx])) {
         a_row[cp_idx] = 1;
-        cp_idx += 1;
+        cp_idx = cp_idx + 1;
       }
       A[i] = a_row;
     }

+ 1 - 1
python/stan/unix/prophet.stan

@@ -14,7 +14,7 @@ functions {
     for (i in 1:T) {
       while ((cp_idx <= S) && (t[i] >= t_change[cp_idx])) {
         a_row[cp_idx] = 1;
-        cp_idx += 1;
+        cp_idx = cp_idx + 1;
       }
       A[i] = a_row;
     }

+ 1 - 1
python/stan/win/prophet.stan

@@ -14,7 +14,7 @@ functions {
     for (i in 1:T) {
       while ((cp_idx <= S) && (t[i] >= t_change[cp_idx])) {
         a_row[cp_idx] = 1;
-        cp_idx += 1;
+        cp_idx = cp_idx + 1;
       }
       A[i] = a_row;
     }