Skip to content

Instantly share code, notes, and snippets.

@marty1885
Last active December 10, 2018 05:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marty1885/ec9f386df3ba8e9ac643300b17f83248 to your computer and use it in GitHub Desktop.
Save marty1885/ec9f386df3ba8e9ac643300b17f83248 to your computer and use it in GitHub Desktop.
xt::xarray<float> compute(int last_oppo_move, bool learn = true)
{
auto out = tm.compute(encode(last_oppo_move), true); //true means enable learning
return categroize(3, ENCODE_WIDTH, out); //Convert from SDR to properablity distribution
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment