diff --git a/eprop_testing/create_pops_for_incremental_learning.py b/eprop_testing/create_pops_for_incremental_learning.py index 352c4a5..c187782 100644 --- a/eprop_testing/create_pops_for_incremental_learning.py +++ b/eprop_testing/create_pops_for_incremental_learning.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn from spynnaker.pyNN.spynnaker_external_device_plugin_manager import SpynnakerExternalDevicePluginManager from plot_graph import draw_graph_from_list, plot_learning_curve diff --git a/eprop_testing/delta_synapse_test.py b/eprop_testing/delta_synapse_test.py index fa5f0ba..e84c279 100644 --- a/eprop_testing/delta_synapse_test.py +++ b/eprop_testing/delta_synapse_test.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/frozen_poisson.py b/eprop_testing/frozen_poisson.py index ef7ca2e..d59d7ce 100644 --- a/eprop_testing/frozen_poisson.py +++ b/eprop_testing/frozen_poisson.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np def build_input_spike_train(num_repeats, cycle_time, pop_size, use_old=False): diff --git a/eprop_testing/hand_crafted_left_right.py b/eprop_testing/hand_crafted_left_right.py index 3dc338b..92ecc4e 100644 --- a/eprop_testing/hand_crafted_left_right.py +++ b/eprop_testing/hand_crafted_left_right.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/incremental_config.py b/eprop_testing/incremental_config.py index 6546a8e..0e52682 100644 --- a/eprop_testing/incremental_config.py +++ b/eprop_testing/incremental_config.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np number_of_cues = 1 diff --git a/eprop_testing/incremental_graph_drawing.py b/eprop_testing/incremental_graph_drawing.py index da3145e..f03c7fc 100644 --- a/eprop_testing/incremental_graph_drawing.py +++ b/eprop_testing/incremental_graph_drawing.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/incremental_learning.py b/eprop_testing/incremental_learning.py index 632dae8..b55e750 100644 --- a/eprop_testing/incremental_learning.py +++ b/eprop_testing/incremental_learning.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np from plot_graph import draw_graph_from_list, plot_learning_curve from create_pops_for_incremental_learning import first_create_pops, next_create_pops, run_until diff --git a/eprop_testing/input_buffer_overflow_test.py b/eprop_testing/input_buffer_overflow_test.py index 24a8939..b2aa547 100644 --- a/eprop_testing/input_buffer_overflow_test.py +++ b/eprop_testing/input_buffer_overflow_test.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/learn_sinusoid_from_frozen_poisson.py b/eprop_testing/learn_sinusoid_from_frozen_poisson.py index f08e7f6..0e9025c 100644 --- a/eprop_testing/learn_sinusoid_from_frozen_poisson.py +++ b/eprop_testing/learn_sinusoid_from_frozen_poisson.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/learn_sinusoid_only_readout.py b/eprop_testing/learn_sinusoid_only_readout.py index 6335a23..6b315ac 100644 --- a/eprop_testing/learn_sinusoid_only_readout.py +++ b/eprop_testing/learn_sinusoid_only_readout.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/learn_sinusoid_only_readout_single_cycle_input.py b/eprop_testing/learn_sinusoid_only_readout_single_cycle_input.py index 8989fd3..593a011 100644 --- a/eprop_testing/learn_sinusoid_only_readout_single_cycle_input.py +++ b/eprop_testing/learn_sinusoid_only_readout_single_cycle_input.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/one_neuron.py b/eprop_testing/one_neuron.py index eb370f1..93494f2 100644 --- a/eprop_testing/one_neuron.py +++ b/eprop_testing/one_neuron.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/plot_graph.py b/eprop_testing/plot_graph.py index 8d50afc..3dce00b 100644 --- a/eprop_testing/plot_graph.py +++ b/eprop_testing/plot_graph.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import matplotlib.pyplot as plt import networkx as nx import numpy as np @@ -297,5 +310,5 @@ def create_video(top_directory, base_label, string_end=' SNN.png'): create_video(directory, label, string_end=' learning curve.png') # string_end=' SNN.png') - + print("done") diff --git a/eprop_testing/pop_rate_test.py b/eprop_testing/pop_rate_test.py index 8acff24..f9b2654 100644 --- a/eprop_testing/pop_rate_test.py +++ b/eprop_testing/pop_rate_test.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/readout_input_test.py b/eprop_testing/readout_input_test.py index 1033df4..2886dc8 100644 --- a/eprop_testing/readout_input_test.py +++ b/eprop_testing/readout_input_test.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/signed_weights_test.py b/eprop_testing/signed_weights_test.py index d89417d..c7cb19d 100644 --- a/eprop_testing/signed_weights_test.py +++ b/eprop_testing/signed_weights_test.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/store_recall.py b/eprop_testing/store_recall.py index a8f0dbe..2b8fd10 100644 --- a/eprop_testing/store_recall.py +++ b/eprop_testing/store_recall.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import spynnaker8 as p from spinn_front_end_common.utility_models import ( ReverseIpTagMultiCastSource) diff --git a/eprop_testing/test_8_neuron_regularisation.py b/eprop_testing/test_8_neuron_regularisation.py index be21414..db67e6c 100644 --- a/eprop_testing/test_8_neuron_regularisation.py +++ b/eprop_testing/test_8_neuron_regularisation.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/test_adaptive_threshold.py b/eprop_testing/test_adaptive_threshold.py index 45d52be..05f53b1 100644 --- a/eprop_testing/test_adaptive_threshold.py +++ b/eprop_testing/test_adaptive_threshold.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/test_learning_signal_by_payload.py b/eprop_testing/test_learning_signal_by_payload.py index fe503f1..3f3daa9 100644 --- a/eprop_testing/test_learning_signal_by_payload.py +++ b/eprop_testing/test_learning_signal_by_payload.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/test_left_right_readout.py b/eprop_testing/test_left_right_readout.py index ec3634d..95317c5 100644 --- a/eprop_testing/test_left_right_readout.py +++ b/eprop_testing/test_left_right_readout.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/test_regularisation.py b/eprop_testing/test_regularisation.py index e00395f..07ac19b 100644 --- a/eprop_testing/test_regularisation.py +++ b/eprop_testing/test_regularisation.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import spynnaker8 as p import numpy import math diff --git a/eprop_testing/test_single_plastic_update.py b/eprop_testing/test_single_plastic_update.py index 998b7a0..8c3c073 100644 --- a/eprop_testing/test_single_plastic_update.py +++ b/eprop_testing/test_single_plastic_update.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/test_sinusoid_learning.py b/eprop_testing/test_sinusoid_learning.py index fcfa2d3..f20ae42 100644 --- a/eprop_testing/test_sinusoid_learning.py +++ b/eprop_testing/test_sinusoid_learning.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt diff --git a/eprop_testing/test_synapse_state_evol.py b/eprop_testing/test_synapse_state_evol.py index 58e434c..24291ae 100644 --- a/eprop_testing/test_synapse_state_evol.py +++ b/eprop_testing/test_synapse_state_evol.py @@ -1,3 +1,16 @@ +# Copyright (c) 2019 The University of Manchester +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. import pyNN.spiNNaker as pynn import numpy as np import matplotlib.pyplot as plt