Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mhc_rank
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Patrick Skillman-Lawrence
mhc_rank
Commits
f2858cff
Commit
f2858cff
authored
5 years ago
by
Tim O'Donnell
Browse files
Options
Downloads
Patches
Plain Diff
fix generrate.sh
parent
ab178e4c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
downloads-generation/models_class1_pan/GENERATE.sh
+6
-8
6 additions, 8 deletions
downloads-generation/models_class1_pan/GENERATE.sh
downloads-generation/models_class1_pan/generate_hyperparameters.py
+9
-7
9 additions, 7 deletions
...-generation/models_class1_pan/generate_hyperparameters.py
with
15 additions
and
15 deletions
downloads-generation/models_class1_pan/GENERATE.sh
+
6
−
8
View file @
f2858cff
...
@@ -15,8 +15,8 @@ rm -rf "$SCRATCH_DIR/$DOWNLOAD_NAME"
...
@@ -15,8 +15,8 @@ rm -rf "$SCRATCH_DIR/$DOWNLOAD_NAME"
mkdir
"
$SCRATCH_DIR
/
$DOWNLOAD_NAME
"
mkdir
"
$SCRATCH_DIR
/
$DOWNLOAD_NAME
"
# Send stdout and stderr to a logfile included with the archive.
# Send stdout and stderr to a logfile included with the archive.
#
exec > >(tee -ia "$SCRATCH_DIR/$DOWNLOAD_NAME/LOG.txt")
exec
>
>(
tee
-ia
"
$SCRATCH_DIR
/
$DOWNLOAD_NAME
/LOG.txt"
)
#
exec 2> >(tee -ia "$SCRATCH_DIR/$DOWNLOAD_NAME/LOG.txt" >&2)
exec
2>
>(
tee
-ia
"
$SCRATCH_DIR
/
$DOWNLOAD_NAME
/LOG.txt"
>
&2
)
# Log some environment info
# Log some environment info
date
date
...
@@ -35,7 +35,7 @@ echo "Detected GPUS: $GPUS"
...
@@ -35,7 +35,7 @@ echo "Detected GPUS: $GPUS"
PROCESSORS
=
$(
getconf _NPROCESSORS_ONLN
)
PROCESSORS
=
$(
getconf _NPROCESSORS_ONLN
)
echo
"Detected processors:
$PROCESSORS
"
echo
"Detected processors:
$PROCESSORS
"
time
mhcflurry-class1-train-pan-allele-models
\
mhcflurry-class1-train-pan-allele-models
\
--data
"
$(
mhcflurry-downloads path data_curated
)
/curated_training_data.with_mass_spec.csv.bz2"
\
--data
"
$(
mhcflurry-downloads path data_curated
)
/curated_training_data.with_mass_spec.csv.bz2"
\
--allele-sequences
"
$(
mhcflurry-downloads path allele_sequences
)
/allele_sequences.csv"
\
--allele-sequences
"
$(
mhcflurry-downloads path allele_sequences
)
/allele_sequences.csv"
\
--pretrain-data
"
$(
mhcflurry-downloads path random_peptide_predictions
)
/predictions.csv.bz2"
\
--pretrain-data
"
$(
mhcflurry-downloads path random_peptide_predictions
)
/predictions.csv.bz2"
\
...
@@ -43,14 +43,12 @@ time mhcflurry-class1-train-pan-allele-models \
...
@@ -43,14 +43,12 @@ time mhcflurry-class1-train-pan-allele-models \
--ensemble-size
4
\
--ensemble-size
4
\
--hyperparameters
hyperparameters.yaml
\
--hyperparameters
hyperparameters.yaml
\
--out-models-dir
models-unselected
\
--out-models-dir
models-unselected
\
--num-jobs
4
--gpus
$GPUS
--max-workers-per-gpu
1
--max-tasks-per-worker
1
#--num-jobs $(expr $PROCESSORS \* 2) --gpus $GPUS --max-workers-per-gpu 2 --max-tasks-per-worker 50
cp
$SCRIPT_ABSOLUTE_PATH
.
cp
$SCRIPT_ABSOLUTE_PATH
.
bzip2 LOG.txt
bzip2 LOG.txt
tar
-cjf
"../
${
DOWNLOAD_NAME
}
.with_unselected.tar.bz2"
*
tar
-cjf
"../
${
DOWNLOAD_NAME
}
.with_unselected.tar.bz2"
*
echo
"Created archive:
$SCRATCH_DIR
/
${
DOWNLOAD_NAME
}
.with_unselected.tar.bz2"
echo
"Created archive:
$SCRATCH_DIR
/
${
DOWNLOAD_NAME
}
.with_unselected.tar.bz2"
ls
*
|
grep
-v
models-unselected | xargs
-I
{}
tar
-cjf
"../
${
DOWNLOAD_NAME
}
.tar.bz2"
{}
ls
-d
*
|
grep
-v
models-unselected | xargs
-I
{}
tar
-cjf
"../
${
DOWNLOAD_NAME
}
.tar.bz2"
{}
echo
"Created archive:
$SCRATCH_DIR
/
${
DOWNLOAD_NAME
}
.tar.bz2"
echo
"Created archive:
$SCRATCH_DIR
/
${
DOWNLOAD_NAME
}
.tar.bz2"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
downloads-generation/models_class1_pan/generate_hyperparameters.py
+
9
−
7
View file @
f2858cff
...
@@ -48,12 +48,14 @@ base_hyperparameters = {
...
@@ -48,12 +48,14 @@ base_hyperparameters = {
}
}
grid
=
[]
grid
=
[]
for
layer_sizes
in
[[
512
,
256
],
[
1024
,
512
],
[
1024
,
1024
]]:
for
layer_sizes
in
[[
512
,
256
],
[
512
,
512
],]:
for
l1
in
[
0.0
,
0.0001
,
0.001
,
0.01
]:
for
pretrain
in
[
True
,
False
]:
new
=
deepcopy
(
base_hyperparameters
)
for
l1
in
[
0.0
,
0.0001
,
0.001
,
0.01
]:
new
[
"
layer_sizes
"
]
=
layer_sizes
new
=
deepcopy
(
base_hyperparameters
)
new
[
"
dense_layer_l1_regularization
"
]
=
l1
new
[
"
layer_sizes
"
]
=
layer_sizes
if
not
grid
or
new
not
in
grid
:
new
[
"
dense_layer_l1_regularization
"
]
=
l1
grid
.
append
(
new
)
new
[
"
train_data
"
][
"
pretrain
"
]
=
pretrain
if
not
grid
or
new
not
in
grid
:
grid
.
append
(
new
)
dump
(
grid
,
stdout
)
dump
(
grid
,
stdout
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment