Permalink
Browse files

removing trailing spaces

  • Loading branch information...
1 parent 248104d commit 31ac0e580c9df236e66dd804d98d04b85d4924c0 @mmaker mmaker committed May 19, 2010
Showing 422 changed files with 6,225 additions and 6,281 deletions.
View
26 LICENSE
@@ -4,22 +4,22 @@ All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
- * Redistributions of source code must retain the above copyright notice,
+ * Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
- * Neither the name of PyBrain nor the names of its contributors
- may be used to endorse or promote products derived from this software
+ * Neither the name of PyBrain nor the names of its contributors
+ may be used to endorse or promote products derived from this software
without specific prior written permission.
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
View
@@ -7,15 +7,15 @@ INSTALLATION
Quick answer: make sure you have SciPy installed, then
python setup.py install
-Longer answer: (if the above was any trouble) we keep more
-detailed installation instructions (including those
+Longer answer: (if the above was any trouble) we keep more
+detailed installation instructions (including those
for the dependencies) up-to-date in a wiki at:
http://wiki.github.com/pybrain/pybrain/installation
DOCUMENTATION
-------------
-Please read
+Please read
docs/documentation.pdf
or browse
docs/html/*
View
@@ -3,20 +3,20 @@
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.
+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
+ to manually edit the resulting file, e.g. by inserting " ..." at the
beginning of these sections.
-
+
See tutorials/fnn.py for example.
"""
@@ -31,7 +31,7 @@
f_out = file(os.path.join("sphinx",sys.argv[1])+".txt", "w+")
# write the header
-f_out.write(".. _"+sys.argv[1]+":\n\n")
+f_out.write(".. _"+sys.argv[1]+":\n\n")
f_in.readline() # ######################
line = f_in.readline()
line= line.split('"')[1] # # PyBrain Tutorial "Classification ..."
@@ -52,13 +52,13 @@
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 += '::'
@@ -67,22 +67,22 @@
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()
View
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -8,14 +8,14 @@ Writing a neural networking framework in Python imposes certain speed
restrictions upon it. Python is just not as fast as languages such as C++
or Fortran.
-Due to this, PyBrain has its own spin-off called arac, which is a
-re-implementation of its neural networking facilities that integrates
+Due to this, PyBrain has its own spin-off called arac, which is a
+re-implementation of its neural networking facilities that integrates
transparently with it.
Depending on the configuration of your system, speedups of **5-10x faster** can
-be expected. This speedup might be even higher (ranging into the hundreds) if
+be expected. This speedup might be even higher (ranging into the hundreds) if
you use sophisticated topologies such as MDRNNs. If you want some numbers on
-your system, there is a comparison script shipped with PyBrain at
+your system, there is a comparison script shipped with PyBrain at
``examples/arac/benchmark.py``.
@@ -50,13 +50,13 @@ As you can see by examining the network, it is a special class:
>>> n
<_FeedForwardNetwork '_FeedForwardNetwork-8'>
-which is prefixed with an underscore, the Python convention for naming C
-implementations of already existing classes. We can import these classes
+which is prefixed with an underscore, the Python convention for naming C
+implementations of already existing classes. We can import these classes
directly from arac and use them in the same way as PyBrain classes:
>>> from arac.pybrainbridge import _FeedForwardNetwork, _RecurrentNetwork
-The third method is to construct a network as a PyBrain network and call the
+The third method is to construct a network as a PyBrain network and call the
method ``convertToFastNetwork`` afterwards:
>>> n = buildNetwork(2, 3, 1, fast=False)
@@ -70,10 +70,10 @@ are not reflected in the arac network.
Limitations
-----------
-Since arac is implemented in C++ and currently maintained by only a single
+Since arac is implemented in C++ and currently maintained by only a single
person, arac development is likely to be slower than PyBrain's. This might lead
-to certain features (e.g. layer types) to be implemented later than the pure
-python versions. This also applies to custom layer types. As soon as you have
-your layer type, you will not be able to use fast networks anymore -- except if
+to certain features (e.g. layer types) to be implemented later than the pure
+python versions. This also applies to custom layer types. As soon as you have
+your layer type, you will not be able to use fast networks anymore -- except if
you chose to also implement them for arac yourself.
Oops, something went wrong.

0 comments on commit 31ac0e5

Please sign in to comment.