![]() |
MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
Specifies training parameters (multipliers on global learning constants, and the name of other settings used for weight sharing). More...
Public Types | |
| enum | DimCheckMode { STRICT = 0 , PERMISSIVE = 1 } |
| Defines the dimension check mode. More... | |
Public Member Functions | |
| ParamSpec () | |
| The ParamSpec constructor. More... | |
| ParamSpec (string strName) | |
| The ParamSpec constructor. More... | |
| ParamSpec (double dfLrMult, double dfDecayMult, string strName=null) | |
| The ParamSpec constructor. More... | |
| void | Save (BinaryWriter bw) |
| Saves the ParamSpec to a binary writer. More... | |
| object | Load (BinaryReader br, bool bNewInstance) |
| Loads a ParamSpec from a binary reader. More... | |
| object | Clone () |
| Creates a new copy of the ParamSpec. More... | |
| override RawProto | ToProto (string strName) |
| Converts the ParamSpec into a RawProto. More... | |
Public Member Functions inherited from MyCaffe.basecode.BaseParameter | |
| BaseParameter () | |
| Constructor for the parameter. More... | |
| virtual bool | Compare (BaseParameter p) |
| Compare this parameter to another parameter. More... | |
Static Public Member Functions | |
| static ParamSpec | FromProto (RawProto rp) |
| Parses a new ParamSpec from a RawProto. More... | |
Static Public Member Functions inherited from MyCaffe.basecode.BaseParameter | |
| static double | ParseDouble (string strVal) |
| Parse double values using the US culture if the decimal separator = '.', then using the native culture, and if then lastly trying the US culture to handle prototypes containing '.' as the separator, yet parsed in a culture that does not use '.' as a decimal. More... | |
| static bool | TryParse (string strVal, out double df) |
| Parse double values using the US culture if the decimal separator = '.', then using the native culture, and if then lastly trying the US culture to handle prototypes containing '.' as the separator, yet parsed in a culture that does not use '.' as a decimal. More... | |
| static float | ParseFloat (string strVal) |
| Parse float values using the US culture if the decimal separator = '.', then using the native culture, and if then lastly trying the US culture to handle prototypes containing '.' as the separator, yet parsed in a culture that does not use '.' as a decimal. More... | |
| static bool | TryParse (string strVal, out float f) |
| Parse doufloatble values using the US culture if the decimal separator = '.', then using the native culture, and if then lastly trying the US culture to handle prototypes containing '.' as the separator, yet parsed in a culture that does not use '.' as a decimal. More... | |
Properties | |
| string | name [getset] |
| Specifies the name of this parameter. More... | |
| DimCheckMode | share_mode [getset] |
| Specifies whether to require shared weights to have the same shape, or just the same count - defaults to STICT (same shape). More... | |
| double | lr_mult [getset] |
| Specifies the multiplier used on the global learning rate for this parameter. More... | |
| double | decay_mult [getset] |
| Specifies the multiplier used on the global weight decay for this parameter. More... | |
Specifies training parameters (multipliers on global learning constants, and the name of other settings used for weight sharing).
Definition at line 18 of file ParamSpec.cs.
Defines the dimension check mode.
| Enumerator | |
|---|---|
| STRICT | STRICT (default) requires that num, channels, height, width each match. |
| PERMISSIVE | PERMISSIVE requires only the count (num*channels*height*width) to match. |
Definition at line 36 of file ParamSpec.cs.
| MyCaffe.param.ParamSpec.ParamSpec | ( | ) |
The ParamSpec constructor.
Definition at line 62 of file ParamSpec.cs.
| MyCaffe.param.ParamSpec.ParamSpec | ( | string | strName | ) |
The ParamSpec constructor.
| strName | Specifies a name given to the ParamSpec. |
Definition at line 70 of file ParamSpec.cs.
| MyCaffe.param.ParamSpec.ParamSpec | ( | double | dfLrMult, |
| double | dfDecayMult, | ||
| string | strName = null |
||
| ) |
| object MyCaffe.param.ParamSpec.Clone | ( | ) |
Creates a new copy of the ParamSpec.
Definition at line 177 of file ParamSpec.cs.
Parses a new ParamSpec from a RawProto.
| rp | Specifies the RawProto representing the ParamSpec. |
Definition at line 217 of file ParamSpec.cs.
| object MyCaffe.param.ParamSpec.Load | ( | BinaryReader | br, |
| bool | bNewInstance | ||
| ) |
Loads a ParamSpec from a binary reader.
| br | Specifies the binary reader to use. |
| bNewInstance | When true, a new ParamSpec instance is created and loaded, otherwise this instance is loaded. |
Implements MyCaffe.basecode.IBinaryPersist.
Definition at line 108 of file ParamSpec.cs.
| void MyCaffe.param.ParamSpec.Save | ( | BinaryWriter | bw | ) |
Saves the ParamSpec to a binary writer.
| bw | Specifies the binary writer to use. |
Implements MyCaffe.basecode.IBinaryPersist.
Definition at line 94 of file ParamSpec.cs.
|
virtual |
Converts the ParamSpec into a RawProto.
| strName | Specifies a name given to the RawProto. |
Implements MyCaffe.basecode.BaseParameter.
Definition at line 194 of file ParamSpec.cs.
|
getset |
Specifies the multiplier used on the global weight decay for this parameter.
Definition at line 167 of file ParamSpec.cs.
|
getset |
Specifies the multiplier used on the global learning rate for this parameter.
Definition at line 157 of file ParamSpec.cs.
|
getset |
Specifies the name of this parameter.
Definition at line 137 of file ParamSpec.cs.
|
getset |
Specifies whether to require shared weights to have the same shape, or just the same count - defaults to STICT (same shape).
Definition at line 147 of file ParamSpec.cs.