전체글

    [Python] 파일명이 중복되면 자동으로 파일명을 변경

    https://wonderlandcoco.tistory.com/90 [Python/파이썬] 파일명이 중복되면 자동으로 파일명을 변경 파이썬 코드를 짜면서 계속 실행하다보면 결과 파일의 이름이 같아서 덮어쓰기가 되는데, 그 전의 결과물도 남기고 싶을 때가 있어서 파일명을 자동 변경해주는 코드를 찾아보았다. 만일 동일 wonderlandcoco.tistory.com

    [openCV] 이미지 파일에서 특정 픽셀 값만 추출하기

    https://anweh.tistory.com/4 [python, openCV] 이미지 파일에서 특정 픽셀값만 추출하기 영상처리를 하다보면 여러 색이 뒤죽박죽 섞인 이미지에서 특정 색만 추출하고 싶을 때가 있다. 예를 들어 다음과 같은 사진이 있다고 생각해보자. 여기서 60,000이상 되는 지역만 뽑아내고 싶다 anweh.tistory.com

    [openCV] openCV 이미지 흑백 처리

    https://upgrade-j.tistory.com/entry/pythonopenCV-openCV-%EC%9D%B4%EB%AF%B8%EC%A7%80-%ED%9D%91%EB%B0%B1-%EC%B2%98%EB%A6%AC [python/openCV] openCV 이미지 흑백 처리 Blue -> (255,0,0) Green -> (0,255,0) Red -> (0,0,255) White -> (255,255,255) Black -> (0,0,0) 이미지 흑백 처리 1. 흑백으로 읽어오기 / cv2.IMREAD_GRAYSCALE 2. BGR 이미지에서 GRAY로 변경 / upgrade-j.tistory.com https://sikaleo.tistory.com/77..

    [numpy] any all where

    https://davey.tistory.com/entry/Python-%ED%8C%8C%EC%9D%B4%EC%8D%AC-numpy-%ED%95%A8%EC%88%98-any-all-where-%ED%96%89%EB%A0%AC-%EC%9D%B8%EB%8D%B1%EC%8B%B1index%EA%B3%BC-%EC%8A%AC%EB%9D%BC%EC%9D%B4%EC%8B%B1 Python 파이썬 numpy 함수 any, all, where, 행렬 인덱싱(index)과 슬라이싱 안녕하세요, 오늘 포스팅한 내용은 numpy 함수 중 any, all, where 함수 그리고 numpy 행렬 인덱싱(index)와 슬라이싱에 대한 내용입니다. 수계산에 정말 많이 쓰이는 함수입니다. 1. any, all, where 함수 1) ..

    로또 모델

    https://tykimos.github.io/2020/01/25/keras_lstm_lotto_v895/

    [keras] predict_on_batch 와 predict의 차이 ?

    What is the difference between the predict and predict_on_batch methods of a Keras model? What is the difference between the predict and predict_on_batch methods of a Keras model? According to the keras documentation: predict_on_batch(self, x) Returns predictions for a single batch of samples. However, there does not seem to be any difference with the standard predict method stackoverflow.com pr..

    [docker] 생성한 이미지 사용법

    https://subicura.com/2017/02/10/docker-guide-for-beginners-create-image-and-deploy.html 초보를 위한 도커 안내서 - 이미지 만들고 배포하기 이 글은 초보를 위한 도커 안내서 - 설치부터 배포까지 시리즈의 마지막 글입니다. 지난 글에서 도커를 설치하고 컨테이너를 실행해 보았으니 이번엔 이미지를 만들고 서버에 배포해보도록 하 subicura.com

    [판다스] Nan 값 있는 행 대체하며 merge

    https://stackoverflow.com/questions/59045507/how-to-merge-two-dataframes-and-keep-the-non-nan-values-in-it How to merge two dataframes and keep the non -nan values in it df1 0 Name phone Marks 1 mark 1225 20.0 2 charles 165498 36.5 3 oscar 1567 nan 4 bucky 13579 22.0 5 austin 1365... stackoverflow.com merge 대신 update 이용하기. 예시 : df1.update(df2)

    AttributeError: 'Functional' object has no attribute 'predict_proba'

    https://stackoverflow.com/questions/63649503/attributeerror-functional-object-has-no-attribute-predict-proba AttributeError: 'Functional' object has no attribute 'predict_proba' For printing the ROC curve with multiple models, I am facing this particular error. Help is needed from tensorflow.keras.models import load_model def dense(): return (load_model('DenseNet... stackoverflow.com model.predi..

    이진 분류의 성능 평가 지표: Accuracy, Confusion Matrix, Precision, Recall, F1, ROC-AUC, 코드 구현

    https://driip.me/3ef36050-f5a3-41ea-9f23-874afe665342 이진 분류의 성능 평가 지표: Accuracy, Confusion Matrix, Precision, Recall, F1, ROC-AUC 주로 이진 분류에서 성능 평가 지표로 사용하는 5가지 수치에 대해 알아보자. driip.me https://for-my-wealthy-life.tistory.com/26 ROC 곡선(ROC curve)과 AUC란? 직접 그려보기 ROC곡선은 이진분류기의 성능을 측정하는 도구이다. ROC곡선의 생김새는 언뜻보면 recall-precision 곡선과 비슷해보이지만 FPR에 대한 TPR의 곡선이다. (X축이 FPR, Y축이 TPR) FPR(False Positive Rate): 거..