2using System.Collections.Generic;
19 [TypeConverter(typeof(ExpandableObjectConverter))]
23 int m_nHiddenSize = 256;
24 int m_nOdeUnfolds = 6;
25 float m_fEpsilon = 1e-08f;
26 float m_fGleakInitMin = 0.001f;
27 float m_fGleakInitMax = 1.0f;
28 float m_fVleakInitMin = -0.2f;
29 float m_fVleakInitMax = 0.2f;
30 float m_fCmInitMin = 0.4f;
31 float m_fCmInitMax = 0.6f;
32 float m_fWInitMin = 0.001f;
33 float m_fWInitMax = 1.0f;
34 float m_fSigmaInitMin = 3.0f;
35 float m_fSigmaInitMax = 8.0f;
36 float m_fMuInitMin = 0.3f;
37 float m_fMuInitMax = 0.8f;
38 float m_fSensoryWInitMin = 0.001f;
39 float m_fSensoryWInitMax = 1.0f;
40 float m_fSensorySigmaInitMin = 3.0f;
41 float m_fSensorySigmaInitMax = 8.0f;
42 float m_fSensoryMuInitMin = 0.3f;
43 float m_fSensoryMuInitMax = 0.8f;
53 [Description(
"Specifies the input size.")]
56 get {
return m_nInputSize; }
57 set { m_nInputSize = value; }
63 [Description(
"Specifies the number of hidden units (default = 256).")]
66 get {
return m_nHiddenSize; }
67 set { m_nHiddenSize = value; }
73 [Description(
"Specifies the number of unfolds run by the ode (default = 6).")]
76 get {
return m_nOdeUnfolds; }
77 set { m_nOdeUnfolds = value; }
83 [Description(
"Specifies the epsilon used to avoid divide by zero (default = 1e-08).")]
86 get {
return m_fEpsilon; }
87 set { m_fEpsilon = value; }
93 [Description(
"Specifies the initial gleak min value (default = 0.001f).")]
96 get {
return m_fGleakInitMin; }
97 set { m_fGleakInitMin = value; }
103 [Description(
"Specifies the initial gleak max value (default = 1.0f).")]
106 get {
return m_fGleakInitMax; }
107 set { m_fGleakInitMax = value; }
113 [Description(
"Specifies the initial vleak min value (default = -0.2f).")]
116 get {
return m_fVleakInitMin; }
117 set { m_fVleakInitMin = value; }
123 [Description(
"Specifies the initial vleak max value (default = 0.2f).")]
126 get {
return m_fVleakInitMax; }
127 set { m_fVleakInitMax = value; }
133 [Description(
"Specifies the initial cm min value (default = 0.4f).")]
136 get {
return m_fCmInitMin; }
137 set { m_fCmInitMin = value; }
143 [Description(
"Specifies the initial cm max value (default = 0.6f).")]
146 get {
return m_fCmInitMax; }
147 set { m_fCmInitMax = value; }
153 [Description(
"Specifies the initial w min value (default = 0.001f).")]
156 get {
return m_fWInitMin; }
157 set { m_fWInitMin = value; }
163 [Description(
"Specifies the initial w max value (default = 1.0f).")]
166 get {
return m_fWInitMax; }
167 set { m_fWInitMax = value; }
173 [Description(
"Specifies the initial sigma min value (default = 3.0f).")]
176 get {
return m_fSigmaInitMin; }
177 set { m_fSigmaInitMin = value; }
183 [Description(
"Specifies the initial sigma max value (default = 8.0f).")]
186 get {
return m_fSigmaInitMax; }
187 set { m_fSigmaInitMax = value; }
193 [Description(
"Specifies the initial mu min value (default = 0.3f).")]
196 get {
return m_fMuInitMin; }
197 set { m_fMuInitMin = value; }
203 [Description(
"Specifies the initial mu max value (default = 0.8f).")]
206 get {
return m_fMuInitMax; }
207 set { m_fMuInitMax = value; }
213 [Description(
"Specifies the initial sensory_w min value (default = 0.001f).")]
216 get {
return m_fSensoryWInitMin; }
217 set { m_fSensoryWInitMin = value; }
223 [Description(
"Specifies the initial sensory_w max value (default = 1.0f).")]
226 get {
return m_fSensoryWInitMax; }
227 set { m_fSensoryWInitMax = value; }
233 [Description(
"Specifies the initial sensory_sigma min value (default = 3.0f).")]
236 get {
return m_fSensorySigmaInitMin; }
237 set { m_fSensorySigmaInitMin = value; }
243 [Description(
"Specifies the initial sensory_sigma max value (default = 8.0f).")]
246 get {
return m_fSensorySigmaInitMax; }
247 set { m_fSensorySigmaInitMax = value; }
253 [Description(
"Specifies the initial sensory_mu min value (default = 0.3f).")]
256 get {
return m_fSensoryMuInitMin; }
257 set { m_fSensoryMuInitMin = value; }
263 [Description(
"Specifies the initial sensory_mu max value (default = 0.8f).")]
266 get {
return m_fSensoryMuInitMax; }
267 set { m_fSensoryMuInitMax = value; }
271 public override object Load(
System.IO.BinaryReader br,
bool bNewInstance =
true)
332 rgChildren.
Add(
"epsilon",
epsilon.ToString());
353 return new RawProto(strName,
"", rgChildren);
366 if ((strVal = rp.
FindValue(
"input_size")) !=
null)
369 if ((strVal = rp.
FindValue(
"hidden_size")) !=
null)
372 if ((strVal = rp.
FindValue(
"ode_unfolds")) !=
null)
375 if ((strVal = rp.
FindValue(
"epsilon")) !=
null)
378 if ((strVal = rp.
FindValue(
"gleak_init_min")) !=
null)
381 if ((strVal = rp.
FindValue(
"gleak_init_max")) !=
null)
384 if ((strVal = rp.
FindValue(
"vleak_init_min")) !=
null)
387 if ((strVal = rp.
FindValue(
"vleak_init_max")) !=
null)
390 if ((strVal = rp.
FindValue(
"cm_init_min")) !=
null)
393 if ((strVal = rp.
FindValue(
"cm_init_max")) !=
null)
396 if ((strVal = rp.
FindValue(
"w_init_min")) !=
null)
399 if ((strVal = rp.
FindValue(
"w_init_max")) !=
null)
402 if ((strVal = rp.
FindValue(
"sigma_init_min")) !=
null)
405 if ((strVal = rp.
FindValue(
"sigma_init_max")) !=
null)
408 if ((strVal = rp.
FindValue(
"mu_init_min")) !=
null)
411 if ((strVal = rp.
FindValue(
"mu_init_max")) !=
null)
414 if ((strVal = rp.
FindValue(
"sensory_w_init_min")) !=
null)
417 if ((strVal = rp.
FindValue(
"sensory_w_init_max")) !=
null)
420 if ((strVal = rp.
FindValue(
"sensory_sigma_init_min")) !=
null)
423 if ((strVal = rp.
FindValue(
"sensory_sigma_init_max")) !=
null)
426 if ((strVal = rp.
FindValue(
"sensory_mu_init_min")) !=
null)
429 if ((strVal = rp.
FindValue(
"sensory_mu_init_max")) !=
null)
static float ParseFloat(string strVal)
Parse float values using the US culture if the decimal separator = '.', then using the native culture...
The RawProtoCollection class is a list of RawProto objects.
void Add(RawProto p)
Adds a RawProto to the collection.
The RawProto class is used to parse and output Google prototxt file data.
static RawProto Parse(string str)
Parses a prototxt and places it in a new RawProto.
string FindValue(string strName)
Searches for a falue of a node within this nodes children.
The LayerParameterBase is the base class for all other layer specific parameters.
Specifies the parameters for the LtcUnitLayer used by the CfCLayer.
float sensory_sigma_init_min
Specifies the initial sensory_sigma min value (default = 3.0f).
int hidden_size
Specifies the number of hidden units (default = 256).
override void Copy(LayerParameterBase src)
Copy on parameter to another.
LtcUnitParameter()
Constructor for the parameter.
float mu_init_max
Specifies the initial mu max value (default = 0.8f).
float w_init_max
Specifies the initial w max value (default = 1.0f).
float cm_init_min
Specifies the initial cm min value (default = 0.4f).
float sensory_mu_init_min
Specifies the initial sensory_mu min value (default = 0.3f).
float sigma_init_max
Specifies the initial sigma max value (default = 8.0f).
float sensory_w_init_min
Specifies the initial sensory_w min value (default = 0.001f).
float vleak_init_max
Specifies the initial vleak max value (default = 0.2f).
float sensory_sigma_init_max
Specifies the initial sensory_sigma max value (default = 8.0f).
float sigma_init_min
Specifies the initial sigma min value (default = 3.0f).
float sensory_mu_init_max
Specifies the initial sensory_mu max value (default = 0.8f).
float w_init_min
Specifies the initial w min value (default = 0.001f).
override RawProto ToProto(string strName)
Convert the parameter into a RawProto.
float gleak_init_min
Specifies the initial gleak min value (default = 0.001f).
float epsilon
Specifies the epsilon used to avoid divide by zero (default = 1e-08).
float cm_init_max
Specifies the initial cm max value (default = 0.6f).
float vleak_init_min
Specifies the initial vleak min value (default = -0.2f).
static LtcUnitParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
float mu_init_min
Specifies the initial mu min value (default = 0.3f).
int ode_unfolds
Specifies the number of unfolds run by the ode (default = 6).
float sensory_w_init_max
Specifies the initial sensory_w max value (default = 1.0f).
override LayerParameterBase Clone()
Creates a new copy of this instance of the parameter.
int input_size
Specifies the input size.
float gleak_init_max
Specifies the initial gleak max value (default = 1.0f).
override object Load(System.IO.BinaryReader br, bool bNewInstance=true)
Load the parameter from a binary reader.
The MyCaffe.basecode contains all generic types used throughout MyCaffe.
The MyCaffe namespace contains the main body of MyCaffe code that closesly tracks the C++ Caffe open-...