-
Notifications
You must be signed in to change notification settings - Fork 72
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 DES #490
Add DES #490
Conversation
66d00fc
to
dbbf329
Compare
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.
clang-tidy made some suggestions
578470b
to
4edd689
Compare
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.
The first part of the review. I will check the rest of the code later.
fdac96a
to
a72e340
Compare
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.
clang-tidy made some suggestions
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.
clang-tidy made some suggestions
85917ad
to
339102d
Compare
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.
Oh, by the way, I feel like I left a comment somewhere that asks to change
std::vector a;
loop (x : vector b) {a.push_back(foo(x))}
to
std::vector a(b.size());
loop (x : vector b) {a.push_back(foo(x))}
instead of
std::vector a;
a.reserve(b.size());
loop (x : vector b) {a.push_back(foo(x))}
which is, of course, wrong, but I don't remember where :)
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.
clang-tidy made some suggestions
src/core/algorithms/nar/des/des.cpp
Outdated
auto compare_by_fitness = [](EncodedNAR const& a, EncodedNAR const& b) { | ||
return a.GetQualities().fitness > b.GetQualities().fitness; | ||
}; | ||
std::sort(population.begin(), population.end(), compare_by_fitness); |
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 don't see ranges
in the updated version
auto resulting_nar = model::NAR(); | ||
|
||
std::vector<size_t> feature_order(encoded_value_ranges_.size()); | ||
std::iota(std::begin(feature_order), std::end(feature_order), 0); |
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 don't see that in the updated version
LGTM apart from those last five requested changes |
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. The one thing left is to fix commit history. We try to make sure that newer commits don't fix older commit within same PR.
7b0a428
to
322e218
Compare
322e218
to
1519a76
Compare
Add differential evolution solver algorithm for mining numerical association rules.