Skip to content

Commit

Permalink
Fixing test library compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvorka committed Jan 14, 2024
1 parent e688f45 commit 153496e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion lib/src/mind/ai/ai.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class Ai
* Associations
*/

// Associations assessment implemenations: AA @ weighted FTS, AA @ BoW
// Associations assessment implementations: AA @ weighted FTS, AA @ BoW
AiAssociationsAssessment* aa;

/*
Expand Down Expand Up @@ -140,6 +140,18 @@ class Ai
* @brief Train associations assessment neural network once memory is learned.
*/
void trainAaNn();

#ifdef DO_MF_DEBUG
public:
static void print(const Note* n, std::vector<std::pair<Note*,float>>& leaderboard) {
std::cout << "Note '" << n->getName() << "' AA leaderboard("<< leaderboard.size() <<"):" << std::endl;
int i=1;
for(auto& nn:leaderboard) {
std::cout << " #" << i++ << " '" << nn.first->getName() << "' ~ " << nn.second << std::endl;
}
}
#endif

};

}
Expand Down

0 comments on commit 153496e

Please sign in to comment.