mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 17:34:49 +08:00
chore: fix typos (#11467)
* chore: fix typos Signed-off-by: snoppy <michaleli@foxmail.com> * Apply suggestions from code review Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com> --------- Signed-off-by: snoppy <michaleli@foxmail.com> Co-authored-by: Christian Clauss <cclauss@me.com> Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
"""
|
||||
- - - - - -- - - - - - - - - - - - - - - - - - - - - - -
|
||||
Name - - CNN - Convolution Neural Network For Photo Recognizing
|
||||
Goal - - Recognize Handing Writing Word Photo
|
||||
Goal - - Recognize Handwriting Word Photo
|
||||
Detail: Total 5 layers neural network
|
||||
* Convolution layer
|
||||
* Pooling layer
|
||||
@ -135,7 +135,7 @@ class CNN:
|
||||
)
|
||||
data_featuremap.append(featuremap)
|
||||
|
||||
# expanding the data slice to One dimenssion
|
||||
# expanding the data slice to one dimension
|
||||
focus1_list = []
|
||||
for each_focus in data_focus:
|
||||
focus1_list.extend(self.Expand_Mat(each_focus))
|
||||
@ -304,7 +304,7 @@ class CNN:
|
||||
plt.grid(True, alpha=0.5)
|
||||
plt.show()
|
||||
|
||||
print("------------------Training Complished---------------------")
|
||||
print("------------------Training Complete---------------------")
|
||||
print((" - - Training epoch: ", rp, f" - - Mse: {mse:.6f}"))
|
||||
if draw_e:
|
||||
draw_error()
|
||||
@ -353,5 +353,5 @@ class CNN:
|
||||
|
||||
if __name__ == "__main__":
|
||||
"""
|
||||
I will put the example on other file
|
||||
I will put the example in another file
|
||||
"""
|
||||
|
Reference in New Issue
Block a user