inflearn logo
강의

Course

Instructor

[For Beginners] Machine Learning with Kaggle • Deep Learning Analysis

Estimating the order of a time series

[해결] 시계열 차수 추정하기 코드 에러 수정

Resolved

717

babelai

6 asked

5

from statsmodels.graphics.tsaplots import plot_pacf plot_pacf(pacf, lags=20, method='ols', title='pa').show

ValueError: Can only compute partial correlations for lags up to 50% of the sample size. The requested nlags 20 must be < 10.

이런 에러가 떠서 좀 헤맸네요.

 

결론적으로 선생님 코드

from statsmodels.tsa.stattools import pacf

pacf = pacf(df['cnt'], nlags=20, method='ols')

print(pacf)

from statsmodels.graphics.tsaplots import plot_pacf

plot_pacf(pacf, lags=20, method='ols', title='pa').show

from statsmodels.tsa.stattools import pacf

pacf_values = pacf(df['cnt'], nlags=20, method='ols')

print(pacf_values)

from statsmodels.graphics.tsaplots import plot_pacf

plot_pacf(df['cnt'], lags=20, method='ols', title='pa').show

 

로 바꿔주시면 에러 없이 차트 표출이 됩니다.

 

 

 

 

 

 

 

 

 

 

 

 

 

머신러닝 딥러닝 kaggle 코드에러 수정

Answer 0

대응표본검정 레빈

0

13

2

단일표본검정 문제 유형

0

16

2

[작업형 3] 6~7. 카이제곱 검정

0

15

2

9회 작업형3 문제 1-1

0

19

2

최종답안 계산 방식 질문

0

14

1

시험 치기 전 급하게 질문 사항

0

24

2

유형3

0

23

2

작업형 2 연습문제 섹션 3

0

18

2

11 기출문제 ipynb파일

0

21

2

numpy.ndarray 에러

0

68

1

6. 데이터 전처리

0

72

1

섹션 3-4 데이터 전처리하기

0

144

1

섹션 2-1 딥러닝 모형 파트 모형 컴파일에서 에러가 발생합니다.

0

366

1

1.3. 데이터 전처리 강의에서 index do not match 에러가 납니다.

0

436

1

시계열 딥러닝 그래프에서 수치가 달라요

0

332

1

[해결] '모형별 비교'강의 sqrt함수 미정의 오류 수정

0

642

0

[해결] GRU모형 keras 불러오기 오류 수정

0

476

0

[해결] LSTM모형 케라스 recurrent 모듈 도입 에러 수정

2

868

0

[해결] 그래프를 통한 기초 데이터 분석 "ValueError: `orient` must start with 'v' or 'h' or be None, but `'V'` was passed."

2

408

0

[해결] 그래프를 통한 기초 데이터 분석 boxplot 에러 코드 수정

3

821

0

화면 글씨가 잘 안보여요

0

238

0

더미처리 후 model.fit() 에서 오류가 납니다.

0

765

1

결측치 예측 함수에서 ~ (딜트) 연산자의 의미를 설명 부탁 드립니다.

0

309

0

스케일링 질문드립니다

0

247

0