Loading TOC...


   $pairs as json:array,
   [$epoch-size as xs:unsignedLong]
) as cntk:schedule


Returns a minibatch size schedule. Works exactly like cntk:learning-rate-schedule-from-pairs.

$pairs A sequence of pairs of "number of epochs" and "their minibatch size". An array of array, where each inner array has length 2, and with the first element being of type xs:unsignedLong and second being of type xs:unsignedLong.
$epoch-size The epoch size. Defaults to a special sentinel value to represent the whole data sweep.


xquery version "1.0-ml";

let $pairs := json:to-array((
  json:to-array((100, 50)),
  json:to-array((200, 50)),
  json:to-array((300, 25)))
let $rs := cntk:minibatch-size-schedule-from-pairs($pairs)
return fn:replace(xdmp:quote($rs), "0x[0-9A-Za-z]*", "TrainingParameterSchedule")
=> cntk:schedule(Data Type(size_t), 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.