Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LC-MS-RT-prediction
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Léo Schneider
LC-MS-RT-prediction
Commits
99827cc8
Commit
99827cc8
authored
6 months ago
by
Schneider Leo
Browse files
Options
Downloads
Patches
Plain Diff
datasets
parent
396a7989
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
data_viz.py
+4
-4
4 additions, 4 deletions
data_viz.py
main_ray_tune.py
+7
-7
7 additions, 7 deletions
main_ray_tune.py
with
11 additions
and
11 deletions
data_viz.py
+
4
−
4
View file @
99827cc8
...
...
@@ -275,12 +275,12 @@ def add_length(dataframe):
dataframe
[
'
length
'
]
=
dataframe
[
'
seq
'
].
map
(
fonc
)
df
=
pd
.
read_csv
(
'
output/out_
common_
ISA_augmented_
10
_eval.csv
'
)
df
=
pd
.
read_csv
(
'
output/out_ISA_augmented_
2_align
_eval.csv
'
)
add_length
(
df
)
df
[
'
abs_error
'
]
=
np
.
abs
(
df
[
'
rt pred
'
]
-
df
[
'
true rt
'
])
histo_abs_error
(
df
,
display
=
False
,
save
=
True
,
path
=
'
fig/custom model res/histo_SA_augmented_
10
_eval.png
'
)
scatter_rt
(
df
,
display
=
False
,
save
=
True
,
path
=
'
fig/custom model res/RT_pred_SA_augmented_
10
_eval.png
'
,
color
=
True
)
histo_length_by_error
(
df
,
bins
=
10
,
display
=
False
,
save
=
True
,
path
=
'
fig/custom model res/histo_length_SA_augmented_
10
_eval.png
'
)
histo_abs_error
(
df
,
display
=
False
,
save
=
True
,
path
=
'
fig/custom model res/histo_
I
SA_augmented_
2_align
_eval.png
'
)
scatter_rt
(
df
,
display
=
False
,
save
=
True
,
path
=
'
fig/custom model res/RT_pred_
I
SA_augmented_
2_align
_eval.png
'
,
color
=
True
)
histo_length_by_error
(
df
,
bins
=
10
,
display
=
False
,
save
=
True
,
path
=
'
fig/custom model res/histo_length_
I
SA_augmented_
2_align
_eval.png
'
)
#
# df = pd.read_csv('output/out_common_ISA_augmented_3_eval.csv')
# add_length(df)
...
...
This diff is collapsed.
Click to expand it.
main_ray_tune.py
+
7
−
7
View file @
99827cc8
...
...
@@ -277,17 +277,17 @@ def main(args, gpus_per_trial=1):
# "batch_size": tune.choice([1024]),
# }
config
=
{
"
encoder_num_layer
"
:
tune
.
choice
([
2
,
4
,
8
]),
"
decoder_rt_num_layer
"
:
tune
.
choice
([
2
,
4
,
8
]),
"
decoder_int_num_layer
"
:
tune
.
choice
([
1
]),
"
encoder_num_layer
"
:
tune
.
choice
([
2
]),
"
decoder_rt_num_layer
"
:
tune
.
choice
([
1
]),
"
decoder_int_num_layer
"
:
tune
.
choice
([
1
,
2
,
4
]),
"
embedding_dim
"
:
tune
.
choice
([
16
,
64
]),
"
encoder_ff
"
:
tune
.
choice
([
512
,
1024
,
2048
]),
"
decoder_rt_ff
"
:
tune
.
choice
([
512
,
1024
,
2048
]),
"
decoder_int_ff
"
:
tune
.
choice
([
512
]),
"
encoder_ff
"
:
tune
.
choice
([
2048
]),
"
decoder_rt_ff
"
:
tune
.
choice
([
2048
]),
"
decoder_int_ff
"
:
tune
.
choice
([
512
,
1024
,
2048
]),
"
n_head
"
:
tune
.
choice
([
1
,
2
,
4
,
8
,
16
]),
"
drop_rate
"
:
tune
.
choice
([
0.25
]),
"
lr
"
:
tune
.
loguniform
(
1e-4
,
1e-2
),
"
batch_size
"
:
tune
.
choice
([
4096
]),
"
batch_size
"
:
tune
.
choice
([
1024
,
2048
,
4096
]),
"
activation
"
:
tune
.
choice
([
'
relu
'
,
'
gelu
'
]),
"
norm_first
"
:
tune
.
choice
([
True
,
False
]),
}
...
...
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