[해결] 시계열 차수 추정하기 코드 에러 수정
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
로 바꿔주시면 에러 없이 차트 표출이 됩니다.
답변 0
파트9 강의는 언제 오픈하시나요
0
14
2
작업형 2 기출7회분에서
0
14
1
ZIP 파일
0
21
2
26강 13F 강의 불일치 및 질문 요청
0
25
3
[업로드오류] 강의 내용과 제목 불일치
0
20
2
작업형2 모의문제1 (30강)
0
22
2
수강 기간 연장 문의 드립니다.
0
26
2
섹션22 퀴즈 질문
0
24
1
수강 계획과 관련해 문의 드립니다.
0
24
2
numpy.ndarray 에러
0
62
1
6. 데이터 전처리
0
67
1
섹션 3-4 데이터 전처리하기
0
134
1
섹션 2-1 딥러닝 모형 파트 모형 컴파일에서 에러가 발생합니다.
0
354
1
1.3. 데이터 전처리 강의에서 index do not match 에러가 납니다.
0
426
1
시계열 딥러닝 그래프에서 수치가 달라요
0
329
1
[해결] '모형별 비교'강의 sqrt함수 미정의 오류 수정
0
635
0
[해결] GRU모형 keras 불러오기 오류 수정
0
470
0
[해결] LSTM모형 케라스 recurrent 모듈 도입 에러 수정
2
865
0
[해결] 그래프를 통한 기초 데이터 분석 "ValueError: `orient` must start with 'v' or 'h' or be None, but `'V'` was passed."
2
405
0
[해결] 그래프를 통한 기초 데이터 분석 boxplot 에러 코드 수정
3
818
0
화면 글씨가 잘 안보여요
0
236
0
더미처리 후 model.fit() 에서 오류가 납니다.
0
756
1
결측치 예측 함수에서 ~ (딜트) 연산자의 의미를 설명 부탁 드립니다.
0
307
0
스케일링 질문드립니다
0
244
0





