본문 바로가기

whole view369

False Negative와 False Positive 개념 이해하기 False Negative와 False Positive는 이진 분류(binary classification)에서 주로 사용되는 개념입니다. False Negative(가음성, FN)은 실제로는 긍정(positive) 케이스인데 부정(negative)으로 잘못 분류한 경우를 말합니다. 예를 들어, 암 진단에서 환자가 암에 걸렸는데 검사 결과 음성으로 나온 경우가 해당됩니다. False Positive(가양성, FP)는 반대로 실제로는 부정(negative) 케이스인데 긍정(positive)으로 잘못 분류한 경우입니다. 예를 들어, 스팸 메일 필터에서 정상 메일을 스팸으로 잘못 분류한 경우가 이에 해당합니다. 이를 기억하기 쉽게 하는 방법은 "False는 잘못됨(Wrong)"을 뜻하고, Negative는 ".. 2024. 4. 23.
[issue] Kensington SlimBlade Trackball & mac OS crash issue M2 mbp 14 사용하고 있음, 하루에 적어도 한번씩 freezing 걸리면서 reboot 되는 현상 발생. 이유 "kensington driver" 때문이었음, kensingtonWorks제거 & steerMouse 사용하세요. 트랙볼을 연결하지 않은 상황에서 일주일동안 정상동작 확인함. 메모리와 cpu를 거의 풀로 땡기는 ML 트레이닝 중에도 프리징이 발생하지 않는다. 최신 driver 3.1.10 Uninstall 후 쾌적하게 맥을 사용하고 있다. kensingtonworks 에 있는 트랙스크롤을 너무 잘 사용하고 있어서, 다시 사용할 방법을 찾고 있음 legacy driver (kensingtonworks_2.3.2.pkg) 설치하고 사용해 볼 예정, 문제는 없는 것으로 판단된다. ** 추가 *.. 2024. 4. 22.
[issue] tensorflow, keras, transformer 버전 문제 TypeError: Exception encountered when calling layer 'embeddings' (type TFEmbeddings). colab, kaggle 에서 돌아가는 코드들이 로컬에서 돌리면 안돌아가는 경우가 있다. 대부분 버전문제로 아래 2줄의 코드로 해결했다. import os os.environ["TF_USE_LEGACY_KERAS"] = "1" 아래는 MacOS 에서 설치한 각버전 pip install tf-keras==2.16.0 pip install tensorflow-macos==2.15.0 pip install tensorflow-metal==1.1.0 # macos==2.15.0과 호환 pip install transformers==4.39.1 2024. 3. 29.
무료 SSL 인증서: certbot 사용하기 certbot SSL wildcard 갱신순서 기존에 _acme-challenge 로 등록된 DNS TXT 모두 삭제 action: DNS name: _acme-challenge 삭제 certbot 설치, certbot 명령어 실행 action: apk add certbot or apt-get -y install certbot 콘솔창에 나온 DNS name, value DNS TXT 타입으로 저장 action: DNS TXT 생성 DNS TXT 저장하는데 시간이 걸림 1차 DNS 저장 후 콘솔에서 엔터, 2차 DNS 내용나옴 2차 DNS TXT 저장 후 콘솔에서 엔터 Successfully received certificate. Certificate is saved at: /etc/letsencrypt/.. 2024. 1. 4.
python 으로 asdict, from_dict 직접 구현 편의를 위해서 dict을 많이 사용하지만 변수들이 많아지면 class화 해서 사용하는 것이 좋다. 아래 처럼 dataclass 사용시 입력값을 request의 json으로 받거나 dict으로 변환했을 때 class의 파라미터에 셋하는 from_dict 구현내용이다. 구현된 asdict 대신에 dataclasses.asdict 을 사용해도 된다. 아래의 asdict는 조건들을 추가하고 싶어서 만든 것이다. from dataclasses import dataclass, fields @dataclass class AppRawData: sessionId: str = "" deviceId: str = "" uuid: str = "" view_url: str = "" event_name: str = "" event.. 2023. 12. 18.
neo-vim 설치 - CoC, Python - 실시간자동완성 적용 vi를 IDE 처럼 사용해보자 설치 brew install nvim brew install cmake brew install luarocks brew install pkg-config nodeJs 설치 #mac brew install node@18 brew unlink node brew link --overwrite node@18 #linux curl -sL install-node.now.sh/lts | sudo bash #linux yarn 설치 #mac brew install yarn #linux curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ sta.. 2023. 5. 27.
Bard vs Bing vs ChatGPT 요즘 핫한 Bard, Bing, ChatGPT에게 질문해봤다. 승자는.... "azure atlas 월 사용비용을 예시를 들어서 알려줘" ChatGPT :) 2023. 5. 25.
Google Bard: 구글 바드 한글 지원 챗GPT(ChatGPT) 도 있지만 새로운 기술들은 접해보는게 좋은 것 같습니다. 결과는 Docs로 내보내기 가능합니다. https://bard.google.com Bard Bard is your creative and helpful collaborator to supercharge your imagination, boost productivity, and bring ideas to life. bard.google.com https://docs.google.com/document/d/1ddVMrEDVNOtbORlqmBp204eDd4wZiC77LG4RsU66yzk/edit?usp=sharing 러스트와 파이썬, 자바 언어 각자의 장단점을 들어서 비교해줘 러스트, 파이썬, 자바는 모두 다양한 목적으로 사용할.. 2023. 5. 13.
Google Bard: 구글 바드 시작하기 구글 바드 waitlist에 추가하고 9분만에 승인받고, 사용하기 구글로그인 필요함, 5월 12일 구글 IO에서 한글 지원 된다고 발표했습니다. https://bard.google.com Bard Bard is your creative and helpful collaborator to supercharge your imagination, boost productivity, and bring ideas to life. bard.google.com 2023. 4. 20.