Untitled Archive

  • 홈

📘 Programming/Python 2

디렉토리 · 파일 구조 출력

def file_tree(path, level=0, prefix=""): # 상위 폴더를 출력 if level == 0: print(f"{path}/") # os.walk를 통해 폴더를 순차적으로 탐색 for root, dirs, files in os.walk(path): # 현재 디렉토리의 상대 경로에서 깊이를 구함. depth = root.replace(path, '').count(os.sep) # 디렉토리 깊이에 맞는 들여쓰기 - 각 디렉토리 및 파일의 앞에 추가할 들여쓰기를 만들기 위한 문자열 indent = "│ " * (depth - 1) + "└── " if depth > 0 ..

📘 Programming/Python 2025.07.10

[tensorflow] tf.argmax()

tf.argmax() / tf.argmin(): Tensor 내 특정 축(axis)를 기준으로 각각 최대값/최소값의 인덱스들을 찾아 Tensor로 반환한다.tf.argmax( input, axis=None, output_type=tf.dtypes.int64, name=None) ArgsinputA TensoraxisAn integer, the axis to reduce across.Default to 0.output_typeAn optional output dytpe (tf.int 32 or int64)Default to tf.int64nameAn optional name for the operation.ReturnsA Tensor of type output_type 예제# 배열 ..

📘 Programming/Python 2025.05.16
이전
1
다음
더보기
프로필사진

Untitled Archive

  • 분류 전체보기 (97)
    • 📗 프로젝트 (1)
      • 💊 경구약제 이미지 객체 검출 프로젝트 (1)
    • 📗 개인 프로젝트 (16)
      • 🚲 공유 자전거 수요 예측 (4)
      • 🏦 정기 예금 가입 여부 예측 (4)
      • 📄 문서 노이즈 제거 (6)
      • 🫁 Chest X-Ray 기반 폐렴 여부 예측 (2)
    • 📙 Fundamentals (59)
      • ML&DL (30)
      • Computer Vision (4)
      • NLP + LLM (3)
      • Python (14)
      • Linux (8)
      • DB (0)
    • 📄 Papers (3)
      • NLP (3)
    • 📘 Programming (9)
      • Python (2)
      • Git (3)
      • Raspberry Pi (4)
    • 📒 코딩 테스트 (2)
      • Python (2)
    • 📕 Trouble-Shooting (1)
    • 📁 ETC (6)
      • NOTE (1)
      • 혼공머신 (5)

Calendar

«   2025/09   »
일 월 화 수 목 금 토
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

Tag

class_review, 이미지, 데이터 분석, linux_리눅스, 복습, 마이크로프로세스, 넘파이, Python, 데이터 전처리, 정리, numpy, Data Science, 데이터 사이언스, 파이썬, 라즈베리파이, note, 자료구조, pandas, 딥러닝, Review,

Copyright © Kakao Corp. All rights reserved.

티스토리툴바