Selaa lähdekoodia

Stan fix for pystan 2.16

bl 7 vuotta sitten
vanhempi
commit
a38aaa38c6
3 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 1 1
      R/inst/stan/prophet.stan
  2. 1 1
      python/stan/unix/prophet.stan
  3. 1 1
      python/stan/win/prophet.stan

+ 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;
     }