Documentation ¶
Index ¶
- type Policy
- func (p *Policy) AddRegret(w float32, samplingQ, instantaneousRegrets []float32)
- func (p *Policy) AddStrategyWeight(w float32)
- func (p *Policy) CombineData(np *Policy)
- func (p *Policy) GetAverageStrategy() []float32
- func (p *Policy) GetBaseline() []float32
- func (p *Policy) GetStrategy() []float32
- func (p *Policy) GetStrategySum() []float32
- func (p *Policy) IsEmpty() bool
- func (p *Policy) MarshalBinary() ([]byte, error)
- func (p *Policy) NextStrategy(discountPositiveRegret, discountNegativeRegret, discountstrategySum float32)
- func (p *Policy) NumActions() int
- func (p *Policy) SetStrategy(strat []float32)
- func (p *Policy) UnmarshalBinary(buf []byte) error
- func (p *Policy) UpdateBaseline(w float32, action int, value float32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Policy ¶
type Policy struct {
// contains filtered or unexported fields
}
Policy implements cfr.NodePolicy by keeping a table of accumulated regrets and strategies.
func (*Policy) AddStrategyWeight ¶
func (*Policy) CombineData ¶
func (*Policy) GetAverageStrategy ¶
func (*Policy) GetBaseline ¶
func (*Policy) GetStrategy ¶
func (*Policy) GetStrategySum ¶
func (*Policy) MarshalBinary ¶
MarshalBinary implements encoding.BinaryMarshaler.
func (*Policy) NextStrategy ¶
func (*Policy) NumActions ¶
func (*Policy) SetStrategy ¶
func (*Policy) UnmarshalBinary ¶
UnmarshalBinary implements encoding.BinaryUnmarshaler.
Click to show internal directories.
Click to hide internal directories.