Loading TOC...


   $shape as cntk:shape,
   $data-type as xs:string,
   [$mean as xs:double],
   [$seed as xs:unsignedLong],
   [$name as xs:string]
) as cntk:function


Create an instance of a Bernoulli random operation. This produces random numbers with the specified shape (no dynamic axes), distributed according to the Bernoulli distribution with the specified success probability

$shape Shape of the output (entries are independent random draws).
$data-type Data type.
$mean Success probability.
$seed Pseudo random number generator seed (default: automatically select a unique seed).
$name The name of the function instance in the network.


  cntk:bernoulli-random(cntk:shape(200), "float", .9272876928090242, 11637007496905038356, "M7p ")
  => cntk:function(Composite RandomDistribution ())

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