Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1140fd4

Browse files
committedJun 17, 2024··
chore: fix typos
Signed-off-by: snoppy <[email protected]>
1 parent df94d46 commit 1140fd4

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
 

‎computer_vision/haralick_descriptors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def transform(
141141

142142
center_x, center_y = (x // 2 for x in kernel.shape)
143143

144-
# Use padded image when applying convolotion
144+
# Use padded image when applying convolution
145145
# to not go out of bounds of the original the image
146146
transformed = np.zeros(image.shape, dtype=np.uint8)
147147
padded = np.pad(image, 1, "constant", constant_values=constant)

‎graphs/strongly_connected_components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def find_components(
3838
reversed_graph: dict[int, list[int]], vert: int, visited: list[bool]
3939
) -> list[int]:
4040
"""
41-
Use depth first search to find strongliy connected
41+
Use depth first search to find strongly connected
4242
vertices. Now graph is reversed
4343
>>> find_components({0: [1], 1: [2], 2: [0]}, 0, 5 * [False])
4444
[0, 1, 2]

‎maths/points_are_collinear_3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def are_collinear(a: Point3d, b: Point3d, c: Point3d, accuracy: int = 10) -> boo
9999
100100
1- Create tow vectors AB and AC.
101101
2- Get the cross vector of the tow vectors.
102-
3- Calcolate the length of the cross vector.
102+
3- Calculate the length of the cross vector.
103103
4- If the length is zero then the points are collinear, else they are not.
104104
105105
The use of the accuracy parameter is explained in is_zero_vector docstring.

‎neural_network/convolution_neural_network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def convolute(self, data, convs, w_convs, thre_convs, conv_step):
135135
)
136136
data_featuremap.append(featuremap)
137137

138-
# expanding the data slice to One dimenssion
138+
# expanding the data slice to One dimension
139139
focus1_list = []
140140
for each_focus in data_focus:
141141
focus1_list.extend(self.Expand_Mat(each_focus))

0 commit comments

Comments
 (0)
Please sign in to comment.