Loading TOC...

cntk:momentum-schedule-from-sequence

cntk:momentum-schedule-from-sequence(
   $momentum as xs:double*,
   [$epoch-size as xs:unsignedLong],
   [$minibatch-size as xs:unsignedLong]
) as cntk:schedule

Summary

Returns a momentum schedule, based on a sequence of momentum decay rates. Works exactly like cntk:learning-rate-schedule-from-sequence.

Parameters
$momentum A sequence of momentum.
$epoch-size The epoch size. The momentum changes every $epoch-size samples. Defaults to a special sentinel value to represent the whole data sweep.
$minibatch-size The minibatch size. Defaults to a sentinel value which means ignored. This is a "best-effort" parameter: there is no guarantee that the size of every minibatch is exactly $minibatch-size.

Example

  xquery version "1.0-ml";

  let $rs := cntk:momentum-schedule-from-sequence((5.6, 6.7, 7.8, 2.5, 9.4))
  return fn:replace(xdmp:quote($rs), "0x[0-9A-Za-z]*", "TrainingParameterSchedule")
  => cntk:schedule(Data Type(double), Mini Batch Size(0), Sweep Based(true), Full Data Sweep(0), Current Version(2))

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.