homework 3
homework
Homework 3
This homework has two parts:
- Hyperparameter Tuning with W&B — use Weights & Biases to systematically calibrate your model’s hyperparameters and identify the best configuration.
- TF Binding Prediction — implement the TF Binding Prediction Challenge using the starter notebook as your starting point.
Part 1: Hyperparameter Calibration with Weights & Biases
-
- TF binding prediction
- Simple DNA scoring
- Cubic function with MLP
Part 2: Model Deployment and Testing
-
- Model architecture
- Training code
- Evaluation metrics
- Prediction code
-
torch.save(model.state_dict(), 'model_weights.pt') -
- Defines your model architecture (copy the class definition from your notebook)
- Loads your saved weights via
model.load_state_dict(torch.load('model_weights.pt', ...)) - Accepts a sequences data path as argument and writes predictions to a file
- Can be run as:
python predict.py --data <path_to_sequences> --out <output_file> - See the starter notebook for a skeleton
Submission Requirements
- Submit your Jupyter notebook with all code and documentation
- Submit
model_weights.pt(state dict) andpredict.py - Document your hyperparameter tuning process and results
- Provide clear instructions for running the prediction script
Evaluation Criteria
- Proper implementation of hyperparameter tuning
- Model performance on test set
- Code organization and documentation
- Reproducibility of results