Skip to content

Commit 6a769d0

Browse files
author
bezzazi abir
committed
Using array instead of ordered collection for the weights
1 parent 915d2af commit 6a769d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/AI-SupportVectorMachines/AISupportVectorMachines.class.st

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ AISupportVectorMachines >> fitX: inputMatrix y: outputVector [
7373
nth := 0.
7474
prev_cost := Float infinity.
7575
cost_threshold := 0.01.
76-
weights := OrderedCollection
77-
new: inputMatrix first size
78-
withAll: 0.
76+
weights := Array
77+
new: inputMatrix first size
78+
withAll: 0.
7979
1 to: maxEpochs do: [ :epoch |
8080
inputMatrix shuffled.
8181
outputVector shuffled.

0 commit comments

Comments
 (0)