앙상블(Ensemble) 하드보팅(Majority/Hard Voting)에서 모델(Model)이 짝수일땐 어떻게 할까?
·
Machine learning
In the cases of a tie, the VotingClassifier will select the class based on the ascending sort order. E.g., in the following scenario classifier 1 -> class 2 classifier 2 -> class 1 the class label 1 will be assigned to the sample. --> 앙상블 모델에서 Hard voting을 택했을 때 아래와 같이 예측하면 그냥 Class 오름차순에 의해서 class 1으로 결정한다는 내용이다. classifier 1 -> class 2 classifier 2 -> class 1 참으로 허술하구나.. 그래도 1:1일 경우에는 확률값으로 한다..
스케일링_방법_장단점_효과_scaler
·
Machine learning
mkjjo.github.io/python/2019/01/10/scaler.html [Python] 어떤 스케일러를 쓸 것인가? * 본 포스트는 개인연구/학습 기록 용도로 작성되고 있습니다. By MK on January 10, 2019 데이터를 모델링하기 전에는 반드시 스케일링 과정을 거쳐야 한다. 스케일링을 통해 다차원의 값들을 비교 분 mkjjo.github.io
원격 주피터에 가상환경 설치하는방법 ipykernel
·
Tools/주피터노트북
https://blueriver97.tistory.com/29 Jupyter Notebook에 가상환경 Kernel 추가 1. 가상환경 활성화 $ source /bin/activate 2. 가상환경 내에서 ipykernel 설치 (가상환경)$ pip install ipykernel 3. 가상환경 내에서 커널 등록 (가상환경)$ python -m ipykernel install --user --.. blueriver97.tistory.com
'\n'개행변수 삭제
·
프로그래밍 언어/Python
https://m.blog.naver.com/PostView.nhn?blogId=popqser2&logNo=221399436541&proxyReferer=https:%2F%2Fwww.google.com%2F 파이썬 - strip in list (리스트에서 문자 삭제 사용하기) (feat. rstrip, lstrip) 0x00 서론텍스트 파일을 open 하여 내용을 읽어 올 때 개행으로 구분되어 있으면, '\n' 문자가 붙어서 들어... blog.naver.com
f string 소수점 표기 법 print(f'{loss :.2f}')
·
프로그래밍 언어/Python
f string 소수점 표기 법 print(f'{loss :.2f}')
트랜스포머 , GPT 코드 구현
·
Deep learning/자연어처리
https://paul-hyun.github.io/gpt-01/ GPT(Generative Pre-Training) 구현하기 (1/2) How to implement the GPT model paul-hyun.github.io
scaling 스케일링 정규화 표준화 normalization standardization
·
Machine learning
https://bskyvision.com/849 정규화(normalization)와 표준화(standardization), 머신러닝 성능 향상을 위한 필수 단계 오늘은 꽤 중요한 이야기를 하고자 합니다. 기본적이기 때문에 중요합니다. 이것을 간과하면 성능에 치명적인 영향을 끼치기 때문에 중요합니다. 바로 정규화(normalization)와 표준화(standardization)� bskyvision.com scaling 스케일링 정규화 표준화 normalization standardization https://junklee.tistory.com/18 데이터 스케일링(Data Scaling) 코드 머신러닝을 위한 데이터셋을 정제할 때, 특성별로 데이터의 스케일이 다르다면 어떤 일이 벌어질까요. 예를 들어, ..
데이터 순서 역순으로 바꾸기, 뒤집기 flip/reverse
·
프로그래밍 언어/Python
데이터 순서 역순으로 바꾸기, 뒤집기 flip/reverse https://codetorial.net/tips_and_examples/reverse_python_list_or_numpy_array.html 3. 파이썬 리스트 순서 뒤집기 - Codetorial 4) np.flip() vs np.flipud() vs np.fliplr() np.flip(), np.flipud(), np.fliplr() 메서드의 차이에 대해 알아봅니다. 2차원 어레이에서 세가지 메서드는 다르게 동작합니다. np.flip() vs np.flipud() vs np.fliplr(). np.flip()은 �� codetorial.net