Rosetta 3.4
Public Member Functions | Public Attributes
protocols::sparta::ANN Class Reference

#include <ANN.hh>

Collaboration diagram for protocols::sparta::ANN:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ANN ()
 ANN (const std::string &dPATH, const std::string &dNAME_PREFIX)
 ANN (int N1_nodeI, int N1_nodeH, int N1_nodeO, const std::string &dPATH, const std::string &dNAME_PREFIX)
 ANN (int N1_nodeI, int N1_nodeH, int N1_nodeO, int N2_nodeI, int N2_nodeH, int N2_nodeO, const std::string &dPATH, const std::string &dNAME_PREFIX)
void init (int N1_nodeI, int N1_nodeH, int N1_nodeO, int N2_nodeI, int N2_nodeH, int N2_nodeO, const std::string &dPATH, const std::string &dNAME_PREFIX)
void getSlashChar ()
void set_input_code (int c)
void loadWeights ()
void loadWeightBias3 (const std::string &fName, boost::unordered_map< int, utility::vector0< float > > &W1, utility::vector0< float > &B1, boost::unordered_map< int, utility::vector0< float > > &W2, utility::vector0< float > &B2, boost::unordered_map< int, utility::vector0< float > > &W3, utility::vector0< float > &B3, int N_W_row, int N_W_col, int N_B)
void calcLevel1 ()
void calcLevel2 ()
void runSpartaANN (boost::unordered_map< int, utility::vector0< float > > &inMatrix)
void applyANNTransformation (utility::vector0< float > &inp, boost::unordered_map< int, utility::vector0< float > > &w, utility::vector0< float > &b, utility::vector0< float > &out, int code)
void applyVecAverage (utility::vector0< float > &v1, utility::vector0< float > &v2, utility::vector0< float > &v3, utility::vector0< float > &vout)
void applyVecNormalization (utility::vector0< float > &v)
float getConfidence (utility::vector0< float > &v)
int getNumberMissCS (utility::vector0< float > &v)
char * ftoa (float n, char *buff, char f='g', int prec=6)
char * itoa (int n, char *buff, int base=10)

Public Attributes

boost::unordered_map< int,
utility::vector0< float > > 
ANN_IN_MTX
boost::unordered_map< int,
utility::vector0< float > > 
ANN_IN_MTX_LEVEL1
boost::unordered_map< int,
utility::vector0< float > > 
ANN_IN_MTX_LEVEL2
boost::unordered_map< int,
utility::vector0< float > > 
ANN_OUT_MTX_LEVEL1
boost::unordered_map< int,
boost::unordered_map
< std::string, std::string >
>::iterator 
it
boost::unordered_map< int,
utility::vector0< float > > 
ANN_OUT_MTX_LEVEL2

Constructor & Destructor Documentation

protocols::sparta::ANN::ANN ( )
protocols::sparta::ANN::ANN ( const std::string &  dPATH,
const std::string &  dNAME_PREFIX 
)
protocols::sparta::ANN::ANN ( int  N1_nodeI,
int  N1_nodeH,
int  N1_nodeO,
const std::string &  dPATH,
const std::string &  dNAME_PREFIX 
)
protocols::sparta::ANN::ANN ( int  N1_nodeI,
int  N1_nodeH,
int  N1_nodeO,
int  N2_nodeI,
int  N2_nodeH,
int  N2_nodeO,
const std::string &  dPATH,
const std::string &  dNAME_PREFIX 
)

Member Function Documentation

void protocols::sparta::ANN::applyANNTransformation ( utility::vector0< float > &  inp,
boost::unordered_map< int, utility::vector0< float > > &  w,
utility::vector0< float > &  b,
utility::vector0< float > &  out,
int  code 
)
void protocols::sparta::ANN::applyVecAverage ( utility::vector0< float > &  v1,
utility::vector0< float > &  v2,
utility::vector0< float > &  v3,
utility::vector0< float > &  vout 
)
void protocols::sparta::ANN::applyVecNormalization ( utility::vector0< float > &  v)
void protocols::sparta::ANN::calcLevel1 ( )
void protocols::sparta::ANN::calcLevel2 ( )
char * protocols::sparta::ANN::ftoa ( float  n,
char *  buff,
char  f = 'g',
int  prec = 6 
)
float protocols::sparta::ANN::getConfidence ( utility::vector0< float > &  v)

References MAX, and MIN.

int protocols::sparta::ANN::getNumberMissCS ( utility::vector0< float > &  v)
void protocols::sparta::ANN::getSlashChar ( )
void protocols::sparta::ANN::init ( int  N1_nodeI,
int  N1_nodeH,
int  N1_nodeO,
int  N2_nodeI,
int  N2_nodeH,
int  N2_nodeO,
const std::string &  dPATH,
const std::string &  dNAME_PREFIX 
)
char * protocols::sparta::ANN::itoa ( int  n,
char *  buff,
int  base = 10 
)
void protocols::sparta::ANN::loadWeightBias3 ( const std::string &  fName,
boost::unordered_map< int, utility::vector0< float > > &  W1,
utility::vector0< float > &  B1,
boost::unordered_map< int, utility::vector0< float > > &  W2,
utility::vector0< float > &  B2,
boost::unordered_map< int, utility::vector0< float > > &  W3,
utility::vector0< float > &  B3,
int  N_W_row,
int  N_W_col,
int  N_B 
)
void protocols::sparta::ANN::loadWeights ( )
void protocols::sparta::ANN::runSpartaANN ( boost::unordered_map< int, utility::vector0< float > > &  inMatrix)
void protocols::sparta::ANN::set_input_code ( int  c)

Member Data Documentation

boost::unordered_map< int, boost::unordered_map< std::string, std::string> >::iterator protocols::sparta::ANN::it

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines