Skip to content

Instantly share code, notes, and snippets.

@sir-deenicus
sir-deenicus / Least Unique Integer Output
Created September 13, 2017 05:39
Regret Minimization on Least Unique Integer Game
Attempt at Nash
GUESS STRATEGY
Move | Move Probability
---- | ----------------
0 | 0.501
1 | 0.251
2 | 0.125
3 | 0.063
@sir-deenicus
sir-deenicus / cfr.fsx
Created September 13, 2017 23:21
Simple Counter-factual regret minimization example
open Prelude.Common
open System
open Prelude.Math
open Prelude
open SimpleTrees
type Node = {
regretSum : double [] ;
strategySum : double [];
}
@sir-deenicus
sir-deenicus / #Probabilistic Programming in the Browser.md
Last active December 29, 2018 18:14
Discrete Probability Monad with F# computation Expressions that runs in Fable.

Discrete Probability Monad with F# computation Expressions that runs in Fable

Copy and paste each part in turn into http://fable.io/repl/. Probabilistic programming part should start around line 220. Should be compatible with almost everything in http://greenteapress.com/wp/think-bayes/

Also provides text histogram plots!