-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make sure builds don't fail due to change in gonum #10
Conversation
fixes an issue caused by gonum/gonum@16f4144
Codecov Report
@@ Coverage Diff @@
## master #10 +/- ##
=========================================
+ Coverage 88.37% 88.4% +0.02%
=========================================
Files 9 9
Lines 826 828 +2
=========================================
+ Hits 730 732 +2
Misses 71 71
Partials 25 25
Continue to review full report at Codecov.
|
Sorry, the actual commit was gonum/gonum@5d5638e#diff-ec91e1862f48b77650f8a609837f895d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your PR and addressing this. Could you possibly make the small stylistic change below? Thank you so much for submitting this fix. Thanks, James
dimreduction.go
Outdated
@@ -186,7 +186,9 @@ func (p *PCA) Transform(m mat.Matrix) (mat.Matrix, error) { | |||
|
|||
//var proj mat.Dense | |||
var proj sparse.CSR | |||
proj.Mul(m.T(), p.pc.VectorsTo(nil).Slice(0, r, 0, p.K)) | |||
dst := mat.Dense{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please use the form:
var dst mat.Dense
to initialise dst
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want it grouped with the proj
declaration?
dst := mat.Dense{} | |
var ( | |
proj sparse.CSR | |
dst mat.Dense | |
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've gone ahead and committed the changes. I left the variables ungrouped to be consistent with your other declarations.
make sure variable declaration is consistent
Thanks! |
Brilliant, thanks a lot! |
fixes an issue caused by
gonum/gonum@16f4144