wildpieces

  • 홈
  • 태그
  • 방명록

Python 2

macos 에서 pyenv-virtualenv, homebrew로 다중버전관리

프로젝트별 Python 버전 관리Step 1. Homebrew 로 pyenv 설치brew updatebrew install pyenv# 설치확인pyenv --versionStep 2. Shell setting(zsh 기준)echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zprofile# PYENV_ROOT라는 환경변수를 설정, pyenv의 설치 경로를 $HOME/.pyenv로 지정# pyenv가 설치되고 관리되는 기본폴더임.# >> ~/.zprofile: 로그인 쉘에서 실행되도록 함echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zprofile# pyenv 실행파일들이 들어있는 경로($PYENV_ROOT/bin)를 PATH 환경 변..

Dev 2025.04.14

nn.Linear

y = Wx + bnn.Linear(in_features, out_features)x: 입력 벡터 (크기: in_features)W: 가중치 행렬 (크기: out_features * in_features)b: 편향 벡터 (크기: out_features)y: 출력 벡터 (크기: out_features)=> 입력 벡터 x를 선형 변환해서 출력 벡터 y를 만들어주는 레이어사용예시import torchimport torch.nn as nnlinear = nn.Linear(in_features=3, out_features=2)x = torch.tensor([[1.0, 2.0, 3.0]]) # shape: (1, 3)y = linear(x) # shape: (1, 2)print(y)3차원을 입력 받아서 2차원으로 ..

Deep learning 2025.04.11
이전
1
다음
더보기
프로필사진

wildpieces

https://github.com/wildpieces

  • 분류 전체보기 (8)
    • Deep learning (4)
    • Agentic AI (0)
    • Dev (1)
    • AWS (2)
    • Lecture (1)

Tag

SGD, Activation Function, 가상환경, Optimizer, bedrock, chunk, dl, dropout, langchain, Adam, pytorch, residual connection, vanishing gradient, pooling, Python, aws, deep learning, pyenv, deeplearning, virtualenv,

Copyright © Kakao Corp. All rights reserved.

티스토리툴바