전체 글 30

LG TECH CONFERENCE 2024 탐방기

2024년 4월 4일. 좋은 기회로 초청받아 LG Tech Conference에 참여하게 되었다. 지하철 타고 마곡나루역에 하차! 4번 출구로 나와서 조금만 걸어가면 등록처인 ISC 건물이 나온다. 등록데스크에서 명찰과 각종 기념품 (가방, 후드집업, 공책 등) 수령 후, 같이 온 연구실 선배와 만나 함께 에스컬레이터로 오프닝 장소인 5층으로 이동했다. Opening 베이글과 커피를 마시며 오프닝에 참여했다. Tech Session 오프닝이 끝난 후, 본격적으로 행사가 시작되었다. 사전에 신청한 Tech Session 위주로 돌아다녔는데, 공교롭게도 내가 신청한 모든 세션이 같은 장소에서 진행되었다. 위치가 다 달랐다면 건물 이동하며 구경도 할 수 있었을 텐데, 한 곳에만 머물렀다는 점이 조금 아쉬웠다...

Events 2024.04.05

[프로그래머스/Python/완벽탐색] Level 1 86491 - 최소직사각형

https://school.programmers.co.kr/learn/courses/30/lessons/86491 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr Input: 가로 길이와 세로 길이 pair들을 element으로 가진 2차원 배열 가로와 세로는 서로 interchangable 하다. 따라서 가장 작은 직사각형을 만들기 위해선, 각 명함의 가로 세로 중 더 긴 변들을 비교하여 직사각형의 한 변을 만들고, 더 짧은 변들을 비교하여 직사각형의 다른 한 변을 만든다. 완전탐색 방법으로 각 명함을 확인하고, 길이가 긴 변들 중 가장 긴 변, 그리고 ..

[프로그래머스/Python/Sort] Level 2 42746 - 가장 큰 수

https://school.programmers.co.kr/learn/courses/30/lessons/42746 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr def solution(numbers): numbers = list(map(str, numbers)) # string으로 변환 numbers.sort(key=lambda x: x*4, reverse=True) # 최대 길이가 4라서 4번 반복 ('1000') answer = ''.join(numbers) # 순서대로 concat해서 가장 큰 숫자 만들기 if answer[0] == '0': # '..

[프로그래머스/Python/Heap] Level 3 42627 - 디스크 컨트롤러

https://school.programmers.co.kr/learn/courses/30/lessons/42627 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr import heapq def solution(jobs): curr_time = 0 # 현재시점 answer = 0 # 각각의 작업이 소요된 시간의 합 idx = 0 heap = [] while idx < len(jobs): # 모든 job을 확인 for job in jobs: if 0

[백준/C/Brute Force] 2798 - 블랙잭

블랙잭 카드 게임. n개의 숫자들 중에서 3개를 골라 m을 초과하지 않는 합을 구하기. input n: 숫자의 총 개수 m: 합이 초과하면 안되는 수 output 3개의 합. m을 초과하면 안된다 #include int main(){ int n = 0; int m, i, j, k; int sum = 0; int answer = 0; scanf("%d %d", &n, &m); int arr[n]; for(i = 0; i < n; i++){ scanf("%d", &arr[i]); } for(i = 0; i < n; i++){ for(j = 1; j < n && j != i; j++){ for(k = 2; k < n && k != i && k != j; k++){ sum = arr[i] + arr[j] + a..

[프로그래머스/Python/스택큐] Level 2 42583 - 다리를 지나는 트럭

https://school.programmers.co.kr/learn/courses/30/lessons/42583 [프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr](https://school.programmers.co.kr/learn/courses/30/lessons/42583) Approach: Pop the first element of truck_weights as curr_truck Check the weight of current bridge. 2-1. If current weight + curr_truck is less than or equal..

[Paper Review] Focal Loss for Dense Object Detection

1. Detection 모델의 종류 One-stage detection faster & simpler, but lower accuracy Two-stage detection: slower, but higher accuracy First stage: generates a sparse set of candidate object detection Two-stage cascade to remove easy negatives Second stage: classifies each candidate location as one of the foreground classes or as background using CNN Sampling heuristics: foreground-background ratio (1:3)..

[MMDetection] MLFlow + wandb 연동하기

log_config = dict( interval=50, hooks=[ dict(type='MlflowLoggerHook', exp_name=EXP_NAME), dict(type='TextLoggerHook'), dict(type='WandbLoggerHook', init_kwargs={ 'entity': ENTITY_NAME, 'project': PROJECT_NAME, 'name': EXP_NAME }) ]) config file 하단에 log configuration을 추가해준다. MLFlow, terminal, wandb 세 곳에 logging 한다. 아래 installation을 해주고 train.py을 실행하면 된다. pip install mlflow pip install wandb wandb..

[Anaconda] CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. To initialize your shell, run $ conda init Currently supported shells are: - bash - fish - tcsh - xonsh - zsh - powershell See 'conda init --help' for more information and options. IMPORTANT: You may need to close and restart your shell after running 'conda init'. ㅎㅎ... 하라는 대로 init을 아무리 해봐도 안 됨. 근데 역시 우리의 ..

[Week 4 / Data Visualization] 다양한 시각화 방법론

Polar Coordinate Polar Plot Polar coordinate, 즉 극좌표계를 사용하는 시각화 방법이다. 좌표계 위에 나타낼 수 있는 거리 R 그리고 각도 theta를 사용한다. 각을 표현할 수 있기에 rotation 회전이나 periodicity 주기성과 같은 각도의 특성을 나타내기에 적합하다. projection = polar 를 사용하면 x의 subplot이 polar plot으로 바뀌게 된다. scatter, line, bar plot 모두 극좌표계로 맵핑하여 polar plot으로 만들 수 있다. Matplotlib logo에 사용된 plot이 polar coordinate에 bar 형식으로 시각화 한 것이다. Data Converting 데이터를 polar coordinate..