Back to godoc.org

Package random

v0.7.1
Latest Go to latest

The highest tagged major version is .

Published: today | License: MIT | Module: github.com/c-bata/goptuna

Index

func ArgMaxMultinomial

func ArgMaxMultinomial(pvals []float64) (int, error)

ArgMaxMultinomial returns the index sampled by multinomial distribution with given probabilities.

func Multinomial

func Multinomial(n int, pvals []float64, size int) [][]int

Multinomial draw samples from a multinomial distribution like numpy.random.multinomial. See https://docs.scipy.org/doc/numpy-1.15.0/reference/generated/numpy.random.multinomial.html

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier