Ma-Lab-Berkeley/deep-representation-learning-book
Ma-Lab-Berkeley/deep-representation-learning-book has 1,119 GitHub stars and 122 forks. GitHot measured 0 stars in 24 hours and +3 in 7 days. Last checked 2026-11-13 04:58 UTC. Last push 2026-10-04.
Learning Deep Representations of Data Distributions
측정된 스타 증가
- in 24h
- 0
- in 7 days
- +3
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original"Learning Deep Representations of Data Distributions"
This repository is the source code for the book "Learning Deep Representations of Data Distributions". If you just want to read the book, you should not need this repository. We have a copy at this link that will be updated periodically.
Generally, you should be accessing the source code for one of the following purposes:
- You want to build the book, or one of its chapters, from scratch. See this section.
- You want to use the source code that generated a figure in the book. See this section.
- You want to edit the website. See this section.
- You want to ask a question, or tell us that something in the repository doesn't work quite right. See this section.
- You want to contribute some content, for example a translation, or some technical content within one or more chapters. See this section.
Building the Book or a Chapter
Prerequisites for Building the Book or a Chapter
- A local
pdflatexdistribution (TexLive is a recommended choice) - A binary of
latexmk, which comes withTexLivebut can alternatively be installed usingbrew
How to Build the Book or a Chapter
To build the book, navigate to the repository base folder and run:
latexmk book-main.tex
and read book-main.pdf.
You can also build individual chapters via latexmk! To build a chapter, say Chapter 2, you can navigate to chapters/chapter2 and run:
latexmk classic-models.tex
and read classic-models.pdf. (classic-models.tex is the chapter file for Chapter 2). We did some LaTeX hacks so that compiling the main book or individual chapters should work in your IDE (please file an issue if it doesn't work).
You can do the same with the Chinese translation of the book (though note you may need to use latexmk book-main_zh.tex -f, etc., the force flag being due to missing characters).
Using the Code
Prerequisites for Using the Code
- The Python package manager
uv
How to Use the Code
- Navigate to the repository and run
uv sync, which creates a Python virtual environment restricted to the repository. - Go to the chapter folder that you are interested in and navigate to the code directory, i.e.,
chapters/chapter3/code. - Run the desired file with
uv run <filename>and observe the outputs.
Building the Website
Prerequisites for Building the Website
- A local TeX distribution with
make4ht(TexLive is a recommended choice;make4htis included in TexLive) - The Python package manager
uv - An installation of
ImageMagick
How to Build the Website
- Navigate to the repository and run
uv sync, which creates a Python virtual environment restricted to the repository. - Build the book first so that
book-main.bblis up to date (see Building the Book). - Run the build pipeline:
bash website/latex_to_html/build.sh book-main.tex
This runs make4ht, generates MathJax macros, injects them into each HTML file, and post-processes the output into website/html/. It may take a while (around 10-30 minutes).
- Start a local HTTP server to preview the site:
python -m http.server -d website/html
- Navigate to
http://localhost:8000/index.html.
Note: The AI helper calls a variety of different models by making queries to a Cloudflare Worker proxy. We use this proxy because we do not want to expose API keys to everyone. As such, the worker will unfortunately not be open-sourced. If you really need access, talk to Druv.
Raising an Issue
Prerequisites for Raising an Issue
A GitHub account.
How to Raise an Issue
Use the GitHub "Raise Issue" UI, linked here. Please give us as much detail as possible when making your issue.
- If you are raising an issue about any of the code, please let us know your system details: OS, Python version,
uvversion, the configuration of any GPUs/TPUs you are using, etc. - If you are raising an issue about the content, please be as descriptive as possible. If you believe that something is wrong, please give a concrete reason why (e.g. a counterexample).
Please use English as this maximizes the number of people who can help.
Making a Contribution
Prerequisites for Making a Contribution
- Minimally, a text editor and GitHub account.
- But you probably also want to be able to build the book and/or chapter and/or edit and run the code.
How to Make a Contribution
- Make a new branch on GitHub, and call it whatever you like (among names that are not taken), e.g.,
my_new_branch. - Clone the repository locally using
git clone:
git clone https://github.com/Ma-Lab-Berkeley/deep-representation-learning-book.git
- Change the branch, i.e.,
git checkout -b my_new_branch
- Make whatever edits you want, then add them, commit, and push to GitHub:
git add <some files you changed>
git commit -m "<descriptive commit message>"
git push -u origin my_new_branch
- You can commit and push as many times as you want until you are satisfied.
- Make a pull request to
mainusing the GitHub UI. The pull request will likely go through some revision from a core contributor, and may be merged tomainafterwards.
Please use English as this maximizes the number of people who can attend to your contribution.
Note: The community page contains many slides and other PDFs, which are hosted on Cloudflare R2. This is to limit the overall size of the repository, making it possible to clone and edit easily. If you want to upload a PDF resource, talk to Druv.
General Guidelines for Contributing
- For code: please examine current code files and see the coding patterns.
- For LaTeX: please examine current LaTeX files and see the coding patterns.
Citation Information
Many thanks!
@book{ppdrl2026,
title={Principles and Practice of Deep Representation Learning},
author={Buchanan, Sam and Pai, Druv and Wang, Peng and Ma, Yi},
month=mar,
year={2026},
publisher={Online},
note={\url{https://ma-lab-berkeley.github.io/deep-representation-learning-book/}.}
}
관련 프로젝트 살펴보기
sindresorhus/awesome
😎 온갖 흥미로운 주제에 관한 Awesome 목록 [참고: 기존 풀 리퀘스트를 따라잡을 여유가 생길 때까지 풀 리퀘스트가 일시적으로 비활성화되어 있습니다]
536,118 스타EbookFoundation/free-programming-books
:books: 무료로 이용할 수 있는 프로그래밍 도서
401,517 스타nilbuild/developer-roadmap
개발자의 커리어 성장을 돕는 인터랙티브 로드맵, 가이드 및 기타 교육 콘텐츠.
371,935 스타vinta/awesome-python
“Python으로 X를 하고 싶은데, 어떤 도구를 써야 할까?”에 답하는 결정판 목록.
334,405 스타