Atharva Khare
Atharva Khare
How about these: ```Smalltalk polynomial := PMPolynomial coefficients: #(1 1 1 1). grapher := RTGrapher new. points := (-4 to: 4 by: 0.1). [ polynomial degree >= 0] whileTrue: [...
Can we just create `asString` for `PMMatrix` and print something like this: ``` a := PMMatrix rows: #((1 2)). a asString. >>> a PMMatrix( a PMVector(1 2) ) ```
@khinsen is `Golub-Reinsch SVD algorithm` good candidate? The GNU Scientific Library uses that.
This is specific to SVD as `PMPrincipalComponentAnalyserJacobiTransformation` works. ```Smalltalk a := PMMatrix rows: #(#(-1 -1 1) #(-2 -1 2)). pca := PMPrincipalComponentAnalyserJacobiTransformation new componentsNumber: 2. pca fit: a. ```
This happens due to the following lines: https://github.com/PolyMathOrg/PolyMath/blob/8e663a8f998375e657596a33c9d3b97a530bb0f6/src/Math-PrincipalComponentAnalysis/PMPrincipalComponentAnalyserSVD.class.st#L40 https://github.com/PolyMathOrg/PolyMath/blob/8e663a8f998375e657596a33c9d3b97a530bb0f6/src/Math-Matrix/PMSingularValueDecomposition.class.st#L60-L63 I tried matching values of `eigenU` and `eigenV` with sklearn's output, `eigenV` does not match for n(rows) < n(cols). u after...
The way I was thinking of implementing this is having column-oriented `OrderedCollection`s and `contents` will also be an `OrderedCollection` which holds these columns. To access a row, fetch it's index,...
`DataSeries withKeyDo: aBlock` needs `aBlock` to have `:value` and `:key` as arguments. It should, however, accept only 1 argument - key. Also, since DataSeries inherits OrderedDictionary, which has `keysDo` (and...
Thanks for the detailed explanation and links. I assumed `withKeysDo:` was same as `keysDo` and got confused. Now it's all clear :)
Shouldn't user just use `, `(comma space) as separator?