[해결] 시계열 차수 추정하기 코드 에러 수정
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
로 바꿔주시면 에러 없이 차트 표출이 됩니다.
Câu trả lời 0
실습 2인데 커서아이디 같은거 다운로드 안내같은건 따로없나요??
0
3
1
5. 실습 (1) 개발 환경 준비와 프로젝트 구조 03:11
0
4
0
작업형2 인코딩 질문
0
17
2
작업형 3 벼락치기 공부방법 질문
0
17
2
14강의 예시 데이터를 통한 답을 구하는 과정에서의 문의
0
7
1
기출 11회 작업형 2_전체 데이터 학습 여부
0
28
2
예측값 결과 소수점 차이
0
24
2
여태까지 발견한 이슈들 공유드립니다.
1
27
1
기출 문제와 실전챌린지 연습문제 무엇부터 푸는게 나은가요?
0
27
1
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
334
1
[해결] '모형별 비교'강의 sqrt함수 미정의 오류 수정
0
643
0
[해결] GRU모형 keras 불러오기 오류 수정
0
478
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
822
0
화면 글씨가 잘 안보여요
0
238
0
더미처리 후 model.fit() 에서 오류가 납니다.
0
765
1
결측치 예측 함수에서 ~ (딜트) 연산자의 의미를 설명 부탁 드립니다.
0
309
0
스케일링 질문드립니다
0
247
0

