Skip to content

Commit 501160f

Browse files
author
bezzazi abir
committed
removed AIMatrix class
1 parent bfa2064 commit 501160f

File tree

3 files changed

+3
-49
lines changed

3 files changed

+3
-49
lines changed

src/AI-SupportVectorMachines-Tests/AISupportVectorMachinesSoftSGDTest.class.st

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ AISupportVectorMachinesSoftSGDTest >> testComputeCostXY [
7272
AISupportVectorMachinesSoftSGDTest >> testFitXY [
7373

7474
| x y res |
75-
x := AIMatrix from: #( #( 1 0 0 ) #( 1 1 1 ) #( 1 3 3 ) #( 1 4 4 ) ).
75+
x := #( #( 1 0 0 ) #( 1 1 1 ) #( 1 3 3 ) #( 1 4 4 ) ).
7676
y := #( 1 1 -1 -1 ).
7777

7878
model regularizationStrenght: 10000.
@@ -91,7 +91,7 @@ AISupportVectorMachinesSoftSGDTest >> testFitXY [
9191
AISupportVectorMachinesSoftSGDTest >> testPredict [
9292

9393
| expectedOutput x testInput y actualOutput |
94-
x := AIMatrix from: #( #( 1 0 0 ) #( 1 1 1 ) #( 1 3 3 ) #( 1 4 4 ) ).
94+
x := #( #( 1 0 0 ) #( 1 1 1 ) #( 1 3 3 ) #( 1 4 4 ) ).
9595
y := #( 1 1 -1 -1 ).
9696

9797
testInput := AIMatrix from: #( #( 1 -1 -1 ) #( 1 5 5 ) #( 1 6 6 ) #( 1 7 7 ) ).

src/AI-SupportVectorMachines/AIMatrix.class.st

Lines changed: 0 additions & 46 deletions
This file was deleted.

src/AI-SupportVectorMachines/AISupportVectorMachinesSoftSGD.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ AISupportVectorMachinesSoftSGD >> fitX: inputMatrix y: outputVector [
7474
prev_cost := Float infinity.
7575
cost_threshold := 0.01.
7676
weights := OrderedCollection
77-
new: inputMatrix numberOfColumns
77+
new: inputMatrix first size
7878
withAll: 0.
7979
1 to: maxEpochs do: [ :epoch |
8080
inputMatrix shuffled.

0 commit comments

Comments
 (0)