Skip to content

Commit

Permalink
Merge branch 'bowen-xu:dev' into Feat_Cmd_Optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
ARCJ137442 authored Oct 31, 2023
2 parents 5dbcd54 + 87f534c commit 5372192
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 45,183 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ Tests/*.png
!pynars/utils/SparseLUT/*.pyd
lab.ipynb
.DS_Store
cache
_trash
temp

# C extensions
*.so
Expand Down
8 changes: 4 additions & 4 deletions pynars/NARS/Control/Reasoner.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@

class Reasoner:

def __init__(self, n_memory, capacity, config = './config.json') -> None:
def __init__(self, n_memory, capacity, config = './config.json', nal_rules={1,2,3,4,5,6,7,8,9}) -> None:
# print('''Init...''')
Config.load(config)

self.inference = GeneralEngine()
self.variable_inference = VariableEngine()
self.temporal_inference = TemporalEngine() # for temporal causal reasoning
self.inference = GeneralEngine(add_rules=nal_rules)
self.variable_inference = VariableEngine(add_rules=nal_rules)
self.temporal_inference = TemporalEngine(add_rules=nal_rules) # for temporal causal reasoning

self.memory = Memory(n_memory)
self.overall_experience = Buffer(capacity)
Expand Down
Loading

0 comments on commit 5372192

Please sign in to comment.