Last active
December 10, 2018 05:05
-
-
Save marty1885/ec9f386df3ba8e9ac643300b17f83248 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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