Skip to content

Latest commit

 

History

History
 
 

README.md

W2 — MLP / 基本分類 / 基礎 optimization

MLP の forward → activation → loss → optimizer → 評価指標 までの一周。基本的な MNIST / 分類パイプラインの構成部品を一つずつ自前実装する週。

8 problems. Solve each template in place, then run the last cell check("...") to grade. Stuck? Open the linked solution in the rightmost column.

Study order

Order # Problem Difficulty Solution Colab
1 40 40_linear_regression.ipynb — Linear Regression Medium Open In Colab
2 03 03_linear.ipynb — Simple Linear Layer Medium Open In Colab
3 01 01_relu.ipynb — Implement ReLU Easy Open In Colab
4 02 02_softmax.ipynb — Implement Softmax Easy Open In Colab
5 16 16_cross_entropy.ipynb — Cross-Entropy Loss Easy Open In Colab
6 53 53_nll_loss.ipynb — Negative Log-Likelihood Loss Easy Open In Colab
7 54 54_sgd_momentum.ipynb — SGD with Momentum Medium Open In Colab
8 52 52_top_k_accuracy.ipynb — Top-k Accuracy Easy Open In Colab

How to use

# from the repo root
make run                # or `docker compose up`
# then in JupyterLab, navigate to practice/W2/ and open a notebook

If you accidentally break a template, delete it and rerun python scripts/build_weeks.py to restore — it only copies missing files, so your other in-progress notebooks are preserved.