OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-agents commits / cc9770d

Use block comments
cc9770d98f2b589863d4805de71df2e5166cdc18
by Linas Vepštas <linasvepstas@gmail.com> · 2024-05-03T18:53:24.000Z

Changed files (2) +18 -7

scm/pair-agent/README.md +9 -0
……@@ -63,6 +63,12 @@ It seems to be slow, presumably due to the huge number of scheme/C++
6363transitions. To validate this, need to run a pair-count-hacked
6464experiment, and actually measure.
6565
66The `add-storage-count` API fetches counts from storage, if not in
67atomspace. This needs to be used instead of the `SetValue` default.
68It implements atomic update.
69
70There's also a marginal counter, but its unusued...
71
6672### TODO/Open issues
6773Some unresolved issues.
6874* Parser wants strings as `Node`s; it would be nice to be able to work
……@@ -80,3 +86,6 @@ Some unresolved issues.
8086 that this resembles a generic fold. The alternative to this is a
8187 `AtomicSetValueLink` which holds a lock to make sure the update is
8288 atomic. The risk is that naive users will discover deadlocks. Hmmm.
89* There lready is a `FetchValueOf` but it needs to be fixed to take
90 default, just like `ValueOf`
91* Need a 'count-key etc. comparable to matrix API
scm/pair-agent/count-agent.scm +9 -7
……@@ -158,13 +158,15 @@
158158; (obs-file "/tmp/demo.txt")
159159;
160160; Look at results. Poke around, look at counts.
161; (cog-report-counts)
162; (cog-execute! (ValueOf (Word "is") (Predicate "count")))
163; (cog-execute! (ValueOf
164; (Edge (Bond "ANY") (List (Word "is") (Word "a")))
165; (Predicate "count")))
166;
161#|
162(cog-report-counts)
163(cog-execute! (ValueOf (Word "is") (Predicate "count")))
164(cog-execute! (ValueOf
165 (Edge (Bond "ANY") (List (Word "is") (Word "a")))
166 (Predicate "count")))
167
167168; Erase all words, so we can try again.
168; (extract-type 'WordNode)
169(extract-type 'WordNode)
170|#
169171
170172; --------------------------