Skip to content

hundong2/essential-mathematics-for-ai

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

인공지능 수학 Deepdive 코드

본 레포지토리는 인공지능 수학 Deepdive의 실습 코드를 담아둔 레포입니다.


환경 설정

방법 1 — uv (권장)

uv는 Rust로 작성된 초고속 Python 패키지 매니저입니다.

1. uv 설치

# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# Windows (PowerShell)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

# Homebrew (macOS)
brew install uv

2. 가상환경 생성 및 의존성 동기화 (uv sync)

프로젝트 루트에서 아래 명령어를 한 번만 실행하면 가상환경 생성과 패키지 설치가 자동으로 완료됩니다.

# pyproject.toml 기반으로 .venv 생성 + 패키지 설치
uv sync

uv syncpyproject.toml을 읽어 .venv 디렉터리에 가상환경을 만들고 의존성을 설치합니다.
이후 실행할 때도 동일 명령어로 환경을 최신 상태로 유지할 수 있습니다.

3. 가상환경 활성화

# macOS / Linux
source .venv/bin/activate

# Windows
.venv\Scripts\activate

4. (선택) requirements.txt 기반으로 정확한 버전 설치

requirements.txt에 핀 고정된 버전을 그대로 설치하려면 다음 명령어를 사용합니다.

uv pip install -r requirements.txt

방법 2 — pip (기존 방식)

# 가상환경 생성 (권장)
python3 -m venv .venv
source .venv/bin/activate      # Windows: .venv\Scripts\activate

# 의존성 설치
pip install -r requirements.txt

Jupyter Notebook 실행

jupyter notebook

프로젝트 구조

.
├── pyproject.toml        # uv / 빌드 설정
├── requirements.txt      # pip 호환 의존성 목록
├── chapter02/            # 확률분포, 함수 피팅
├── chapter03/            # 데이터셋 실습 (Iris, MNIST, Fish)
├── chapter04/            # 4장 실습
├── chapter05/            # 5장 실습
└── chapter06/            # 6장 실습

About

한빛미디어의 책 "AI를 위한 필수 수학"에서 활용되는 코드 모음 집입니다.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Jupyter Notebook 100.0%