Commit Graph
146 Commits
Author SHA1 Message Date
LSaldyt 4388bede7d Removes old tests 2017-11-18 18:30:55 -07:00
LSaldyt 9c47615c5a Fixes issues with variable initialization order 2017-11-18 18:30:23 -07:00
LSaldyt ee483851d8 Creates normal science backport 2017-11-18 18:25:24 -07:00
alex 1b84b22e3f seems like the bug is in the sameness group or something very close to it 2017-09-28 01:18:13 -03:00
alex 1cc18e75bd something is rotten somewhere 2017-09-28 00:54:07 -03:00
alex 29b5987c4f ...and bingo! 2017-09-28 00:46:19 -03:00
alex 9781e3ceed addtl testing... 2017-09-28 00:42:30 -03:00
alex 4b1518a1af xyz? 2017-09-27 23:11:56 -03:00
alex 3c8b21140d Experiments to refer to Lucas 2017-09-27 22:37:38 -03:00
alex 75df81c8fd Experiments for Lucas email.
Merge branch 'master' of https://github.com/Alex-Linhares/co.py.cat
2017-09-27 22:33:54 -03:00
alex 5605417e31 Preparing for refactor 2017-09-27 22:33:20 -03:00
alex b547306376 Preparing for refactor 2017-09-27 20:48:27 -03:00
Alexandre Linhares a0048d16b5 Delete copycat.log 2017-09-27 20:34:31 -03:00
alex 02558289ad Preparing for refactor 2017-09-27 20:32:54 -03:00
Alexandre Linhares a564e43dff Preparing for refactor 2017-09-27 20:00:02 -03:00
Alexandre Linhares 120aa3a293 Merge branch 'master' of https://github.com/Alex-Linhares/co.py.cat 2017-09-27 16:02:39 -03:00
Alexandre Linhares 51e4ba64e2 Created simple jupyter notebook 2017-09-27 16:02:34 -03:00
alex 27bbc6118e Preparing for refactor... 2017-09-26 22:47:09 -03:00
alex 7ff0488861 Merge branch 'master' of https://github.com/Alex-Linhares/co.py.cat 2017-09-25 22:33:10 -03:00
Alexandre Linhares 0905d35680 start work om distributed decision making 2017-09-25 22:32:57 -03:00
Alexandre Linhares 36a1a31fe2 Update README.md 2017-09-07 19:26:10 -03:00
Alexandre Linhares 0a54c0ee83 Update README.md 2017-09-06 16:06:58 -03:00
Alexandre Linhares 729f6ec30c Merge branch 'master' of https://github.com/Alex-Linhares/co.py.cat 2017-08-28 00:02:46 -03:00
Alexandre Linhares b5e35a35dd Found entry points for the research project 2017-08-28 00:02:34 -03:00
Alexandre Linhares 8611e415de Update README.md 2017-08-27 23:33:52 -03:00
Alexandre Linhares 67c87c7fde Update README.md 2017-08-27 23:28:41 -03:00
Alexandre Linhares cc58c8d50a Merge pull request #1 from LSaldyt/master
Ports to Python3
2017-08-27 12:37:36 -03:00
Alexandre Linhares 2cdb9bbb36 Update README.md 2017-08-27 12:30:12 -03:00
Alexandre Linhares 197bbd361e Update README.md 2017-08-27 12:29:47 -03:00
LSaldyt bc848e8f2d Ports to Python3 2017-07-31 17:08:26 -06:00
Arthur O'Dwyer 318d0e2349 Fix a lot of crashes with empty or single-letter inputs. 2017-05-03 02:01:57 -07:00
Arthur O'Dwyer 2a48245c15 Add "frames per second" to the CursesReporter.
You can now set the FPS goal with `--fps=10` (or whatever) on the command line;
and the current (measured) FPS is displayed in the lower right corner.

During the run, you can bump the FPS goal up and down with `F` and `f` respectively!
2017-05-02 18:37:40 -07:00
Arthur O'Dwyer 0eec6a5259 Massively improve CursesReporter.
The Slipnet itself turns out to be boring to look at.
More interest is found in the Workspace structures, such as bonds,
groups, and correspondences.

The old behavior of `curses_main.py` is still accessible via

    python curses_main.py abc abd xyz --focus-on-slipnet
2017-05-02 18:01:46 -07:00
Arthur O'Dwyer ef4a9c56c5 Try to fix up breakGroup.
With the new CursesReporter, I'm able to observe groups getting built
and broken; and I observed that sometimes a Bond (between a Letter and
a Group) would apparently survive the Group's breaking.
Reorder the operations in `breakGroup` so that the higher-level ones
("detach this Group from its external bonds") come strictly before
the lower-level ones ("ungroup this Group's members and remove this
Group from the Workspace, thus destroying it").

However, the "buggy" behavior I observed turned out to be due to a bug
in my display code and not due to anything wrong with `breakGroup`.
I suspect this patch is actually purely cosmetic.
2017-05-02 17:46:25 -07:00
Arthur O'Dwyer 730239f464 Rip out dead Bond.destinationIsOnRight and Bond.bidirectional. NFC. 2017-05-02 12:37:15 -07:00
Arthur O'Dwyer 5793fb887c Rip out dead method morePossibleDescriptions. NFC.
This code is already present in `getPossibleDescriptions`... which is
also a terrible function from the philosophical point of view, because
it secretly encodes knowledge about every predicate known to the system.
2017-05-02 11:33:43 -07:00
Arthur O'Dwyer 864c28609c Smartness update! A single letter is both "leftmost" and "rightmost".
Before this change, Copycat was unable to formulate more than the empty rule for
    abc : abd :: f : f
    abc : dbc :: f : f
    abc : aac :: f : f
After this change, Copycat strongly prefers
    abc : abd :: f : g  ("Replace the rightmost letter with its successor")
    abc : dbc :: f : d  ("Replace the leftmost letter with d")
    abc : aac :: f : e  ("Replace the middle letter with its predecessor")
2017-05-02 11:17:23 -07:00
Arthur O'Dwyer ecc2c2e407 Add report_workspace() to Reporter, and remove dead rules from the workspace.
I think the change to `workspace.breakRule()` is harmless. In theory, it
should make Copycat less hesitant to come up with rules that conflict with
the already-broken rule.
2017-05-01 15:28:38 -07:00
Arthur O'Dwyer 25d73785de Further Pythonicity. NFC. 2017-05-01 13:07:19 -07:00
Arthur O'Dwyer ceaf640147 Remove some more logging cruft. NFC. 2017-04-30 15:26:19 -07:00
Arthur O'Dwyer c4e30f7399 Make possibleGroupBonds into a member function of Bond. NFC. 2017-04-30 15:18:19 -07:00
Arthur O'Dwyer 7947e955d7 More Pythonicisms. NFC. 2017-04-30 14:45:20 -07:00
Arthur O'Dwyer ddfb34973d Rip out unused coderack.postings and coderack.runCodelets. NFC. 2017-04-30 10:38:42 -07:00
Arthur O'Dwyer f9fc255151 Refactor coderack.probabilityOfPosting. NFC. 2017-04-30 10:27:55 -07:00
Arthur O'Dwyer 48c45e4b0a Fix more flake8 cruft; remove a bunch of logging. 2017-04-29 15:55:54 -07:00
Arthur O'Dwyer c9bc26e03d Minor Pythonicisms. NFC. 2017-04-29 14:29:43 -07:00
Arthur O'Dwyer 11e9571ee0 Oops, add Reporter to the list of exported names. 2017-04-23 01:36:40 -07:00
Arthur O'Dwyer 34157be1f9 Shorten the setup.py for the copycat module. NFC. 2017-04-22 22:46:22 -07:00
Arthur O'Dwyer 9a2a1d6010 Add the Slipnet to the curses reporter.
This isn't terribly useful to the human observer, actually.
It seems like the most useful factors that ought to be displayed
are really the groups/bonds in the workspace and the current
"rule" (if any). Particularly, with the current design of Copycat,
it seems like the "rule" should be part of the displayed output
just the same as the modified target string.
2017-04-22 19:00:57 -07:00
Arthur O'Dwyer 16aae98c59 Fix a bunch of flake8 spam. NFC. 2017-04-22 18:41:48 -07:00