| … | … | @@ -141,6 +141,11 @@ if __name__ == "__main__": |
| 141 | 141 | # Log all parameters of cag, useful for debugging |
| 142 | 142 | cag.log_parameters(level="debug") |
| 143 | 143 | |
| 144 | # Uncomment to load previously saved percepta or cogscms |
| 145 | # atomspaces. |
| 146 | # cag.load_cogscms_atomspace("chase_cogscms_atomspace.scm") |
| 147 | # cag.load_percepta_atomspace("chase_percepta_atomspace.scm") |
| 148 | |
| 144 | 149 | # Training/learning loop |
| 145 | 150 | lt_iterations = 2 # Number of learning-training iterations |
| 146 | 151 | lt_period = 200 # Duration of a learning-training iteration |
| … | … | @@ -179,3 +184,7 @@ if __name__ == "__main__": |
| 179 | 184 | agent_log_atomspace(cag.percepta_atomspace, "fine", "cag.percepta_atomspace") |
| 180 | 185 | agent_log_atomspace(cag.cogscms_atomspace, "fine", "cag.cogscms_atomspace") |
| 181 | 186 | agent_log_atomspace(cag.working_atomspace, "fine", "cag.working_atomspace") |
| 187 | |
| 188 | # Uncomment to save percepta or cogscms atomspaces |
| 189 | # cag.save_percepta_atomspace("chase_percepta_atomspace.scm") |
| 190 | # cag.save_cogscms_atomspace("chase_cogscms_atomspace.scm") |