diff --git a/src/BaselineOfPolyMath/BaselineOfPolyMath.class.st b/src/BaselineOfPolyMath/BaselineOfPolyMath.class.st index 2dfe9ce7..5de81fa1 100644 --- a/src/BaselineOfPolyMath/BaselineOfPolyMath.class.st +++ b/src/BaselineOfPolyMath/BaselineOfPolyMath.class.st @@ -10,12 +10,13 @@ PolyMath is a Smalltalk project, similar to existing scientific libraries like N " Class { - #name : #BaselineOfPolyMath, - #superclass : #BaselineOf, - #category : #BaselineOfPolyMath + #name : 'BaselineOfPolyMath', + #superclass : 'BaselineOf', + #category : 'BaselineOfPolyMath', + #package : 'BaselineOfPolyMath' } -{ #category : #baselines } +{ #category : 'baselines' } BaselineOfPolyMath >> baseline: spec [ @@ -41,7 +42,7 @@ BaselineOfPolyMath >> baseline: spec [ package: 'Math-CompatibilityUpToPharo11' ] ] -{ #category : #dependencies } +{ #category : 'dependencies' } BaselineOfPolyMath >> dataFrameInspector: spec [ spec @@ -49,7 +50,7 @@ BaselineOfPolyMath >> dataFrameInspector: spec [ with: [ spec repository: 'github://pharo-ai/data-inspector/src' ] ] -{ #category : #dependencies } +{ #category : 'dependencies' } BaselineOfPolyMath >> datasets: spec [ spec @@ -57,7 +58,7 @@ BaselineOfPolyMath >> datasets: spec [ with: [ spec repository: 'github://pharo-ai/datasets' ]. ] -{ #category : #baselines } +{ #category : 'baselines' } BaselineOfPolyMath >> groups: spec [ spec @@ -98,7 +99,7 @@ BaselineOfPolyMath >> groups: spec [ with: #( 'Core' 'Extensions' 'Tests' 'Benchmarks' 'Accuracy' ) ] -{ #category : #baselines } +{ #category : 'baselines' } BaselineOfPolyMath >> packages: spec [ spec @@ -204,20 +205,20 @@ BaselineOfPolyMath >> packages: spec [ with: [ spec requires: #( 'AIDatasets' 'AIDataFrameInspector') ] ] -{ #category : #accessing } +{ #category : 'accessing' } BaselineOfPolyMath >> projectClass [ ^ [ self class environment at: #MetacelloCypressBaselineProject ] on: NotFound do: [ super projectClass ] ] -{ #category : #dependencies } +{ #category : 'dependencies' } BaselineOfPolyMath >> randomNumbers: spec [ spec baseline: 'MathRandomNumbers' with: [ spec repository: 'github://PolyMathOrg/random-numbers:v1.x.x/src' ] ] -{ #category : #dependencies } +{ #category : 'dependencies' } BaselineOfPolyMath >> roassal: spec [ spec @@ -225,19 +226,19 @@ BaselineOfPolyMath >> roassal: spec [ with: [ spec repository: 'github://pharo-graphics/Roassal' ]. ] -{ #category : #dependencies } +{ #category : 'dependencies' } BaselineOfPolyMath >> sMark: spec [ spec baseline: 'SMark' with: [ spec repository: 'github://smarr/SMark:v1.0.4' ] ] -{ #category : #dependencies } +{ #category : 'dependencies' } BaselineOfPolyMath >> vectorMatrix: spec [ - spec baseline: 'MathVectorMatrix' with: [ spec repository: 'github://PolyMathOrg/vector-matrix:v1.x.x/src' ] + spec baseline: 'MathVectorMatrix' with: [ spec repository: 'github://PolyMathOrg/vector-matrix/src' ] ] -{ #category : #dependencies } +{ #category : 'dependencies' } BaselineOfPolyMath >> xmlWriter: spec [ spec baseline: 'XMLWriter' with: [ spec repository: 'github://pharo-contributions/XML-XMLWriter:2.9.x/src' ] diff --git a/src/BaselineOfPolyMath/package.st b/src/BaselineOfPolyMath/package.st index c3d8b930..0d2ce2ab 100644 --- a/src/BaselineOfPolyMath/package.st +++ b/src/BaselineOfPolyMath/package.st @@ -1 +1 @@ -Package { #name : #BaselineOfPolyMath } +Package { #name : 'BaselineOfPolyMath' } diff --git a/src/Math-PrincipalComponentAnalysis/PMPrincipalComponentAnalyserJacobiTransformation.class.st b/src/Math-PrincipalComponentAnalysis/PMPrincipalComponentAnalyserJacobiTransformation.class.st index 54002e12..3d8e0ee1 100644 --- a/src/Math-PrincipalComponentAnalysis/PMPrincipalComponentAnalyserJacobiTransformation.class.st +++ b/src/Math-PrincipalComponentAnalysis/PMPrincipalComponentAnalyserJacobiTransformation.class.st @@ -33,7 +33,7 @@ PMPrincipalComponentAnalyserJacobiTransformation >> accumulate: aPMVectorOrArray PMPrincipalComponentAnalyserJacobiTransformation >> components [ "Precondition: accumulate: should have been used." - ^ self jacobiTransform evaluate copyFrom: 1 to: componentsNumber + ^ self jacobiTransform eigenValues copyFrom: 1 to: componentsNumber ] { #category : 'accessing' } @@ -59,5 +59,5 @@ PMPrincipalComponentAnalyserJacobiTransformation >> transform: aPMMatrix [ PMPrincipalComponentAnalyserJacobiTransformation >> transformMatrix [ "Return a matrix that can be applied to any data vector to extract the relevant component of the data vector" - ^ PMMatrix rows: (self jacobiTransform transform rows copyFrom:1 to: componentsNumber ) + ^ PMMatrix rows: (self jacobiTransform eigenVectors rows copyFrom:1 to: componentsNumber ) ] diff --git a/src/Math-Tests-Numerical/PMNumericalMethodsTestCase.class.st b/src/Math-Tests-Numerical/PMNumericalMethodsTestCase.class.st index f08bc063..0bad4246 100644 --- a/src/Math-Tests-Numerical/PMNumericalMethodsTestCase.class.st +++ b/src/Math-Tests-Numerical/PMNumericalMethodsTestCase.class.st @@ -63,8 +63,7 @@ PMNumericalMethodsTestCase >> testEigenvalues [ charPol := PMPolynomial coefficients: #(82 -66 15 -1). roots := charPol roots asSortedCollection asArray reverse. finder := PMJacobiTransformation matrix: m. - finder desiredPrecision: 1.0e-09. - eigenvalues := finder evaluate. + eigenvalues := finder eigenValues. self assert: eigenvalues size equals: 3. self assert: ((roots at: 1) - (eigenvalues at: 1)) abs < 1.0e-09. self assert: ((roots at: 2) - (eigenvalues at: 2)) abs < 1.0e-09. diff --git a/src/Math-Tests-TSNE/PMTSNETest.class.st b/src/Math-Tests-TSNE/PMTSNETest.class.st index 3838ecd4..9cfc83c2 100644 --- a/src/Math-Tests-TSNE/PMTSNETest.class.st +++ b/src/Math-Tests-TSNE/PMTSNETest.class.st @@ -82,5 +82,5 @@ PMTSNETest >> testreduceXToInputDimsUsing [ t := (PMTSNE new) x: (PMMatrix rows: #(#(0 0) #(2 2) #(2 0))). t reduceXToInputDimsUsing: PMPrincipalComponentAnalyserJacobiTransformation. - self assert: (t x) closeTo: (PMMatrix rows: #(#(-0.5 -1.5) #(-0.5 1.5) #(1 0))) + self assert: (t x) closeTo: (PMMatrix rows: #(#(-1.5 -0.5) #(1.5 -0.5) #(0 1))) ]