Loading TOC...

cntk.bernoulliRandom

cntk.bernoulliRandom(
   $shape as cntk.shape,
   $data-type as String,
   [$mean as Number],
   [$seed as (Number|String)],
   [$name as 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.bernoulliRandom(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.