c++ Weightless Artificial Neural Network library
- git clone https://github.com/firmino/libwann
- cd libwann
- make all (necessary clang++)
- sudo make install
WiSARD(int retinaLength,
int numBitsAddr,
bool useBleaching=true,
float confidenceThreshold=0.1,
int defaultBleaching_b=1,
bool randomizePositions=true,
bool isCummulative=true,
bool ignoreZeroAddr=false);
#include <wann/WiSARD.hpp>
// import and other stuffs
vector<vector<int>> input_X;
vector<string> input_y;
vector<vector<int>> testing_X;
// load data into input_X, input_y and testing_X
int retinaLength = 10;
int numBitsAddr = 16;
WiSARD *w = new WiSARD(retinaLength, numBitsAddr);
w->fit(input_X, input_y);
vector<string> result = w->predict(testing_X);