emergent 8.2.2 UnitSpec_cpp Class Reference
emergent 8.2.2   Home · Wiki Docs For: UnitSpec_cpp · Emergent Help Browser 

UnitSpec_cpp Class Reference

plain C++ version of UnitSpec

See for more info: Wiki Docs For: UnitSpec_cpp

 #include <UnitSpec_cpp>

defined at: /mnt/ssd/grey/local/include/Emergent/UnitSpec_cpp.h :29-37

Inherits From: BaseSpec_cpp, taNBase_cpp, taOBase_cpp, taBase_cpp

Inherited By: UnitSpec_cpp*, UnitSpec_cpp&, const UnitSpec_cpp, BpUnitSpec_cpp, LeabraUnitSpec_cpp

Index: SubTypes, Members, Methods, Static Members, Static Methods, Expert Members, Expert Methods

Sub Types


Regular (preferred) Member and Method Documentation

Members

Member Category: Activation

Member Category: Statistic

Methods

Method Category: Activation

Method Category: Learning

Method Category: State

Method Category: Statistic

Method Category: Structure

Method Category: _NoCategory


Member Documentation

Member Category: Activation

UnitSpec_cpp::act_range : MinMaxRange_cpp

range of activation for units

Member Category: Statistic

UnitSpec_cpp::sse_tol : float

tolerance for computing sum-squared error and other error metrics on a per-unit basis


Method Documentation

Method Category: Activation

void UnitSpec_cpp::ApplyInputData ( UnitState_cpp* u, NetworkState_cpp* net, float val, UnitState_cpp::ExtFlags act_ext_flags, bool na_by_range )

apply input data value according to ext flags

Show Source Code

void UnitSpec_cpp::Compute_Act ( UnitState_cpp* u, NetworkState_cpp* net, int thr_no )

compute the activation value of the unit: what it sends to other units

Show Source Code

void UnitSpec_cpp::Compute_Netin ( UnitState_cpp* u, NetworkState_cpp* net, int thr_no )

compute net input: activations times weights (receiver based)

Show Source Code

void UnitSpec_cpp::Compute_NetinAct ( UnitState_cpp* u, NetworkState_cpp* net, int thr_no )

compute the netinput (receiver-based) and then activation value of the unit: what it sends to other units

Show Source Code

void UnitSpec_cpp::Compute_SentNetin ( UnitState_cpp* u, NetworkState_cpp* net, float sent_netin )

called by network-level Send_Netin function to integrate sent netin value with current net input value -- default is just to set to net val + bias wt if avail

Show Source Code

void UnitSpec_cpp::Init_Acts ( UnitState_cpp* u, NetworkState_cpp* net, int thr_no )

initialize unit activation state variables

Show Source Code

void UnitSpec_cpp::Init_InputData ( UnitState_cpp* u, NetworkState_cpp* net, int thr_no )

initialize unit activation state variables for input data

Show Source Code

void UnitSpec_cpp::Init_UnitState ( UnitState_cpp* u, NetworkState_cpp* net, int thr_no )

initialize all unit state -- do NOT access anything else, e.g., at congroup level

Show Source Code

Method Category: Learning

void UnitSpec_cpp::Compute_Weights ( UnitState_cpp* u, NetworkState_cpp* net, int thr_no )

update weights from deltas

Show Source Code

void UnitSpec_cpp::Compute_dWt ( UnitState_cpp* u, NetworkState_cpp* net, int thr_no )

compute change in weights: the mechanism of learning

Show Source Code

void UnitSpec_cpp::Init_Weights ( UnitState_cpp* u, NetworkState_cpp* net, int thr_no )

init weight state variables

Show Source Code

void UnitSpec_cpp::Init_dWt ( UnitState_cpp* u, NetworkState_cpp* net, int thr_no )

initialize the weight change variables

Show Source Code

Method Category: State

int UnitSpec_cpp::GetStateSpecType ( )

derived classes MUST override this and pass correct global type id

Show Source Code

Method Category: Statistic

bool UnitSpec_cpp::Compute_PRerr ( UnitState_cpp* u, NetworkState_cpp* net, int thr_no, float& true_pos, float& false_pos, float& false_neg, float& true_neg )

compute precision and recall error statistics for this unit -- true positive, false positive, false negative and true negative -- returns true if unit actually has a target value specified (otherwise everything is 0) -- precision = tp / (tp + fp), recall = tp / (tp + fn), fmeasure = 2 * p * r / (p + r), mcc = ((tp*tn) - (fp*fn)) / sqrt((tp+fp)*(tp+fn)*(tn+fp)*(tn+fn))

Show Source Code

float UnitSpec_cpp::Compute_SSE ( UnitState_cpp* u, NetworkState_cpp* net, int thr_no, bool& has_targ )

compute sum squared error for this unit -- uses sse_tol so error is 0 if within tolerance -- has_targ indicates if there is actually a target value (else the return value is 0)

Show Source Code

Method Category: Structure

ConSpec_cpp* UnitSpec_cpp::GetBiasSpec ( NetworkState_cpp* net )

get the bias con spec

Show Source Code

void UnitSpec_cpp::Init_Weights_post ( UnitState_cpp* u, NetworkState_cpp* net, int thr_no )

post-initialize state variables (ie. for scaling symmetrical weights, other wt state keyed off of weights, etc) -- threaded for speed

Show Source Code

void UnitSpec_cpp::LoadBiasWtVal ( float bwt, UnitState_cpp* u, NetworkState_cpp* net )

load bias weight value into bias weights of given unit -- handles any post-loading updates directly

Show Source Code

Method Category: _NoCategory

void UnitSpec_cpp::Initialize_core ( )

Show Source Code

Static Member and Method Documentation

Static Members

Static Methods


Static Method Documentation


Expert Member and Method Documentation

Expert Members

Expert Member Category: _NoCategory

Expert Methods


Expert Member Documentation

Expert Member Category: _NoCategory

UnitSpec_cpp::bias_spec_idx : int

index of bias con spec in list of specs

UnitSpec_cpp::spec_idx : int

index of this spec in list of specs


Expert Method Documentation


Copyright © 2017Regents of the University of Colorado, Carnegie Mellon University, Princeton University.
emergent 8.2.2