* This is an extended version of the paper presented at SE-THEMOS
workshop at ACII 2019 in Cambridge England. Version 2 and 3 of this article
added sections on reinforcement learning(2.6 and 5.6), and a section on
neuroscience and the relation between cognition and affect (2.4) Access Paper or Ask Questions