Coder Social home page Coder Social logo

co.py.cat's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

co.py.cat's Issues

Basic installation/running instructions?

Hello,

I was hoping you could provide some basic installation instructions on github for co.py.cat? With details like if any files need to be changed slightly for running on a different system than yours, or on say linux? As well as which file to start co.py.cat etc. Oh and some sort of description as to what copycat does, would probably be good for people finding it. although I know it is based on Douglas Hofstadter's Copycat, so maybe just a wikipedia link to it would suffice.

Sorry, I do have Python 3 (although I assume this is in Python 2.7) experience it has just been a little while now and I've forgotten a good portion of it, again.

Anyway thanks.

Trouble compiling

I'm having trouble compiling this under either Python 2.7 or 3.4. What is the intended python setup?

Here are the error messages:

$ C:/Python34/python main.py abc abd ijk
Traceback (most recent call last):
File "main.py", line 6, in
import copycat
File "C:\Users\Owner\Dropbox\CS\AI\FARG\co.py.cat\copycat\copycat.py", line 49
print "%d: %s" % (coderack.codeletsRun, answer)
^
SyntaxError: invalid syntax

$ C:/Python27/python main.py abc abd ijk
Traceback (most recent call last):
File "main.py", line 21, in
sys.exit(main(sys.argv[0], sys.argv[1:]))
File "main.py", line 13, in main
copycat.run(initial, modified, target)
File "C:\Users\Owner\Dropbox\CS\AI\FARG\co.py.cat\copycat\copycat.py", line 58, in run
runTrial()
File "C:\Users\Owner\Dropbox\CS\AI\FARG\co.py.cat\copycat\copycat.py", line 44, in runTrial
lastUpdate = mainLoop(lastUpdate)
File "C:\Users\Owner\Dropbox\CS\AI\FARG\co.py.cat\copycat\copycat.py", line 32, in mainLoop
coderack.chooseAndRunCodelet()
File "C:\Users\Owner\Dropbox\CS\AI\FARG\co.py.cat\copycat\coderack.py", line 285, in chooseAndRunCodelet
self.run(codelet)
File "C:\Users\Owner\Dropbox\CS\AI\FARG\co.py.cat\copycat\coderack.py", line 355, in run
method()
File "C:\Users\Owner\Dropbox\CS\AI\FARG\co.py.cat\copycat\codeletMethods.py", line 317, in replacement_finder
0: slipnet.sameness,
AttributeError: 'module' object has no attribute 'sameness'

Also Scott Boland's site is down. Could you make a copy of his code available?

More pythonic

Should at least be PEP-8 compliant. Pylint-clean would be nice (but lets not get too fussy)

Less evidence of the java roots - get rid of the getters and setters

When I run it I get an error message

Stack trace:

$ python main.py abc abd ijk
Traceback (most recent call last):
  File "main.py", line 31, in <module>
    sys.exit(main(sys.argv[0], sys.argv[1:]))
  File "main.py", line 21, in main
    answers = copycat.run(initial, modified, target, iterations)
  File "/home/phil/sproj/co.py.cat/copycat/copycat.py", line 60, in run
    runTrial(answers)
  File "/home/phil/sproj/co.py.cat/copycat/copycat.py", line 40, in runTrial
    lastUpdate = mainLoop(lastUpdate)
  File "/home/phil/sproj/co.py.cat/copycat/copycat.py", line 29, in mainLoop
    coderack.chooseAndRunCodelet()
  File "/home/phil/sproj/co.py.cat/copycat/coderack.py", line 281, in chooseAndRunCodelet
    self.run(codelet)
  File "/home/phil/sproj/co.py.cat/copycat/coderack.py", line 338, in run
    method(codelet)
  File "/home/phil/sproj/co.py.cat/copycat/codeletMethods.py", line 802, in bottom_up_correspondence_scout
    distinguishingMappings = [m for m in conceptMappings if m.distinguishing()]
  File "/home/phil/sproj/co.py.cat/copycat/conceptMapping.py", line 59, in distinguishing
    self.initialDescriptor):
  File "/home/phil/sproj/co.py.cat/copycat/letter.py", line 44, in distinguishingDescriptor
    if not WorkspaceObject.distinguishingDescriptor(self, descriptor):
TypeError: distinguishingDescriptor() takes exactly 1 argument (2 given)

Add tests

Preferably generated from running code

Initial Update

Hi ๐Ÿ‘Š

This is my first visit to this fine repo, but it seems you have been working hard to keep all dependencies updated so far.

Once you have closed this issue, I'll create seperate pull requests for every update as soon as I find one.

That's it for now!

Happy merging! ๐Ÿค–

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.