DataScience 20

특이도 민감도 재현율 정밀도 정확도

Specificity (특이도) TN/(FP+TN) 부정 중 맞춘 부정의 수 Sensitivity (민감도) TP/(TP+FN) 긍정 중 맞춘 긍정의 수 Recall (재현율) TP/(TP+FN) 전체 긍정 중에서 검출 긍정 수 Precision (정밀도) TP/(TP+FP) 긍정이라고 판정한 것 중에 실제 긍정 수 Accuracy (정확도) (TP+TN)/(TP+FN+FP+FN) 전체 개수 중에서 긍정과 부정을 맞춘 수 예측을 긍정으로 하면 Positive 부정으로 하면 Negative 예측이 맞으면 True 틀리면 False

[딥러닝 필기] week9. RNN-Attention Model

Sequence Generation Encoder-Decoder Scheme Encoder: Compress input Sequence into one vector Decoder: Use one vector to generate output Callenges 인풋으로 들어온 백터들을 한개의 백터로 압축하고 여러 백터들로 풀어 내는 것은 성능이 낮아지는 원인이 될 수 있다. single vector may not enough for decoder to generate correct words 모든 단계에서 인풋들이 모두 동등하게 유용하지 않을 수 있다 인풋의 관련성들이 유용할 수 있다. Attention Model Attention Model Step Step 1: Evaluating Matching De..

[딥러닝 필기] week9. Sequence Modeling

Sequential Data Modeling Three Types of Problems Next Step Prediction ex) ABCDE -> F Classification ex) ABCDE -> True/False Sequence Generation Machine Translation (기계 번역) Speech Recognition (음성 인식) Image Caption Generation (이미지에 캡션 생성 Types of Processes one to many Image Captioning (이미지 -> 문자열) many to one 감정 분석 (문자열 -> 감정) many to many 기계 번역 (문자열 -> 문자열) synched many to many (동일 길이의 many to ma..

[딥러닝 필기] week8. CNN Basics: CNN Structure

Convolution Layer와 Fully Connected Feature Map의 연결방법 Flatten 각 채널의 셀을 한줄로 세워서 한줄로 합친다. ex) 7 X 7 X 512 -> (7 X 7 X 512) X1 정보 손실이 없다. 연산을 Convlution이후에 많이 하는 구조 Gap 각 채널의 평균값을 한줄로 나열한다. ex) 7 X 7 X 512 -> (512) X 1 평균으로 나타내면서 정보 손실이 있다. 연산을 Convolution에서 많이 하는 구조 Resnet Paper: Deep Residual Learning for Image Recognition Link: https://arxiv.org/abs/1512.03385 idea: 입력값 x를 몇 Layer 이후에 더해준다. '/2' ..

[딥러닝 필기] week6. CNN Basics: Convolution

Convolutional Neural Networks Reduction of Model Complexity 보통 Sequential data에 사용된다. Sequential data: ex) Images, Speech, Text Image Classification 어떻게 사진이 같은지 판단해 ㅠㅠ Local Feature 을 찾아내고, Matching 해보자 Feature Extraction Convolution: A way to find out local features 각 자리 곱하여 합한다. (net) 8X8 에 3X3 넣으면 6X6이 나온다. output은 Feature Map이라고 부르기도 한다. Threshold로 음수를 0으로 바꿀 수 있다. (relu) Zero padding 인풋에 0이..