-
Notifications
You must be signed in to change notification settings - Fork 78
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
Add gaussian random vector generation #595
Add gaussian random vector generation #595
Conversation
Best reviewed: commit by commit
Optimal code review plan
|
[CHATOPS:HELP] ChatOps commands.
|
Codecov Report
@@ Coverage Diff @@
## master #595 +/- ##
==========================================
- Coverage 12.21% 11.78% -0.44%
==========================================
Files 407 407
Lines 21236 21254 +18
==========================================
- Hits 2594 2504 -90
- Misses 18360 18473 +113
+ Partials 282 277 -5
Continue to review full report at Codecov.
|
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.
LGTM
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.
LGTM
/rebase |
[REBASE] Rebase triggered by vankichi for branch: feature/benchmark/generate_gaussian_random_vector |
Signed-off-by: Kosuke Morimoto <kou.morimoto@gmail.com>
90823bd
to
938d847
Compare
[FORMAT] Updating license headers and formatting go codes triggered by vankichi. |
Signed-off-by: vdaas-ci <ci@vdaas.org>
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.
[APPROVED] This PR is approved by vankichi.
train[i] = make([]float32, dim) | ||
query[i] = make([]float32, dim) | ||
for j := range train[i] { | ||
train[i][j] = float32(rand.NormFloat64() * stdDev + mean) |
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.
[golangci] reported by reviewdog 🐶
File is not goimports
-ed (goimports)
Description:
This PR implements generating random vector from gaussian distribution.
And this PR includes a little refactor of logging.
Related Issue:
Nothing
How Has This Been Tested?:
Nothing
Environment:
Types of changes:
Changes to Core Features:
Checklist: