![]() |
KSquare Utilities
|
#include "KKBaseTypes.h"#include "RunLog.h"#include "XmlStream.h"#include "MLClass.h"#include "FeatureVector.h"Go to the source code of this file.
Macros | |
| #define | ASYMSIGMOID 3 |
| #define | BINARY 3 |
| #define | BITS 30 |
| #define | BOMB -99 |
| #define | BOOLE 3 |
| #define | BOOLE_NO 10 |
| #define | ENUM 2 /* integer values that use #defines */ |
| #define | ENUM_NO 9 /* and cannot be changed mid-simulation */ |
| #define | FAILURE -1 |
| #define | FATAL 0 |
| #define | FLOAT 1 |
| #define | FLOAT_NO 8 /* most are used in memory allocation */ |
| #define | GAUSSIAN 1 |
| #define | GETTEST 5 |
| #define | GETTESTFILE 13 |
| #define | GETTRAINING 4 |
| #define | GETTRAININGFILE 12 |
| #define | GO 6 |
| #define | INDEX 31 |
| #define | INITFILE 15 |
| #define | INT 0 |
| #define | INT_MAX 32767 |
| Adapted by Kurt Kramer be a 'class' definition so as to make it more usable in th ePices software world. More... | |
| #define | INT_NO 7 /* parameters only good in net-file */ |
| #define | LINEAR 2 |
| #define | LINELEN 1024 |
| #define | LOSE 23 |
| #define | max(X, Y) ((X > Y)?X:Y) |
| #define | min(X, Y) ((X < Y)?X:Y) |
| #define | NEXTLINE 0 |
| #define | REAL 1 |
| #define | SAVE 14 |
| #define | SIGMOID 0 |
| #define | STAGNANT 21 |
| #define | TIMEOUT 22 |
| #define | uccIGNORE 2 |
| #define | VALUE 11 |
| #define | VARSIGMOID 4 |
| #define | WARN 1 |
| #define | WIN 20 |
Typedefs | |
| typedef bool | Boolean |
| #define ASYMSIGMOID 3 |
Definition at line 222 of file UsfCasCor.h.
| #define BINARY 3 |
Definition at line 241 of file UsfCasCor.h.
| #define BITS 30 |
Definition at line 230 of file UsfCasCor.h.
| #define BOMB -99 |
Definition at line 236 of file UsfCasCor.h.
| #define BOOLE 3 |
Definition at line 199 of file UsfCasCor.h.
| #define BOOLE_NO 10 |
Definition at line 206 of file UsfCasCor.h.
| #define ENUM 2 /* integer values that use #defines */ |
Definition at line 198 of file UsfCasCor.h.
| #define ENUM_NO 9 /* and cannot be changed mid-simulation */ |
Definition at line 205 of file UsfCasCor.h.
| #define FAILURE -1 |
Definition at line 216 of file UsfCasCor.h.
| #define FATAL 0 |
Definition at line 233 of file UsfCasCor.h.
| #define FLOAT 1 |
Definition at line 197 of file UsfCasCor.h.
| #define FLOAT_NO 8 /* most are used in memory allocation */ |
Definition at line 204 of file UsfCasCor.h.
| #define GAUSSIAN 1 |
Definition at line 220 of file UsfCasCor.h.
| #define GETTEST 5 |
Definition at line 201 of file UsfCasCor.h.
| #define GETTESTFILE 13 |
Definition at line 209 of file UsfCasCor.h.
| #define GETTRAINING 4 |
Definition at line 200 of file UsfCasCor.h.
| #define GETTRAININGFILE 12 |
Definition at line 208 of file UsfCasCor.h.
| #define GO 6 |
Definition at line 202 of file UsfCasCor.h.
| #define INDEX 31 |
Definition at line 231 of file UsfCasCor.h.
| #define INITFILE 15 |
Definition at line 211 of file UsfCasCor.h.
| #define INT 0 |
Definition at line 196 of file UsfCasCor.h.
| #define INT_MAX 32767 |
Adapted by Kurt Kramer be a 'class' definition so as to make it more usable in th ePices software world.
The original author is _____________. See notes below for original author, etc.
Modified by Kurt Kramer 2012-09-10: Originally written by R. Scott Crowder, III Se below for his comments.
I ported this implementation as found at USF into a c++ Class and integrated into the Pices application. 1) Restructured code as a c++ class. 2) A trained classifier is written to disk and can be reread at a later time. 3) Integrated into the Pices application. 4) Primary use will to be used in a Dual classifier setup along with a Support Vector Machine(SVM)(libSVM) where both classifiers agree on the prediction will the label be returned otherwise the label "UnKnown" will be returned. User will have option to have the common part of the prediction in the class hierarchy returned instead. 5) Added predicted confidence values for each class.
Changes made by Steven Eschrich eschrich@csee.usf.edu Fall, 2001
All network parameters can be passed via command line arguments, try cascor -h for details. Briefly, -i # input epochs -o # output epochs -r # number of new units to add -P make predictions. generates a filestem.pred file with class names as predictions (from a .test file). -N normalize features to 0-1 -f filestem Filestem for data -R use training set (re-substitution)
All other parameters that could be specified in the .net file are specified as -O option=value (e.g. -O UseCache=True)
Support for index files (-I option). That is, the following files are supposed to exist filestem.data filestem.idata filestem.itest (-P only) filestem.names
The .idata and .itest are text files with the index number of the record in .data desired. The .data file must be in fixed-width format, each line padded to the same length with spaces.
Definition at line 186 of file UsfCasCor.h.
| #define INT_NO 7 /* parameters only good in net-file */ |
Definition at line 203 of file UsfCasCor.h.
| #define LINEAR 2 |
Definition at line 221 of file UsfCasCor.h.
| #define LINELEN 1024 |
Definition at line 192 of file UsfCasCor.h.
| #define LOSE 23 |
Definition at line 228 of file UsfCasCor.h.
| #define max | ( | X, | |
| Y | |||
| ) | ((X > Y)?X:Y) |
Definition at line 248 of file UsfCasCor.h.
| #define min | ( | X, | |
| Y | |||
| ) | ((X < Y)?X:Y) |
Definition at line 244 of file UsfCasCor.h.
| #define NEXTLINE 0 |
Definition at line 215 of file UsfCasCor.h.
| #define REAL 1 |
Definition at line 239 of file UsfCasCor.h.
| #define SAVE 14 |
Definition at line 210 of file UsfCasCor.h.
| #define SIGMOID 0 |
Definition at line 219 of file UsfCasCor.h.
| #define STAGNANT 21 |
Definition at line 226 of file UsfCasCor.h.
| #define TIMEOUT 22 |
Definition at line 227 of file UsfCasCor.h.
| #define uccIGNORE 2 |
Definition at line 240 of file UsfCasCor.h.
| #define VALUE 11 |
Definition at line 207 of file UsfCasCor.h.
| #define VARSIGMOID 4 |
Definition at line 223 of file UsfCasCor.h.
| #define WARN 1 |
Definition at line 234 of file UsfCasCor.h.
| #define WIN 20 |
Definition at line 225 of file UsfCasCor.h.
| typedef bool Boolean |
Definition at line 190 of file UsfCasCor.h.