[해결] 시계열 차수 추정하기 코드 에러 수정
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
MCP 이후 길을 잃었습니다.
0
13
1
smithery ai system shutdown
0
15
1
24 매도 종목 추출 API를 실행해 봤는데요.
0
18
0
Colab
0
36
2
베개 투자법 20장 - 수급팩터 코드 반영 질문입니다.
0
22
0
베개투자법 19장 sql 설치관련 질문입니다.
0
29
2
보안정보 질문
0
33
2
압축풀기가 완료할수 없다는메세지가 뜹니다. 물론 그냥볼수는 있으나 왜안될까요
0
22
2
Kaggle 실행한 GPU 노트북이 5시간째 QUEUED입니다
1
63
1
numpy.ndarray 에러
0
133
1
6. 데이터 전처리
0
115
1
섹션 3-4 데이터 전처리하기
0
209
1
섹션 2-1 딥러닝 모형 파트 모형 컴파일에서 에러가 발생합니다.
0
435
1
1.3. 데이터 전처리 강의에서 index do not match 에러가 납니다.
0
518
1
시계열 딥러닝 그래프에서 수치가 달라요
0
387
1
[해결] '모형별 비교'강의 sqrt함수 미정의 오류 수정
0
693
0
[해결] GRU모형 keras 불러오기 오류 수정
0
509
0
[해결] LSTM모형 케라스 recurrent 모듈 도입 에러 수정
2
912
0
[해결] 그래프를 통한 기초 데이터 분석 "ValueError: `orient` must start with 'v' or 'h' or be None, but `'V'` was passed."
2
452
0
[해결] 그래프를 통한 기초 데이터 분석 boxplot 에러 코드 수정
3
882
0
화면 글씨가 잘 안보여요
0
273
0
더미처리 후 model.fit() 에서 오류가 납니다.
0
810
1
결측치 예측 함수에서 ~ (딜트) 연산자의 의미를 설명 부탁 드립니다.
0
342
0
스케일링 질문드립니다
0
282
0

