Permalink
Browse files

another oops

  • Loading branch information...
1 parent 402dace commit 3f0552f03dfbd3848550ac4151054af1a9cd055c @schaul schaul committed Jul 9, 2009
Showing with 5,034 additions and 5,031 deletions.
  1. +4 −1 .gitignore
  2. +17 −17 .project
  3. +6 −6 README.TXT
  4. 0 arac/build.vel
  5. +88 −88 docs/code2tut.py
  6. +32 −32 docs/sphinx/autodoc_hack.py
  7. +1 −1 docs/sphinx/build.bat
  8. 0 docs/sphinx/tutorial/datasets.txt
  9. +156 −156 docs/sphinx/tutorial/fnn.txt
  10. +123 −123 docs/tutorials/networks.py
  11. +19 −19 examples/capturegame/pente.py
  12. +27 −27 examples/multiobjective/nsga2.py
  13. +73 −73 examples/neuralnets+svm/datasets/datagenerator.py
  14. 0 examples/neuralnets+svm/exampleRNN.py
  15. +244 −244 pybrain/auxiliary/gaussprocess.py
  16. +359 −359 pybrain/datasets/classification.py
  17. +7 −7 pybrain/rl/agents/__init__.py
  18. 0 pybrain/rl/environments/flexcube/__init__.py
  19. 0 pybrain/rl/environments/flexcube/objects3D.py
  20. 0 pybrain/rl/environments/flexcube/rendererBase.py
  21. +63 −63 pybrain/rl/environments/functions/multiobjective.py
  22. 0 pybrain/rl/environments/ode/__init__.py
  23. 0 pybrain/rl/environments/ode/actuators.py
  24. 0 pybrain/rl/environments/ode/environment.py
  25. 0 pybrain/rl/environments/ode/models/acrobot.xode
  26. 0 pybrain/rl/environments/ode/models/acroside.xode
  27. 0 pybrain/rl/environments/ode/models/acrotop.xode
  28. 0 pybrain/rl/environments/ode/models/arm.xode
  29. 0 pybrain/rl/environments/ode/models/box-sphere.xode
  30. 0 pybrain/rl/environments/ode/models/crawler.xode
  31. 0 pybrain/rl/environments/ode/models/hand.xode
  32. 0 pybrain/rl/environments/ode/models/johnnie-heavyarms.xode
  33. 0 pybrain/rl/environments/ode/models/johnnie.xode
  34. 0 pybrain/rl/environments/ode/models/octacrawl.xode
  35. 0 pybrain/rl/environments/ode/models/sphere-walker.xode
  36. 0 pybrain/rl/environments/ode/renderer.py
  37. 0 pybrain/rl/environments/ode/sensors.py
  38. 0 pybrain/rl/environments/ode/tasks/__init__.py
  39. 0 pybrain/rl/environments/ode/tasks/acrobot.py
  40. 0 pybrain/rl/environments/ode/tools/__init__.py
  41. 0 pybrain/rl/environments/ode/tools/configgrab.py
  42. 0 pybrain/rl/environments/ode/tools/makevideo.sh
  43. 0 pybrain/rl/environments/ode/tools/mathhelpers.py
  44. 0 pybrain/rl/environments/ode/tools/xmltools.py
  45. 0 pybrain/rl/environments/ode/tools/xodetools.py
  46. +372 −372 pybrain/rl/environments/ode/viewer.py
  47. 0 pybrain/rl/environments/ode/xode_changes/body.py
  48. 0 pybrain/rl/environments/ode/xode_changes/geom.py
  49. 0 pybrain/rl/environments/renderer.py
  50. 0 pybrain/rl/environments/simplerace/simpleracetask.py
  51. +264 −264 pybrain/rl/environments/twoplayergames/capturegame.py
  52. +86 −86 pybrain/rl/environments/twoplayergames/pente.py
  53. +5 −5 pybrain/rl/learners/blackboxoptimizers/__init__.py
  54. +91 −91 pybrain/rl/learners/blackboxoptimizers/blackboxoptimizer.py
  55. +242 −242 pybrain/rl/learners/blackboxoptimizers/cmaes.py
  56. +73 −73 pybrain/rl/learners/blackboxoptimizers/evolution/evolution.py
  57. +214 −214 pybrain/rl/learners/blackboxoptimizers/evolution/nsga2.py
  58. +23 −23 pybrain/rl/learners/blackboxoptimizers/neldermead.py
  59. +558 −558 pybrain/rl/learners/blackboxoptimizers/nes.py
  60. +35 −35 pybrain/rl/learners/rllearner.py
  61. +124 −124 pybrain/rl/learners/search/competitivecoevolution.py
  62. +103 −103 pybrain/rl/tasks/capturegame/capturetask.py
  63. +102 −102 pybrain/rl/tasks/gomoku/gomokutask.py
  64. +28 −28 pybrain/rl/tasks/gomoku/pentetask.py
  65. +64 −64 pybrain/structure/connections/shared.py
  66. +53 −53 pybrain/structure/modulemesh.py
  67. +15 −15 pybrain/structure/modules/tanhlayer.py
  68. +38 −38 pybrain/structure/moduleslice.py
  69. +107 −107 pybrain/structure/networks/borderswiping.py
  70. +82 −82 pybrain/structure/networks/convolutional.py
  71. +58 −58 pybrain/structure/networks/custom/convboard.py
  72. +59 −59 pybrain/structure/networks/multidimensional.py
  73. +116 −116 pybrain/structure/networks/swiping.py
  74. +51 −51 pybrain/tests/unittests/test_backprop_rprop.py
  75. +59 −59 pybrain/tests/unittests/test_capture_game.py
  76. +77 −77 pybrain/tests/unittests/test_convolutional_nets.py
  77. +57 −57 pybrain/tests/unittests/test_no_gravity_network.py
  78. +90 −90 pybrain/tests/unittests/test_pente.py
  79. 0 pybrain/tools/gridsearch.py
  80. +290 −290 pybrain/tools/neuralnets.py
  81. +119 −119 pybrain/tools/plotting/fitnesslandscapes.py
  82. +160 −160 pybrain/tools/svmdata.py
View
@@ -1 +1,4 @@
-*.pyc
+*.pyc
+*.egg-info
+*.xml
+.settings
View
@@ -1,17 +1,17 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>PyBrain-git-master</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.python.pydev.PyDevBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.python.pydev.pythonNature</nature>
- </natures>
-</projectDescription>
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>PyBrain-git-master</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.python.pydev.PyDevBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.python.pydev.pythonNature</nature>
+ </natures>
+</projectDescription>
View
@@ -1,7 +1,7 @@
-PyBrain -- the Python Machine Learning Library
-
-PLEASE READ docs/documentation.pdf, featuring
-- setup and installation instructions
-- quickstart tutorial
-- tutorial
+PyBrain -- the Python Machine Learning Library
+
+PLEASE READ docs/documentation.pdf, featuring
+- setup and installation instructions
+- quickstart tutorial
+- tutorial
- API
View
0 arac/build.vel 100755 → 100644
No changes.
View
@@ -1,88 +1,88 @@
-#!/bin/env python
-""" Utility script to convert Python source code into tutorials.
-
-Synopsis:
- code2tut.py basename
-
-Output:
- Will convert tutorials/basename.py into sphinx/basename.txt
-
-Conventions:
-1. All textual comments must be enclosed in triple quotation marks.
-2. First line of file is ignored, second line of file shall contain title in "",
- the following lines starting with # are ignored.
-3. Lines following paragraph-level markup (e.g. .. seealso::) must be indented.
- Paragraph ends with a blank line.
-4. If the code after a comment starts with a higher indentation level, you have
- to manually edit the resulting file, e.g. by inserting " ..." at the
- beginning of these sections.
-
-See tutorials/fnn.py for example.
-"""
-
-__author__ = "Martin Felder, felder@in.tum.de"
-__version__ = "$Id$"
-
-import sys
-import os
-
-
-f_in = file(os.path.join("tutorials",sys.argv[1])+".py")
-f_out = file(os.path.join("sphinx",sys.argv[1])+".txt", "w+")
-
-# write the header
-f_out.write(".. _"+sys.argv[1]+":\n\n")
-f_in.readline() # ######################
-line = f_in.readline()
-line= line.split('"')[1] # # PyBrain Tutorial "Classification ..."
-f_out.write(line+"\n")
-f_out.write("="*len(line)+'\n\n')
-
-linecomment = False
-comment = 0
-begin = True
-inblock = False
-
-# the following is an ugly hack - don't look at it!
-for line in f_in:
- linecomment = False
- # crop #-comments at start of file
- if line.startswith('#'):
- if begin:
- continue
- elif begin:
- begin = False
-
- if '"""' in line:
- for i in range(line.count('"""')):
- comment = 1 - comment
- if line.count('"""')==2:
- linecomment = True
-
- line = line.replace('"""','')
- if comment==0:
- line += '::'
- if not inblock:
- line = line.strip()
-
- elif comment==0 and line!='\n':
- line = " "+line
-
- if line.startswith('..'):
- inblock = True
- elif line=="\n":
- inblock = False
-
- if (comment or linecomment) and not inblock:
- line = line.strip()+"\n"
-
- if line.endswith("::"):
- line +='\n\n'
- elif line.endswith("::\n"):
- line +='\n'
-
- f_out.write(line)
-
-
-f_in.close()
-f_out.close()
+#!/bin/env python
+""" Utility script to convert Python source code into tutorials.
+
+Synopsis:
+ code2tut.py basename
+
+Output:
+ Will convert tutorials/basename.py into sphinx/basename.txt
+
+Conventions:
+1. All textual comments must be enclosed in triple quotation marks.
+2. First line of file is ignored, second line of file shall contain title in "",
+ the following lines starting with # are ignored.
+3. Lines following paragraph-level markup (e.g. .. seealso::) must be indented.
+ Paragraph ends with a blank line.
+4. If the code after a comment starts with a higher indentation level, you have
+ to manually edit the resulting file, e.g. by inserting " ..." at the
+ beginning of these sections.
+
+See tutorials/fnn.py for example.
+"""
+
+__author__ = "Martin Felder, felder@in.tum.de"
+__version__ = "$Id$"
+
+import sys
+import os
+
+
+f_in = file(os.path.join("tutorials",sys.argv[1])+".py")
+f_out = file(os.path.join("sphinx",sys.argv[1])+".txt", "w+")
+
+# write the header
+f_out.write(".. _"+sys.argv[1]+":\n\n")
+f_in.readline() # ######################
+line = f_in.readline()
+line= line.split('"')[1] # # PyBrain Tutorial "Classification ..."
+f_out.write(line+"\n")
+f_out.write("="*len(line)+'\n\n')
+
+linecomment = False
+comment = 0
+begin = True
+inblock = False
+
+# the following is an ugly hack - don't look at it!
+for line in f_in:
+ linecomment = False
+ # crop #-comments at start of file
+ if line.startswith('#'):
+ if begin:
+ continue
+ elif begin:
+ begin = False
+
+ if '"""' in line:
+ for i in range(line.count('"""')):
+ comment = 1 - comment
+ if line.count('"""')==2:
+ linecomment = True
+
+ line = line.replace('"""','')
+ if comment==0:
+ line += '::'
+ if not inblock:
+ line = line.strip()
+
+ elif comment==0 and line!='\n':
+ line = " "+line
+
+ if line.startswith('..'):
+ inblock = True
+ elif line=="\n":
+ inblock = False
+
+ if (comment or linecomment) and not inblock:
+ line = line.strip()+"\n"
+
+ if line.endswith("::"):
+ line +='\n\n'
+ elif line.endswith("::\n"):
+ line +='\n'
+
+ f_out.write(line)
+
+
+f_in.close()
+f_out.close()
@@ -1,32 +1,32 @@
-# replace the function below in sphinx.ext.autodoc.py (tested with Sphinx version 0.4.1)
-__author__ = "Martin Felder"
-
-def prepare_docstring(s):
- """
- Convert a docstring into lines of parseable reST. Return it as a list of
- lines usable for inserting into a docutils ViewList (used as argument
- of nested_parse().) An empty line is added to act as a separator between
- this docstring and following content.
- """
- if not s or s.isspace():
- return ['']
- s = s.expandtabs()
-
- # [MF] begin pydoc hack **************
- idxpar = s.find('@param')
- if idxpar > 0:
- # insert blank line before keyword list
- idx = s.rfind('\n',0,idxpar)
- s = s[:idx]+'\n'+s[idx:]
- # replace pydoc with sphinx notation
- s = s.replace("@param", ":param")
- # [MF] end pydoc hack **************
-
- nl = s.rstrip().find('\n')
- if nl == -1:
- # Only one line...
- return [s.strip(), '']
- # The first line may be indented differently...
- firstline = s[:nl].strip()
- otherlines = textwrap.dedent(s[nl+1:]) #@UndefinedVariable
- return [firstline] + otherlines.splitlines() + ['']
+# replace the function below in sphinx.ext.autodoc.py (tested with Sphinx version 0.4.1)
+__author__ = "Martin Felder"
+
+def prepare_docstring(s):
+ """
+ Convert a docstring into lines of parseable reST. Return it as a list of
+ lines usable for inserting into a docutils ViewList (used as argument
+ of nested_parse().) An empty line is added to act as a separator between
+ this docstring and following content.
+ """
+ if not s or s.isspace():
+ return ['']
+ s = s.expandtabs()
+
+ # [MF] begin pydoc hack **************
+ idxpar = s.find('@param')
+ if idxpar > 0:
+ # insert blank line before keyword list
+ idx = s.rfind('\n',0,idxpar)
+ s = s[:idx]+'\n'+s[idx:]
+ # replace pydoc with sphinx notation
+ s = s.replace("@param", ":param")
+ # [MF] end pydoc hack **************
+
+ nl = s.rstrip().find('\n')
+ if nl == -1:
+ # Only one line...
+ return [s.strip(), '']
+ # The first line may be indented differently...
+ firstline = s[:nl].strip()
+ otherlines = textwrap.dedent(s[nl+1:]) #@UndefinedVariable
+ return [firstline] + otherlines.splitlines() + ['']
View
@@ -1,2 +1,2 @@
-sphinx-build . .build
+sphinx-build . .build
pause
View
0 docs/sphinx/tutorial/datasets.txt 100755 → 100644
No changes.
Oops, something went wrong.

0 comments on commit 3f0552f

Please sign in to comment.