Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lozac'h Loic
otbtf
Commits
5c0ec1a9
Commit
5c0ec1a9
authored
Jul 31, 2018
by
remi cresson
Browse files
ENH: number of epochs starts from 1
parent
98510d96
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/otbTensorflowModelTrain.cxx
View file @
5c0ec1a9
...
...
@@ -429,7 +429,7 @@ public:
// Train the model
for
(
int
epoch
=
0
;
epoch
<
GetParameterInt
(
"training.epochs"
)
;
epoch
++
)
{
AddProcess
(
m_TrainModelFilter
,
"Training epoch #"
+
std
::
to_string
(
epoch
));
AddProcess
(
m_TrainModelFilter
,
"Training epoch #"
+
std
::
to_string
(
epoch
+
1
));
m_TrainModelFilter
->
Update
();
}
...
...
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