sampleFromOutput: Sample from a distribution

View source: R/mixtureDensityUtilities.R

sampleFromOutputR Documentation

Sample from a distribution

Description

Ported from:

Usage

sampleFromOutput(
  parameters,
  outputDimension,
  numberOfMixtures,
  temperature = 1,
  sigmaTemperature = 1
)

Arguments

parameters

vector parameter to split

outputDimension

output dimension

numberOfMixtures

number of mixture components

temperature

the temperature for to adjust the distribution (default 1.0), passed to mixture_density_network_softmax

sigmaTemperature

multipler to sigma from the output of sampleFromCategoricalDistribution

Details

    https://github.com/cpmpercussion/keras-mdn-layer/

Value

a single sample

Author(s)

Tustison NJ

Examples


library( keras )



ANTsX/ANTsRNet documentation built on Nov. 21, 2024, 4:07 a.m.