0
$\begingroup$

The textbook Deep Learning by Goodfellow, Bengio, and Courville can be viewed in individual html chapters here.

I'm currently reading Chapter 15 on Representation Learning and saw this for algorithm 15.1 on page 530:

Page 530

There no condition after end for and similarly no end condition for end if. Is that intentional? If so, what is the correct way to interpret it? I haven't encountered algorithm syntax like this in the past.

$\endgroup$
0
3
$\begingroup$

There is no industry standard for psuedocode as it is read by humans (for the moment ;) and the author can decide how best to represent the concepts of the algorithm with the aim of balancing precision and understandability. In this case there is a

FOR ... END FOR

block which is iterated over k for 1 to m. And an

IF ... END IF

block that is run if fine-tuning evaluates to true.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.