Skip to content

Instantly share code, notes, and snippets.

@PtrMan
PtrMan / Propabilistic learner prototype.cpp
Created May 24, 2016 08:19
Propabilistic learner prototype
#include <cassert>
// the idea of this algorithm to have a bag like in nars with actions, the number of elements is limited globally (AIKR)
// learned action sequences common between different tasks can be easily mined by just comparing the action sequences
// after we did A with a propability we do B with another
// A --> B
typedef unsigned uint;
typedef double PropabilityType;
Principles of mind - are just jet another abstraction
tick tock evolution
Mutation mutation test test test
all systems go
and the mental limits fall
@PtrMan
PtrMan / ThreeValuedLogic.cpp
Created June 9, 2016 13:08
C++ AI this and that
#include <cstddef>
// https://en.wikipedia.org/wiki/Three-valued_logic
enum class EnumThreeValue {
FALSE = 0,
UNKNOWN,
TRUE
};
{"hidden_sizes":[40,40,20],"generator":"lstm","letter_size":5,"model":{"Wil":{"n":51,"d":5,"w":{"0":-0.07390524075037441,"1":-1.5387588479776086,"2":3.2834829935291974,"3":-0.4474779377243829,"4":1.9446100411991087,"5":0.32386535760060664,"6":-1.6236259245782036,"7":0.26260381805467203,"8":0.7423810923366609,"9":-0.27351200562023564,"10":-1.8809339793048205,"11":-0.09538343299046291,"12":-0.09609530168667182,"13":-0.49007020745735497,"14":0.22290742862941942,"15":-0.19017682891454096,"16":-1.9033220594096762,"17":0.3461658332257821,"18":0.8216239001301888,"19":-0.8810993498152272,"20":-1.9272994726816144,"21":1.0564234561869796,"22":-0.07115039293745964,"23":1.7394439331478373,"24":-0.006596696210626914,"25":-3.066217305724523,"26":-0.742640840133094,"27":-1.180166016034759,"28":1.9085656861169973,"29":-1.4648213514480641,"30":-1.1721132214292043,"31":-2.071388596161038,"32":-0.5758514343258373,"33":-0.9395265551991995,"34":0.5340743672160413,"35":0.5952442229315351,"36":-4.889363564890604,"37":-3.93237478088
@PtrMan
PtrMan / seriously.md
Created July 13, 2016 08:11
Aldidingolongeling.md
@PtrMan
PtrMan / AC100.md
Last active July 14, 2016 08:57
AC100.md
@PtrMan
PtrMan / D cheatsheet.md
Last active September 14, 2019 08:44
D cheatsheet
# idea after the techniques used by ai one
class HeapElement(object):
def __init__(self):
# needed?
self.LeafData = None # if it is the leaf, then this is the leaf data (a boolean or a bit), else it can be none
self.Left = None # if LeafData = None -> must be Index Of Heap Element
self.Right = None # this is a bool or a char on the right side
#self.NumberOfLeftBits = None # not needed?
self.OccurrenceCounter = 0