Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Math-Accuracy-Core/PMAccuracy.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Class {
#classVars : [
'DecimalPlaces'
],
#category : 'Math-Accuracy-Core'
#category : #'Math-Accuracy-Core'
}

{ #category : #accessing }
Expand Down Expand Up @@ -426,7 +426,7 @@ PMAccuracy >> run: anArrayOfNames [
<< 'Report for: ';
<< self class name;
cr.
self ifSeveralterations: [ aStream << 'iterations: ' << iterations; cr ].
self ifSeveralterations: [ aStream << 'iterations: ' << iterations asString; cr ].
(self tree: dataTree removeAll type: self class name data: 'names')
at: 'iterations' put: iterations;
at: 'names' put: (self tree: KeyedTree new type: 'names' data: a).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ PMStandardizationScalerTest >> testMean [
aMatrix := PMMatrix rows: #((0.0 0.0) #(0.0 0.0) #(1.0 1.0) #(1.0 1.0)).
t := PMStandardizationScaler new.
t fit: aMatrix.
self assert: t mean asArray closeTo: #(0.5 0.5)
self assert: t mean closeTo: #(0.5 0.5)
]

{ #category : #tests }
Expand All @@ -19,7 +19,7 @@ PMStandardizationScalerTest >> testScale [
aMatrix := PMMatrix rows: #((0.0 0.0) #(0.0 0.0) #(1.0 1.0) #(1.0 1.0)).
t := PMStandardizationScaler new.
t fit: aMatrix.
self assert: t scale asArray closeTo: #(0.5 0.5)
self assert: t scale asPMVector closeTo: #(0.5 0.5)
]

{ #category : #tests }
Expand Down Expand Up @@ -54,7 +54,7 @@ PMStandardizationScalerTest >> testVariance [
aMatrix := PMMatrix rows: #((0.0 0.0) #(0.0 0.0) #(1.0 1.0) #(1.0 1.0)).
t := PMStandardizationScaler new.
t fit: aMatrix.
self assert: t variance asArray closeTo: #(0.25 0.25)
self assert: t variance asPMVector closeTo: #(0.25 0.25)
]

{ #category : #tests }
Expand All @@ -66,5 +66,5 @@ PMStandardizationScalerTest >> testZeroScale [
aMatrix := PMMatrix rows: #((8.0 0.0) #(8.0 0.0) #(8.0 1.0) #(8.0 1.0)).
t := PMStandardizationScaler new.
t fit: aMatrix.
self assert: t scale asArray closeTo: #(1.0 0.5)
self assert: t scale asPMVector closeTo: #(1.0 0.5)
]