Loading TOC...

cntk:bernoulli-random

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

Summary

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

Parameters
$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.

Example

  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.