728x90

python 6

[Word2Vec] CBOW - Python 코드

1. Word2Vec - CBOWCBOW에 대한 정의는 아래 게시글 참조 [NLP] Word Embedding자연어처리 공부중입니다. 잘못된 부분은 편히 댓글 부탁드립니다.1. 워드 임베딩이란?단어를 인공신경망 학습을 통해 벡터화하는 하는 것즉 텍스트를 숫자로 변환하는 방법2. 희소 표현(Sparse Rehello-heehee.tistory.com2. CODE1) Gensim Gensim: topic modelling for humansEfficient topic modelling in Pythonradimrehurek.com가장 많이 사용되고 상용화되어있는 Gensim의 Word2Vec이다.from gensim.models import Word2Vecfrom gensim.models.word2vec i..

DeepLearning/NLP 2025.02.25

상관분석 정의 및 종류 + 예시(w. Python)

1. 상관분석(Correlation Analysis): 두 변수 간의 관계의 정도를 알아보기 위한 분석방법2. 상관분석 종류1. 선형 상관분석(Linear Correlation Analysis)1) 피어슨 상관계수(Pearson Correlation Coefficient)두 연속형 변수 간의 선형적 관계를 측정ex) 키와 몸무게, 온도와 습도정규분포를 따르고 이상치가 없어야 함값의 범위  [-1 : 1]0에 가까울수록 상관관계가 약함2) 부분상관 분석(Partial Correlation)두 변수에서 제 3의 변수 효과를 제거한 후 상관성 분석ex) 나이와 수면시간 분석 시 성별의 영향 제거3) 준부분 상관분석(Semi-partial Correlation)한 변수에서 제 3의 변수의 영향을 제거한 후 다른..

통계학/통계 2024.12.09

정규성 검정 종류 및 Python Code

: 데이터가 정규분포를 따르는지 확인하는 통계적 방법1. 모수적 방법(Parametric Methods): 데이터가 특정 분포(정규분포 등)에 따른다고 가정하여 해당 분포의 모수(평균, 분산 등)를 추정한 후 검정: 정규성 가정이 틀리면 결과가 부정확할 수 있음1) Shapiro-Wilk Test가장 많이 사용데이터 분포와 정규분포 간의 상관계수를 기반으로 검정데이터가 작아도 신뢰도가 높음데이터가 크면 민감도가 증가하여 정규성을 지나치게 엄격히 평가할 수 있음from scipy.stats import shapirostat, p = shapiro(data)print(f'Statistic={stat}, p-value={p}')2) Anderson-Darling TestKolmogorov-Smirnov Tes..

통계학/통계 2024.12.07

[LV1] 개인정보 수집 유효기간 - 2023 KAKAO BLIND RECRUITMENT

Q. 약관 종류에 따른 유효기간이 있고 개인정보 수집일자와 약관종류에 따라 파기해야하는지 아닌지20001 1  def solution(today, terms, privacies): answer = [] terms_kv ={} for term in terms: terms_kv[term.split(" ")[0]] = term.split(" ")[1] for pr in range(len(privacies)): deadline=terms_kv[privacies[pr].split(" ")[1]] year=int(today.split(".")[0])-int(privacies[pr].split(" ")[0].split(".")[0]) month=..

[Keras] EfficientNet 설명 및 예시

기본 EfficientNet B0~B7까지 다룸. V2 등등은 공부예정EfficientNet이란?이 글은 논문 " EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks " 을 참고하여 작성됨.Baseline: The original network without scaling.Width Scaling: Increasing the number of channels in each layer.Depth Scaling: Increasing the number of layers.Resolution Scaling: Increasing the input image resolution.Compound Scaling: Simultaneously ..

DeepLearning/CNN 2024.11.29

[Anaconda] 가상환경에서 GPU Tensorflow 구축하기

GPU를 사용하여 딥러닝을 하기 위해서는 다음을 설치해야한다.1. Anaconda 설치 Installing Anaconda Distribution — Anaconda documentationTip More of a visual learner? Sign in to Anaconda Cloud and watch the Installing Anaconda (Mac) video in our Get Started with Anaconda course. This video guides you through using the graphical installer in a quick two minutes. Caution The graphical installdocs.anaconda.comAnaconda는 Python을 사..

728x90