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

Hyperparameters estimation for LDA #193

Open
wants to merge 36 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
1aa7032
+ added optimization.h and .gitignore updated
alex2304 Nov 18, 2017
5e3e23c
[opt] dirichlet_optimizer class, digamma function
alex2304 Nov 19, 2017
b8dbc7d
[opt] minka_fpi method draft
alex2304 Nov 19, 2017
3dc03a8
[opt] optimization.h errors fixed, test without MeTa
alex2304 Nov 20, 2017
eeb9168
[opt] debug output
alex2304 Nov 20, 2017
766754f
Adding optimization.cpp
MakKolts Nov 20, 2017
98c3e7d
Merge branch 'develop' of https://github.com/alex2304/meta into develop
Nov 20, 2017
e9c99df
[opt] classes for methods in dirichlet_prior
alex2304 Nov 29, 2017
b11e704
Merge branch 'develop' of https://github.com/alex2304/meta into develop
Nov 29, 2017
54d7272
Deletion of previous stuff
MakKolts Nov 29, 2017
6585189
Test for dirichlet optimizations
MakKolts Nov 29, 2017
c0a357c
Private/public methods
MakKolts Nov 29, 2017
76d32ae
[opt] test indexes
alex2304 Nov 29, 2017
4ccda58
Interface for methods
MakKolts Nov 29, 2017
248c151
Refactoring of optimization interface
MakKolts Nov 29, 2017
61ece78
[opt] tmp for merge
alex2304 Nov 29, 2017
f979264
Tests for all functions at same time
MakKolts Nov 29, 2017
ba00c86
[opt] + term_ids()
alex2304 Nov 29, 2017
1f13f95
[opt] merged dirichlet_prior
alex2304 Nov 29, 2017
ed475b5
[opt] + first method without testing
alex2304 Nov 30, 2017
4528ec6
[opt] *first method builds
alex2304 Nov 30, 2017
312a485
[opt] * method works
alex2304 Nov 30, 2017
b60cc54
[opt] *first method debugged
alex2304 Nov 30, 2017
0a0851c
[opt] method refactored
alex2304 Nov 30, 2017
d726f70
[opt] + method2
alex2304 Nov 30, 2017
4a6a240
Adding constructors and register for new ranker classes
MakKolts Nov 30, 2017
f55e0de
Merge branch 'develop' of https://github.com/alex2304/meta into develop
MakKolts Nov 30, 2017
bc948ce
Add rankers to factory
MakKolts Nov 30, 2017
78d6d5c
[opt] + benchmark
alex2304 Nov 30, 2017
25d89d1
Merge branch 'develop' of https://github.com/alex2304/meta into develop
alex2304 Nov 30, 2017
5bc6ee6
Minor fix foor output
MakKolts Nov 30, 2017
4f8fa1d
[opt] + dirichlet_opt files
alex2304 Nov 30, 2017
c8ddfbf
[opt] + dirichlet_prior_opt
alex2304 Nov 30, 2017
f7b634a
[opt] + MacKay and Peto method
alex2304 Dec 1, 2017
d4b0a8d
[opt] + comments and docs
alex2304 Dec 3, 2017
001fac6
[opt] - test files
alex2304 Dec 4, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add rankers to factory
MakKolts authored and M committed Nov 30, 2017
commit bc948ce7133d9a06738e7699b342506d2119e4c3
21 changes: 21 additions & 0 deletions include/meta/index/ranker/dirichlet_prior.h
Original file line number Diff line number Diff line change
@@ -384,6 +384,27 @@ class dirichlet_mackay_peto: public dirichlet_prior_opt{
*/
template <>
std::unique_ptr<ranker> make_ranker<dirichlet_prior>(const cpptoml::table&);

/**
* Specialization of the factory method used to create dirichlet_digamma_rec
* rankers.
*/
template <>
std::unique_ptr<ranker> make_ranker<dirichlet_digamma_rec>(const cpptoml::table&);

/**
* Specialization of the factory method used to create dirichlet_log_approx
* rankers.
*/
template <>
std::unique_ptr<ranker> make_ranker<dirichlet_log_approx>(const cpptoml::table&);

/**
* Specialization of the factory method used to create dirichlet_mackay_peto
* rankers.
*/
template <>
std::unique_ptr<ranker> make_ranker<dirichlet_mackay_peto>(const cpptoml::table&);
}
}
#endif
3 changes: 3 additions & 0 deletions src/index/ranker/ranker_factory.cpp
Original file line number Diff line number Diff line change
@@ -31,6 +31,9 @@ ranker_factory::ranker_factory()
reg<pivoted_length>();
reg<kl_divergence_prf>();
reg<rocchio>();
reg<dirichlet_digamma_rec>();
reg<dirichlet_log_approx>();
reg<dirichlet_mackay_peto>();
}

std::unique_ptr<ranker> make_ranker(const cpptoml::table& config)