Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SENSE-PPI
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Konstantin Volzhenin
SENSE-PPI
Commits
a6c3a6aa
Commit
a6c3a6aa
authored
Nov 22, 2023
by
Konstantin Volzhenin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small changes in training args
parent
f2864b0e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
__init__.py
senseppi/__init__.py
+1
-1
train.py
senseppi/commands/train.py
+3
-5
No files found.
senseppi/__init__.py
View file @
a6c3a6aa
__version__
=
"0.6.
0
"
__version__
=
"0.6.
1
"
__author__
=
"Konstantin Volzhenin"
from
.
import
model
,
commands
,
esm2_model
,
dataset
,
utils
,
network_utils
...
...
senseppi/commands/train.py
View file @
a6c3a6aa
...
...
@@ -36,8 +36,8 @@ def main(params):
callbacks
.
append
(
pl
.
callbacks
.
EarlyStopping
(
monitor
=
"val_loss"
,
patience
=
params
.
early_stop
,
verbose
=
False
,
mode
=
"min"
))
trainer
=
pl
.
Trainer
(
accelerator
=
params
.
device
,
devices
=
params
.
num_devices
,
num_nodes
=
params
.
num_nodes
,
max_epochs
=
params
.
num_epochs
,
logger
=
logger
,
callbacks
=
callbacks
)
trainer
=
pl
.
Trainer
(
accelerator
=
params
.
device
,
num_nodes
=
params
.
num_nodes
,
max_epochs
=
params
.
num_epochs
,
logger
=
logger
,
callbacks
=
callbacks
)
trainer
.
fit
(
model
,
train_set
,
val_set
)
...
...
@@ -58,11 +58,9 @@ def add_args(parser):
help
=
"Fraction of the training data to use for validation."
)
train_args
.
add_argument
(
"--seed"
,
type
=
int
,
default
=
None
,
help
=
"Global training seed."
)
train_args
.
add_argument
(
"--num_epochs"
,
type
=
int
,
default
=
100
,
help
=
"Number of training epochs."
)
train_args
.
add_argument
(
"--num_devices"
,
type
=
int
,
default
=
1
,
help
=
"Number of devices to use for multi GPU training."
)
train_args
.
add_argument
(
"--num_nodes"
,
type
=
int
,
default
=
1
,
help
=
"Number of nodes to use for training on a cluster."
)
train_args
.
add_argument
(
"--early_stop"
,
type
=
int
,
default
=
None
,
train_args
.
add_argument
(
"--early_stop"
,
type
=
int
,
default
=
10
,
help
=
"Number of epochs to wait before stopping the training "
"(tracking is done with validation loss). By default, the is no early stopping."
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment