일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- SMTP
- nvcc
- category_encoders
- IOPub
- cuda
- 크롤링
- ML
- Django
- EarlyStopping
- Logistic linear
- 이것이 코딩 테스트다
- pandas
- selenium
- PYTHON
- nvidia
- aof
- AI
- nvidia-smi
- json
- 머신러닝
- Roc curve
- 잡담
- semi-project
- auc
- beautifulsoup
- 그리디
- 인공지능
- Trouble shooting
- 파일입출력
- 트러블슈팅
- Today
- Total
목록전체 글 (51)
개발 블로그

개요PostgreSQL에서 저장되는 table의 시간과 Grafana에서 끌어와서 display해주는 시간이 KST로 TIMEZONE을 같게 설정하더라도 9시간의 격차가 발생하면서 시간대가 다른 문제가 발생.현재 시간이 09:00인데도 불구하고 Grafana에서는 00:00시 까지 밖에 안보여줌.위 캡처 화면을 보면 PostgreSQL 서버에서 시간대를 확인 했을 때 , Asia/Seoul로 되어있지만, Grafana에서 TIMEZONE을 오히려 UTC로 해야 쿼리 결과가 서로 같은 상황이 발생.그리고 Time Series 대시보드의 경우는 현재 시간에 추가된 데이터가 즉각 Grafana에 반영되지 않고 9시간이 지나서야 반영되는 문제가 발생. 해결아래와 같이 TIMEZONE 자료형을 쓰는 테이블 컬럼에..

nvidia graphic driver를 설치한 후 nvidia-smi 명령어를 통해 그래픽카드의 사용 상태를 확인할 있으며,CUDA-toolkit을 설치를 할 경우 nvcc -V(--version) 명령어를 사용하여 cuda 버전을 확인 할 수 있다. https://www.nvidia.com/ko-kr/drivers/ 최신 정식 NVIDIA 드라이버 다운로드최신 정식 NVIDIA 드라이버를 다운로드하여 PC 게임 경험을 향상시키고 앱을 더 빠르게 실행하세요.www.nvidia.comhttps://developer.nvidia.com/cuda-toolkit-archive CUDA Toolkit ArchivePrevious releases of the CUDA Toolkit, GPU Computing SD..

CUDA 버전 확인/usr/local 에서 cuda 버전 확인root@:$ls -al /usr/local lrwxrwxrwx 1 root root 25 Sep 11 15:33 cuda-12 -> /etc/alternatives/cuda-12 drwxr-xr-x 15 root root 4096 Oct 31 10:31 cuda-12.6nvidia-container-toolkit 설치 확인 : nvidia-container-cli inforoot@:$ nvidia-container-cli info NVRM version: 560.35.03 CUDA version: 12.6 Device Index: 0 Device Minor: 0 Model: NVIDIA RTX A5000 Brand: NvidiaRTX GPU ..
Error message Error: MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if RDB snapshotting fails (stop-writes-on-bgsave-error option). Please check the Redis logs for details about the RDB error. Redis가 디스크에 데이터를 지속적으로 저장하는 데 문제가..
파이썬에서 hashlib 라이브러리를 사용하여 파일 hash를 구할 수 있다. import hashlib def file_to_md5(self): hash_md5 = hashlib.md5() with open(self.filepath, 'rb') as f: for chunk in iter(lambda: f.read(4096), b""): hash_md5.update(chunk) return hash_md5.hexdigest() 위와 같이 md5 hash를 구하는 코드예제를 보면 파일을 4096바이트씩 끊어서 읽고 hash를 update하다가 b"" (파일의 끝) 를 만나면 종료되는 것을 볼 수 있다. 이때 왜 f.read()를 안하고 4096 또는 1024와 같이 끊어서 읽는 코드 예제들이 많은지 궁금해..

인터넷이 안되는 원격 장비(Ubuntu 20.04)에 category encoders와 dependency package들을 설치하는 과정에서 만난 에러를 정리해본다. 우선 category_encoders의 requirements목록은 다음 페이지에서 확인 할 수 있다. https://github.com/scikit-learn-contrib/category_encoders/blob/master/requirements.txt numpy>=1.14.0 scikit-learn>=1.0.0 scipy>=1.0.0 statsmodels>=0.9.0 pandas>=1.0.5 patsy>=0.5.1 unittest2 # unittest2는 안설치해도 pip install 됨 importlib_resources ; p..
아래와 같이 model.py 모듈에서 Model 클래스 안의 함수 inference_malware_file() 함수에서 dict_to_df() 를 호출하는데 위와 같은 에러 메시지 발생 Class안의 함수인데 self 값을 주지 않아서 생긴 에러였다. class Model: def __init__(self, model_type='random_forest'): self.model = None self.model_type = None self.features = None if model_type == 'random_forest': self.model = RandomForestClassifier() self.model_type = 'random_forest' ... def inference_malware_fi..
daemonset.yaml 파일로 컨테이너 버전을 업데이트 하려고 했는데 daemonset 파드의 Status가 ImagePullbackOff 가 계속 떠있었다. 내 경우에는 dockerhub에 해당 이미지가 없기 때문에, 없는 이미지를 pull하려고 하니까 당연히 버전 업데이트가 안되는 것이였다. 아래와 같이 daemonset.yaml의 image버전이 0.998이였는데, 이를 dockerhub에 있는 image 버전으로 바꿔주니 잘 동작하였다. - name: container image: draidev/my_image:0.998