Skip to content
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

Merged
merged 2 commits into from
Oct 15, 2019
Merged

make sure builds don't fail due to change in gonum #10

merged 2 commits into from
Oct 15, 2019

Conversation

johnfrankmorgan
Copy link
Contributor

fixes an issue caused by
gonum/gonum@16f4144

@codecov
Copy link

codecov bot commented Oct 11, 2019

Codecov Report

Merging #10 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
dimreduction.go 77.5% <100%> (+0.57%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 143ee6f...6c76f45. Read the comment docs.

@johnfrankmorgan
Copy link
Contributor Author

Sorry, the actual commit was gonum/gonum@5d5638e#diff-ec91e1862f48b77650f8a609837f895d

@james-bowman james-bowman self-requested a review October 14, 2019 09:52
Copy link
Owner

@james-bowman james-bowman left a 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{}
Copy link
Owner

@james-bowman james-bowman Oct 14, 2019

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.

Copy link
Contributor Author

@johnfrankmorgan johnfrankmorgan Oct 14, 2019

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?

Suggested change
dst := mat.Dense{}
var (
proj sparse.CSR
dst mat.Dense
)

Copy link
Contributor Author

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
@james-bowman james-bowman merged commit 9ab2914 into james-bowman:master Oct 15, 2019
@james-bowman
Copy link
Owner

Thanks!

@johnfrankmorgan
Copy link
Contributor Author

Brilliant, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants