-
Notifications
You must be signed in to change notification settings - Fork 26
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
Implement the merge function in HNSW #432
Conversation
Codecov ReportAttention: Patch coverage is @@ Coverage Diff @@
## main #432 +/- ##
==========================================
+ Coverage 91.24% 91.55% +0.31%
==========================================
Files 151 160 +9
Lines 9859 9905 +46
==========================================
+ Hits 8996 9069 +73
+ Misses 863 836 -27
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
|
struct ODescentParameter : public Parameter { | ||
public: | ||
void | ||
FromJson(const JsonType& json) override; |
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.
construction function
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.
done
Signed-off-by: jinjiabao.jjb <[email protected]>
Signed-off-by: jinjiabao.jjb <[email protected]>
Signed-off-by: jinjiabao.jjb <[email protected]>
src/impl/odescent_graph_builder.h
Outdated
Allocator* allocator_; | ||
|
||
const ODescentParameterPtr odescent_parameter_; |
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.
minor: use short name odescent_param_
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.
done
src/impl/odescent_graph_builder.cpp
Outdated
if (neighbors.size() > max_degree_) { | ||
neighbors.resize(max_degree_); | ||
if (neighbors.size() > odescent_parameter_->max_degree) { | ||
neighbors.resize(odescent_parameter_->max_degree); |
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.
Q: Only do shrink operation ?
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.
yes
src/impl/odescent_graph_builder.h
Outdated
float alpha, | ||
int64_t turn, | ||
float sample_rate, | ||
struct IdsSequence { |
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.
Can replace to std::vector ?
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.
done
Signed-off-by: jinjiabao.jjb <[email protected]>
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
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
#318