Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
asparagus committed Apr 20, 2019
1 parent 89b76d5 commit 054c624
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion protobrain/__version__.py
Expand Up @@ -12,6 +12,6 @@
# _/ _/ _/ _/ _/ _/ _/ _/
# _/_/_/ _/ _/_/_/ _/ _/ _/

VERSION = (0, 0, 2)
VERSION = (0, 0, 3)

__version__ = '.'.join(map(str, VERSION))
8 changes: 4 additions & 4 deletions protobrain/cli/experiment.py
Expand Up @@ -53,7 +53,7 @@ def main():
_learning = learning.HebbianLearning()

senz = sensor.Sensor(proto_parse.decode_encoder(exp.encoder))
brain = brain.Brain(
brian = brain.Brain(
sensor=senz,
neurons=proto_parse.decode_neurons(exp.cortex)
)
Expand All @@ -62,9 +62,9 @@ def main():
writer = proto_io.ProtoWriter(output_file)
for value in proto_parse.decode_input(exp.input):
senz.feed(value)
brain.compute(_computation)
brain.learn(_learning)
writer.write(proto_parse.encode_brain(brain))
brian.compute(_computation)
brian.learn(_learning)
writer.write(proto_parse.encode_brain(brian))


if __name__ == '__main__':
Expand Down
2 changes: 1 addition & 1 deletion test/protobrain/encoders/test_numerical.py
Expand Up @@ -4,7 +4,7 @@


def test_fixed_range():
fixed_range = numerical.FixedRangeEncoder(
fixed_range = numerical.SimpleEncoder(
min_value=1, max_value=4, length=5, sparsity=0.4
)
assert all([1, 1, 0, 0, 0] == fixed_range.encode(1))
Expand Down

0 comments on commit 054c624

Please sign in to comment.