fa25-cs540 cs540
README README
Content locked
The catalog is public. Reading this content requires approved access.
Sign in to readhw6
Overview
Summary
Part 1: Setting up the Python Virtual Environment
Environment Setup
Step 1: Create Virtual Environment
Step 2: Activate the Environment
Step 3: Install PyTorch
Part 2: Build Your First Neural Network
Required Functions
get_data_loader(training=True)
build_model()
build_deeper_model()
train_model(model, train_loader, criterion, T)
evaluate_model(model, test_loader, criterion, show_loss=True)
predict_label(model, test_images, index)
Import Necessary Packages
Get the DataLoader
Hint 1: Using Built-in Datasets
Hint 2: DataLoader
Expected Output
Build Your Model
Model Architecture
Expected Output
Train Your Model
Setup Optimizer
Training Loop
Output Format
Format Requirements
Evaluate Your Model
Output Format
Deeper Learning
Deeper Network Architecture
Optional Extra Credit: Evaluation Performance
Scoring
Predict the Labels
Softmax Function
Implementation
Expected Output
Deliverables
Submission