목록
반응형
전체 글
반응형
(83)
Lumiere, and s5unnyjjj
프로그래머스 사용 언어: Python 문제 링크: https://school.programmers.co.kr/learn/courses/30/lessons/67257 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr *** 본 문제를 푸는 과정을 공유하려 한다. ▶ 아래와 같이 작성해보았다. import re from itertools import permutations def calculation(n1, n2, operation): if operation == '-': return n1 - n2 elif operation == '*': return n1*n2..
백준 사용 언어: Python 문제 링크: https://www.acmicpc.net/problem/17836 17836번: 공주님을 구해라! 용사는 마왕이 숨겨놓은 공주님을 구하기 위해 (N, M) 크기의 성 입구 (1,1)으로 들어왔다. 마왕은 용사가 공주를 찾지 못하도록 성의 여러 군데 마법 벽을 세워놓았다. 용사는 현재의 가지고 있는 www.acmicpc.net *** 본 문제를 푸는 과정을 공유하려 한다. ▶ 처음에는 아래와 같이 작성해보았다. import sys from collections import deque input = sys.stdin.readline N, M, T = list(map(int, input().split())) dx = [1, -1, 0, 0] dy = [0, 0, 1..
프로그래머스 사용 언어: Python 문제 링크: https://school.programmers.co.kr/learn/courses/30/lessons/1844?language=python3 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr *** 본 문제를 푸는 과정을 공유하려 한다. ▶ 처음에는 아래와 같이 작성해보았다. from collections import deque dx = [-1, 1, 0, 0] dy = [0, 0, 1, -1] def bfs(maps): que = deque() que.append([0, 0]) n, m = len(maps..
프로그래머스 사용 언어: Python 문제 링크: https://school.programmers.co.kr/learn/courses/30/lessons/258711 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr *** 본 문제를 푸는 과정을 공유하려 한다. ▶ 처음에는 아래와 같이 작성해보았다. def solution(edges): answers = [0, 0, 0, 0] n = max(max(edges))+1 edges_in, edges_out = [0]*n, [0]*n for i, j in edges: edges_in[i] += 1 edges_out..
ImageAI를 이용하여 detection을 진행해보았습니다. ImageAI는 오픈 소스로 해당 코드를 이용하면 detection model을 쉽게 구동할 수 있습니다. https://github.com/OlafenwaMoses/ImageAI#detection GitHub - OlafenwaMoses/ImageAI: A python library built to empower developers to build applications and systems with self-contai A python library built to empower developers to build applications and systems with self-contained Computer Vision capabilit..
일전에 Vision Transformer (ViT) 모델 구조를 리뷰하며 스터디한 것을 기반으로 ViT 모델 구조를 직접 구현해보았습니다. https://s5unnyjjj.tistory.com/77 Code Review: Vision Transformer (Ref: Google research github) Vision Transformer (ViT) 모델 구조를 코드와 함께 리뷰해보려합니다. Paper: https://arxiv.org/abs/2010.11929 Offifical github: https://github.com/google-research/vision_transformer GitHub - google-res.. s5unnyjjj.tistory.com 대게 ViT 모델이 pytorch 기..
Vision Transformer (ViT) 모델 구조를 코드와 함께 리뷰해보려합니다. Paper: https://arxiv.org/abs/2010.11929 Offifical github: https://github.com/google-research/vision_transformer GitHub - google-research/vision_transformer Contribute to google-research/vision_transformer development by creating an account on GitHub. github.com Vision Transformer (ViT) 모델 구조를 코드를 함께 리뷰해보려합니다. 정확한 리뷰를 위하여 official github에 업로드된 코드를 ..
딥러닝 모델 구축에 사용되는 많은 activation function이 존재합니다. 해당 글에서는 activation function의 변천사에 대해서 간략히 설명하려고 합니다. Sigmoid / Tanh(Hyperbolic Tangent) 초기에는 sigmoid, tanh가 빈번하게 사용되었습니다. Sigmoid와 Tanh는 s 모양의 곡선으로 이루어져있습니다. Sigmoid의 경우 y 값의 범위는 0~1인 반면, Tanh의 경우 y 값의 범위는 -1~1입니다. 하지만 모델 업데이트 과정에서의 지속적인 미분으로 인하여 vanishing gradient가 발생합니다. 이를 해결하기 위해 ReLU가 급부상하게 됩니다. ReLU(Rectified Linear Unit) ReLU는 x가 0이상의 양수일 경우 ..