본문 바로가기 메뉴 바로가기

CodeAngie

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

CodeAngie

검색하기 폼
  • 전체보기 (162)
    • Study (148)
      • Algorithm (8)
      • Coding Test (50)
      • Java (5)
      • FastAPI (2)
      • Docker (8)
      • FastCampus (42)
      • Codetree (9)
      • Ect (23)
    • ML (9)
      • Transformer (5)
      • RecSys (0)
      • Ect (4)

tqdm (1)
[ML / Python] Progress bar를 표시하는 tqdm 활용하기

딥러닝 모델을 학습시킬 때 학습 진척도(progress bar)를 살필 수 있는 방법으로 tqdm 패키지가 사용된다. 1. tqdm 패키지 설치!pip install tqdm 2. 기본 예제기본적으로 tqdm에 iteration이 가능한 객체를 입력하면 된다.  tqdm(range(10))from tqdm import tqdmimport timen = 10for i in tqdm(range(n)): time.sleep(1)다른 설정이 없다면 progress bar는 진행도와 시간이 표시된다.진행도(%) | 완료 횟수(i) / 전체 반복 횟수(n) [현재까지 걸린 시간  3. 옵션1) 많이 사용되는 옵션: desc, postfix, unitdesc는 progress bar의 prefix(전위표기법)으..

ML/Ect 2023. 2. 2.
이전 1 다음
이전 다음
«   2025/12   »
일 월 화 수 목 금 토
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
TAG
  • Django
  • docker
  • 오블완
  • 최소신장트리
  • 백준
  • 트랜스포머
  • python
  • COLAB
  • pytorch
  • Transformer
  • 코드트리
  • 티스토리챌린지
  • 누적합
  • BFS
  • MySQL
  • 파이썬
  • 그리디
  • boj
  • 코딩테스트
  • kruskal
  • DP
  • 알고리즘
  • 구현
  • lis
  • java
  • 분리집합
  • disjoint set
  • 프로그래머스
  • dfs
  • greedy
more
링크

Blog is powered by Tistory / Designed by Tistory

티스토리툴바