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
b73cbabe
Commit
b73cbabe
authored
Aug 02, 2023
by
Konstantin Volzhenin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0.2.0 minor bugfix in tqdm
parent
b3efe4de
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
train.py
senseppi/commands/train.py
+2
-2
No files found.
senseppi/commands/train.py
View file @
b73cbabe
import
pytorch_lightning
as
pl
import
pytorch_lightning
as
pl
from
pytorch_lightning.callbacks
import
ModelCheckpoint
from
pytorch_lightning.callbacks
import
ModelCheckpoint
,
TQDMProgressBar
import
pathlib
import
pathlib
import
argparse
import
argparse
from
..utils
import
*
from
..utils
import
*
...
@@ -29,7 +29,7 @@ def main(params):
...
@@ -29,7 +29,7 @@ def main(params):
logger
=
None
logger
=
None
callbacks
=
[
callbacks
=
[
# TQDMProgressBar(refresh_rate=2
50),
TQDMProgressBar
(
refresh_rate
=
50
),
ModelCheckpoint
(
filename
=
'chkpt_loss_based_{epoch}-{val_loss:.3f}-{val_BinaryF1Score:.3f}'
,
verbose
=
True
,
ModelCheckpoint
(
filename
=
'chkpt_loss_based_{epoch}-{val_loss:.3f}-{val_BinaryF1Score:.3f}'
,
verbose
=
True
,
monitor
=
'val_loss'
,
mode
=
'min'
,
save_top_k
=
1
)
monitor
=
'val_loss'
,
mode
=
'min'
,
save_top_k
=
1
)
]
]
...
...
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