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

Weights Class Reference

Saves network weights in memory for easy and fast access

See for more info: Wiki Docs For: Weights

 #include <Weights>

defined at: /mnt/ssd/grey/local/include/Emergent/Weights.h :29-63

Inherits From: taNBase, taOBase, taBase

Inherited By: Weights*, Weights&, const Weights

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

Sub Types


SubType Documentation


Regular (preferred) Member and Method Documentation

Members

Member Category: _NoCategory

Member Category: taBase

Methods

Method Category: File

Method Category: ObjectMgmt

Method Category: UserData

Method Category: _NoCategory


Member Documentation

Member Category: _NoCategory

Weights::auto_init : bool

automatically initialize network weights with these weights whenever network is built -- only avail for save_with_proj or auto_load weights (for initial auto-build) -- first set of weights with this setting is actually used, if multiple

Weights::auto_load : bool

automatically load weights from file named in load_file -- this makes the project file smaller, but requires managing multiple different files

Weights::batch : int

batch counter: number of times network has been trained over a full sequence of epochs (updated by program)

Weights::epoch : int

epoch counter: number of times a complete set of training patterns has been presented (updated by program)

Weights::load_file : taString

name of file to load weights from for auto_load

Weights::quiet_load : bool

suppress warning messages when loading weights files into the network (not recommended!)

Weights::save_with_proj : bool

save these weights with the project file -- NOTE that this can greatly increase the size of the project file!

Member Category: taBase

taNBase::name : taString

name of the object


Method Documentation

Method Category: File

bool Weights::LoadWeights ( taString& fname )

read weight values in from given file into this object

Show Source Code

bool Weights::SaveWeights ( taString& fname )

write saved weight values in this object out to given file

Show Source Code

Method Category: ObjectMgmt

taString taNBase::GetName ( )

Get the name of the object

Show Source Code

bool taNBase::HasName ( )

does the object have a name field that can be set?

Show Source Code

void taNBase::MakeNameUnique ( )

make sure my name is unique relative to names of objects associated with my owner (e.g., if it is a list object), typically because my name has changed, and owner needs to ensure that all names are unique

Show Source Code

bool taNBase::SetName ( taString& nm )

Set the object's name

Show Source Code

Method Category: UserData

void taOBase::RemoveAllUserData ( )

get rid of our user data list entirely -- this is done automatically when saving something that has no user data items, but you can also force it with this method -- deletes the whole list

Show Source Code

Method Category: _NoCategory

bool taNBase::AddFromTemplate ( taBase* obj, bool& is_acceptable )

handles drops from toolbar - when adding an object to a program, network, etc - e.g. dropping generic data table onto a program - set is_acceptable for objects 'not handled' but which are acceptable

Show Source Code

taBase* taOBase::GetOwner ( )

Show Source Code

TypeDef* Weights::GetTypeDef ( )

Show Source Code

bool Weights::HasWeights ( bool err = true )

check if we have weights currently -- if err then emit error if we don't

Show Source Code

void Weights::WeightsFmNet ( )

save weights from the network we're associated with into this weights object

Show Source Code

bool Weights::WeightsToNet ( )

load weights from this weights file into the network we're associated with

Show Source Code

taSigLink** taOBase::addr_sig_link ( )

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 Member Category: taBase

Expert Methods

Expert Method Category: UserData


Expert Member Documentation

Expert Member Category: _NoCategory

Weights::wt_file : taString

the weights, encoded as a file

Expert Member Category: taBase

taOBase::owner : taBase*

pointer to owner

taOBase::user_data_ : UserDataItem_List*

storage for user data (created if needed) DO NOT ACCESS this list directly -- use the GetUserData / SetUserData etc interface!


Expert Method Documentation

Expert Method Category: UserData

UserDataItem_List* taOBase::GetUserDataList ( bool force = false )

gets the userdatalist for this class

Show Source Code


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