Skip to content

Instantly share code, notes, and snippets.

Hygor hygorxaraujo

Block or report user

Report or block hygorxaraujo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hygorxaraujo
hygorxaraujo / test_imap.cpp
Last active Aug 9, 2018
Test if the IMAp algorithm is using a previous solution.
View test_imap.cpp
#include <memory>
#include "../includes/MLToolkit.hpp"
#include "../includes/IMA.hpp"
using namespace std;
int main(int argc, char *argv[]) {
int p = 2;
double q = p / (p - 1.0);
double flexible = 0;
@hygorxaraujo
hygorxaraujo / test_imap_bug
Last active Aug 9, 2018
Test IMAp output with bug
View test_imap_bug
PARENT
-----------------------------------------------------------------------------
pmf steps updates margin norm secs
-----------------------------------------------------------------------------
1 5108 79753 0.0012269 2272.18 0.493125 RATE: 1
2 6151 90062 0.00371108 2431.51 1.02859 RATE: 1
3 7945 110083 0.00449413 2701.19 1.6839 RATE: 0.978222
4 8497 115039 0.00641715 2766.72 2.37193 RATE: 0.909325
5 9954 133132 0.00778267 2969.67 3.17518 RATE: 0.836951
6 11864 157152 0.00872346 3188.84 4.12341 RATE: 0.820658
@hygorxaraujo
hygorxaraujo / test_imap_bug_fixed
Last active Aug 9, 2018
Test IMAp output with bug fixed
View test_imap_bug_fixed
PARENT
-----------------------------------------------------------------------------
pmf steps updates margin norm secs
-----------------------------------------------------------------------------
1 5108 79753 0.0012269 2272.18 0.666691 RATE: 1
2 6151 90062 0.00371108 2431.51 1.40791 RATE: 1
3 7945 110083 0.00449413 2701.19 2.28332 RATE: 0.978222
4 8497 115039 0.00641715 2766.72 3.19493 RATE: 0.909325
5 9954 133132 0.00778267 2969.67 4.21766 RATE: 0.836951
6 11864 157152 0.00872346 3188.84 5.37292 RATE: 0.820658
You can’t perform that action at this time.