Description to be added...
If you're using macOS, install pipenv
with Homebrew
$ brew install pipenv
More documentation: https://github.com/pypa/pipenv
$ git clone https://github.com/mikochen0107/mhc-1-immunopeptidome-characterization.git
$ cd mhc-1-immunopeptidome-characterization
$ pipenv install
Create a script in /scripts
or a Jupyter notebook in /notebooks
import sys
sys.path.append("..") # add top folder to path
import impepdom
model = impepdom.models.MultilayerPerceptron(num_hidden_layers=2, hidden_layer_size=100)
dataset = impepdom.PeptideDataset(
hla_allele='HLA-A01:01',
padding='flurry',
toy=True)
folder, baseline_metrics, _ = impepdom.run_experiment(
model,
dataset,
train_fold_idx=[1, 2, 3],
val_fold_idx=[0],
learning_rate=2e-3,
num_epochs=5,
batch_size=128)
trained_model, train_history = impepdom.load_trained_model(model, folder)
impepdom.plot_train_history(train_history, baseline_metrics)
$ pipenv shell
$ cd scripts
$ python <NAME_OF_SCRIPT>
To be added...
To be added...