#include <nn_hebbian.h>
Inheritance diagram for mimas::nn_hebbian:
Public Member Functions | |
nn_hebbian (void) | |
constructor | |
~nn_hebbian (void) | |
destructor | |
void | init (int rows, int cols) |
create a Hebbian network with defined number rows and columns | |
void | setTrainingType (int type) |
set training type to 0=LTP, 1=post-not-pre-LTD, 2=pre-not-post-LTD | |
void | setLearningRate (double lr) |
set the learning rate | |
void | update (matrix_tool &pat, double targetval) throw (exception) |
update the Hebbian weights given pattern pat | |
double | recall (matrix_tool &pat) throw (exception) |
given pattern pat return the predicted output | |
void | useWeights (matrix_tool &weight_matrix) |
use the weights given by weight_matrix | |
matrix_tool | getWeights (void) |
return the weights that are stored |
Definition at line 16 of file nn_hebbian.h.
mimas::nn_hebbian::nn_hebbian | ( | void | ) |
mimas::nn_hebbian::~nn_hebbian | ( | void | ) |
destructor
create a Hebbian network with defined number rows and columns
Definition at line 43 of file nn_hebbian.h.
void mimas::nn_hebbian::setTrainingType | ( | int | type | ) |
set training type to 0=LTP, 1=post-not-pre-LTD, 2=pre-not-post-LTD
Definition at line 49 of file nn_hebbian.h.
void mimas::nn_hebbian::setLearningRate | ( | double | lr | ) |
update the Hebbian weights given pattern pat
Definition at line 60 of file nn_hebbian.h.
References MMERROR.
given pattern pat return the predicted output
Definition at line 90 of file nn_hebbian.h.
References MMERROR.
void mimas::nn_hebbian::useWeights | ( | matrix_tool & | weight_matrix | ) |
matrix_tool mimas::nn_hebbian::getWeights | ( | void | ) |