quick start:g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_pr.a #include <NeuralNetwork.h> boolean setEpochs(long arg); long getEpochs(); boolean setLearningRate(float arg); float getLearningRate(); boolean setMomentum(float arg); float getMomentum(); boolean setBias(float arg); float getBias(); boolean init(long epochs, long units, long layers = DEF_HIDDEN_LAYERS, float bias = DEF_BIAS, float rate = DEF_ETA, float momentum = DEF_MOMENTUM); boolean loadFeatures(String& arg); boolean loadOutputs(String& arg); boolean loadTestFeatures(String& arg); boolean loadTestOutputs(String& arg); boolean train(String& train, String& output, String& model); boolean test(String& model, String& test, String& output); boolean writeModel(String& arg);
description:none.
static const String CLASS_NAME;
static const String DEF_PARAM;
static const String DEF_COMMENT_TAG;
static const float DEF_ETA = 0.35;
static const float DEF_BIAS = 1.0;
static const float DEF_MOMENTUM = 0.1;
static const long DEF_EPOCHS = 1;
static const long DEF_HIDDEN_UNITS = 1;
static const long DEF_HIDDEN_LAYERS = 1;
Vector<VectorFloat> features_d;
Vector<VectorFloat> outputs_d;
Vector<VectorFloat> test_features_d;
Vector<VectorFloat> test_outputs_d;
static Integral::DEBUG debug_level_d;
static MemoryManager mgr_d;
static const String& name();
static boolean diagnose(Integral::DEBUG debug_level);
static boolean setDebug(Integral::DEBUG level);
boolean debug(const unichar* msg) const;
~NeuralNetwork();
NeuralNetwork();
NeuralNetwork(const NeuralNetwork& arg);
boolean assign(const NeuralNetwork& copy_node);
NeuralNetwork& operator= (const NeuralNetwork& arg);
not present.
not present.
static void* operator new(size_t size);
static void* operator new[](size_t size);
static void operator delete(void* ptr);
static void operator delete[](void* ptr);
static boolean setGrowSize(long grow_size);
boolean clear(Integral::CMODE cmode = Integral::DEF_CMODE);
boolean setEpochs(long arg);
long getEpochs();
boolean setLearningRate(float arg);
float getLearningRate();
boolean setMomentum(float arg);
float getMomentum();
boolean setBias(float arg);
float getBias();
boolean init(long epochs, long units, long layers = DEF_HIDDEN_LAYERS, float bias = DEF_BIAS, float rate = DEF_ETA, float momentum = DEF_MOMENTUM);
boolean loadFeatures(String& arg);
boolean loadOutputs(String& arg);
boolean loadTestFeatures(String& arg);
boolean loadTestOutputs(String& arg);
boolean train(String& train, String& output, String& model);
boolean test(String& model, String& test, String& output);
boolean writeModel(String& arg);
float bias_d;
float eta_d;
float momentum_d;
long epochs_d;
MatrixFloat w1_d;
MatrixFloat w2_d;
Vector<MatrixFloat> h1_d;
Vector<VectorFloat> hidden_layers_d;
VectorFloat input_layer_d;
VectorFloat output_layer_d;