Sourv7/hla-peptide-machinelearning-demo ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple notebook based project that shows how to predict whether a 9 mer peptide binds to HLA A*02:01.

I want it to be a learning example, not something for real medical use. Use a tiny peptide dataset, around 60 examples split evenly between binders and non binders, and make sure the notebook pads or trims sequences to length 9 before encoding them. Please one hot encode each amino acid by position, then train and compare two basic models, one logistic regression and one random forest.

Show the usual evaluation results in the notebook, like accuracy, ROC AUC, precision, recall, F1 score, and a confusion matrix plot. I’d also like the steps laid out clearly so someone new to bioinformatics machine learning can follow along. If you need to look up current docs online for the best way to do the plotting or modeling, go ahead.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab