일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 3줄 논문
- 나는 리뷰어다
- 코딩테스트
- 파이썬
- Semantic Segmentation
- Image Segmentation
- Object Detection
- 알고리즘
- Segmentation
- 한빛미디어
- Python
- 입문
- MySQL
- Recsys-KR
- 엘리스
- TEAM EDA
- Machine Learning Advanced
- 추천시스템
- 큐
- 튜토리얼
- eda
- pytorch
- 프로그래머스
- 협업필터링
- 나는리뷰어다
- DilatedNet
- hackerrank
- TEAM-EDA
- DFS
- 스택
- Today
- Total
목록2020/12/25 (3)
TEAM EDA
파이썬에서 데이터 프레임의 메모리를 줄여주는 코드 def reduce_mem_usage(df): """ iterate through all the columns of a dataframe and modify the data type to reduce memory usage. """ start_mem = df.memory_usage().sum() / 1024**2 # print('Memory usage of dataframe is {:.2f} MB'.format(start_mem)) cols = [c for c in df.columns if c not in ['log_date', 'date', 'etc_str2']] for col in cols: #..
파이썬 및 파이토치의 시드를 고정해주는 명령어 # Update 코드 # 링크 : https://www.kaggle.com/reighns/complete-and-reusable-pytorch-pipeline def seed_all(seed: int = 1930): print("Using Seed Number {}".format(seed)) os.environ["PYTHONHASHSEED"] = str( seed) # set PYTHONHASHSEED env var at fixed value torch.manual_seed(seed) torch.cuda.manual_seed_all(seed) torch.cuda.manual_seed(seed) # pytorch (both CPU and CUDA) np.ran..