소스 검색

Stan fix for pystan 2.16

bl 7 년 전
부모
커밋
a38aaa38c6
3개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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;
     }