728x90

curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

 

이후 bashrc 업데이트


source ~/.bashrc

 

이후 nvm 설치하여 setup


nvm install 22
nvm use 22
nvm alias default 22

 

마지막으로 codex 설치
npm i -g @openai/codex

 

이후 실행
codex

728x90
728x90

shap을 돌리다보면 이 에러가 생김을 알 수 있는데, 최근에 생긴 에러인듯 함.

 

XGBoost 에서 생기는데, 이는 25년 9월 22일 3.1.0 버전이 릴리즈 되고 나서부터라고 함

https://xgboost.readthedocs.io/en/release_3.1.0/changes/v3.1.0.html#multi-target-class-intercept

 

 

따라서 3.1.0 이상 버전을 지우고 pip install xgboost==3.0.3 으로 하면 문제없이 잘 진행 됨

 

(테스트 할 때 shap 버전은 shap==0.49.1)

728x90
728x90

bash 파일 내의 띄어쓰기 등의 문제로 생기는 에러 do

 

a syntax error: syntax error: unexpected end of file (expecting "do")

 

다음으로 해결 할 수 있다.

 

cat yourscript.sh | tr -d '\r' >> yournewscript.sh

 

728x90

+ Recent posts