Closed ntoxeg closed 2 years ago
@ngeiswei 🔔
Rebuilding my Docker images as PLN now needs spacetime
and I had to adjust the build order for that.
Thanks @ntoxeg
@ntoxeg, I've got the feeling that OpencogAgent.log_level
isn't used anywhere. If so, unless you intend to have it used somewhere, I'd like to remove it. Let me know.
I also don't understand why you construct the atomspace outside of OpencogAgent construction. For instance I want to introduce multiple atomspaces, one containing percepta, another one containing cognitive schematics and a third one for working memory, it makes little sense to construct them outside of OpencogAgent, especially given that the user can always access them via OpencogAgent attributes.
So unless you can rationalize that decision I'm gonna move atomspace construction back inside OpencogAgent.
So unless you can rationalize that decision
OK, I get it, it's because the action space requires an atomspace, isn't it? Otherwise the example agent constructs an atomspace that is different than that constructed inside OpencogAgent.
I need to think more about it now.
My current decision is to keep the atomspace constructed outside of OpencogAgent as working atomspace, and construct percepta and cognitive schematics atomspaces inside OpencogAgent. It requires a minimal amount of change and will not alter the current API. We may decide to alter the API later on, but it does not have to be today.
So unless you can rationalize that decision
OK, I get it, it's because the action space requires an atomspace, isn't it? Otherwise the example agent constructs an atomspace that is different than that constructed inside OpencogAgent.
I need to think more about it now.
Yes, my primary intention there was to deal somehow with potentially ambiguous AtomSpace allocation and ownership.
I guess one simple change could be to not have an AtomSpace for the action space, as it doesn’t seem to be really needed, of course that means that the agent itself has to add necessary info to its own AtomSpace.
This adds the notebook for CartPole learning from the WIP PR that I will close, so that the intermediate results are available to all.
Additionally, a I did a bunch of refactoring:
done
fromstep
instead of its negation for some reason.step
of wrappers. (just invokerender
in the training loop)