Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SampleChanceNode ¶
func SampleChanceNode(node cfr.GameTreeNode) (cfr.GameTreeNode, float64)
Sample one child of the given Chance node, according to its probability distribution.
Types ¶
type AverageStrategyParams ¶
type AverageStrategySampler ¶
type AverageStrategySampler struct {
// contains filtered or unexported fields
}
AverageStrategySampler implements cfr.Sampler by sampling some player actions according to the current average strategy strategy.
func NewAverageStrategySampler ¶
func NewAverageStrategySampler(params AverageStrategyParams) *AverageStrategySampler
func (*AverageStrategySampler) Sample ¶
func (as *AverageStrategySampler) Sample(node cfr.GameTreeNode, pol cfr.NodePolicy) []float32
type ExternalSampler ¶
type ExternalSampler struct {
// contains filtered or unexported fields
}
ExternalSampler implements cfr.Sampler by sampling all player actions.
func NewExternalSampler ¶
func NewExternalSampler() *ExternalSampler
func (*ExternalSampler) Sample ¶
func (es *ExternalSampler) Sample(node cfr.GameTreeNode, policy cfr.NodePolicy) []float32
type MultiOutcomeSampler ¶
type MultiOutcomeSampler struct {
// contains filtered or unexported fields
}
MultiOutcomeSampler implements cfr.Sampler by sampling at most k player actions with probability according to the current strategy.
func NewMultiOutcomeSampler ¶
func NewMultiOutcomeSampler(k int, explorationEps float32) *MultiOutcomeSampler
func (*MultiOutcomeSampler) Sample ¶
func (os *MultiOutcomeSampler) Sample(node cfr.GameTreeNode, policy cfr.NodePolicy) []float32
type OutcomeSampler ¶
type OutcomeSampler struct {
// contains filtered or unexported fields
}
OutcomeSampler implements cfr.Sampler by sampling one player action according to the current strategy.
func NewOutcomeSampler ¶
func NewOutcomeSampler(explorationEps float32) *OutcomeSampler
func (*OutcomeSampler) Sample ¶
func (os *OutcomeSampler) Sample(node cfr.GameTreeNode, policy cfr.NodePolicy) []float32
type RobustSampler ¶
type RobustSampler struct {
// contains filtered or unexported fields
}
RobustSampler implements cfr.Sampler by sampling a fixed number of actions uniformly randomly.
func NewRobustSampler ¶
func NewRobustSampler(k int) *RobustSampler
func (*RobustSampler) Sample ¶
func (rs *RobustSampler) Sample(node cfr.GameTreeNode, policy cfr.NodePolicy) []float32
Click to show internal directories.
Click to hide internal directories.