Loading TOC...

cntk:ada-grad-learner

cntk:ada-grad-learner(
   $parameters as cntk:parameter*,
   $lr as cntk:schedule,
   [$need-ave-multiplier as xs:boolean],
   [$alo as map:map]
) as cntk:schedule

Summary

Constructs an AdaGrad learner.

Parameters
$parameters
$lr Learning rate schedule.
$need-ave-multiplier
$alo Additional learning options.

Example

  xquery version "1.0-ml";

  let $shape := (3, 3, 3)
  let $parameter1 := cntk:parameter(cntk:shape($shape), "float", cntk:he-normal-initializer(5.5, 1), cntk:cpu(), "parameter1")
  let $parameter2 := cntk:parameter-from-value(cntk:value(cntk:shape($shape), json:to-array((1 to 27)), cntk:cpu(), "float", fn:false()), "parameter2")
  let $parameter3 := cntk:parameter-from-scalar(cntk:shape($shape), "float", 5.5, cntk:cpu(), "parameter3")
  let $lr := cntk:learning-rate-schedule-from-constant(0.01, 100)
  let $learner := cntk:ada-grad-learner(($parameter1, $parameter2, $parameter3), $lr)
  return fn:replace(xdmp:quote($learner), "0x[0-9A-Za-z]*", "Learner")
  => cntk:learner(Name(cntk:learner))

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