OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-matrix commits / d4d85b4

Finish with the base class redesign
d4d85b448df0e60b0548d8634fa71a9f9ec762be
by Linas Vepštas <linasvepstas@gmail.com> · 2025-02-01T20:58:48.000Z

Changed files (1) +19 -2

design/Design-similarity.md +19 -2
……@@ -78,7 +78,8 @@ the `add-pair-stars` API, which, given the above, adds decorations
7878that almost all otherlayers above need. These are:
7979
8080 7) Lists of the left and right basis elements. The left basis is the
81 set. `{x | (x,y) exists in the atomspace for some y}`
81 set. `{x | (x,y) exists in the atomspace for some y}` (Provided by
82 the `'left-basis` and `'right-basis` methods.)
8283 8) Size of the left and right basis
8384 9) True/false membership predicates: does an Atom appear in the left
8485 or right basis set? (These are provided by the `'in-left-basis?`
……@@ -232,4 +233,20 @@ Item (8): Use SizeOfLink
232233
233234Item (9): Does not appear to be used anywhere in the code.
234235
235Item (10)
236Item (10): ... Almost unused; the `learn` code uses this in one place
237for set subtraction, and another place for agglomerative MI.
238
239### Conclusion
240Simply using the `QueryLink` and caching the rewrite results is
241sufficient for use to replace the parametric polymorphism base design.
242Nothing more needs to be done, here. (Except possibly more testing,
243and moving the search result keys to the rewrites from the query
244itself.)
245
246Compute processing
247------------------
248The matrix code has two parts: first, the specification of the base
249matrix, and second, the computation of the assorted similarity measures,
250given the base matrix.
251
252The above deals with the base. What about the similarities?