diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..7cdd5a8 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Michał Dobrzański + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index aa618b0..fca1612 100644 --- a/README.md +++ b/README.md @@ -10,4 +10,7 @@ The testing file (**test.py**) contains all three networks (network.py, network2 In test.py there are examples of networks configurations with proper comments. I did that to relate with particular chapters from the book. +### License +Disributed under MIT License. [Link](LICENSE.md). + diff --git a/network.py b/network.py index ad9f26e..78629cf 100644 --- a/network.py +++ b/network.py @@ -70,7 +70,7 @@ def SGD(self, training_data, epochs, mini_batch_size, eta, for mini_batch in mini_batches: self.update_mini_batch(mini_batch, eta) if test_data: - print("Epoch {} : {} / {}".format(j,self.evaluate(test_data),n_test)); + print("Epoch {} : {} / {}".format(j,self.evaluate(test_data),n_test)) else: print("Epoch {} complete".format(j))