Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- DilatedNet
- 추천시스템
- TEAM-EDA
- 3줄 논문
- 엘리스
- MySQL
- Object Detection
- Segmentation
- 코딩테스트
- TEAM EDA
- 한빛미디어
- eda
- Recsys-KR
- 협업필터링
- Semantic Segmentation
- Image Segmentation
- 튜토리얼
- Python
- 나는리뷰어다
- 스택
- 알고리즘
- Machine Learning Advanced
- 나는 리뷰어다
- 큐
- 입문
- 파이썬
- hackerrank
- 프로그래머스
- DFS
- pytorch
Archives
- Today
- Total
목록2020/12/28 (1)
TEAM EDA
2차원의 배열을 1차원의 배열로 바꾸는 코드
import numpy as np x = [[1, 2, 3], [4, 5, 6]] # 방법1. np.concatenate(x) np.concatenate(x) # 방법2. flatten() np.array(x).flatten() # 방법3. chain from itertools import chain list(chain(*x)) # 방법4. List Comprehension [j for i in x for j in i] # 방법5. reduce 사용 방법 list(reduce(lambda x, y: x+y, myMatrix))
EDA Study/코드
2020. 12. 28. 22:48