![]() |
MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
Specifies the filler parameters used to create each Filler. More...
Public Types | |
| enum | FillerType { CONSTANT , SEQUENCE , UNIFORM , GAUSSIAN , XAVIER , MSRA , POSITIVEUNITBALL , BILINEAR } |
| Defines the type of filler. More... | |
| enum | VarianceNorm { FAN_IN = 0 , FAN_OUT = 1 , AVERAGE = 2 } |
| Defines the variance normalization. More... | |
Public Member Functions | |
| FillerParameter (string strType="gaussian", double dfVal=0.0, double dfMean=0.0, double dfStd=1.0) | |
| Filler parameter constructor More... | |
| FillerParameter | Clone () |
| Creates a new copy of this instance of the parameter. More... | |
| override RawProto | ToProto (string strName) |
| Convert the parameter 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 string | GetFillerName (FillerType type) |
| Queries the filler text name corresponding to the FillerType. More... | |
| static FillerParameter | FromProto (RawProto rp) |
| Parses the parameter 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 | type [getset] |
| Specifies the type of filler to use. More... | |
| double | value [getset] |
| Specifies the value used by 'constant' filler. More... | |
| double | min [getset] |
| Specifies the minimum value to use with the 'uniform' filler. More... | |
| double | max [getset] |
| Specifies the maximum value to use with the 'uniform' filler. More... | |
| double | mean [getset] |
| Specifies the mean value to use with the 'gaussian' filler. More... | |
| double | std [getset] |
| Specifies the standard deviation value to use with the 'gaussian' filler. More... | |
| int | sparse [getset] |
| Specifies the sparcity value to use with the 'guassian' filler. More... | |
| VarianceNorm | variance_norm [getset] |
| Specifies the variance normalization method to use with the 'xavier' and 'mrsa' fillers. More... | |
Specifies the filler parameters used to create each Filler.
Definition at line 15 of file FillerParameter.cs.
Defines the type of filler.
| Enumerator | |
|---|---|
| CONSTANT | The constant filler fills a blob with constant values. |
| SEQUENCE | The sequence filler fills a blob with values starting at the constant value and progressing in steps of 0.01. This filler is primarily used for testing. |
| UNIFORM | The uniform filler fills a blob with values from a uniform distribution.
|
| GAUSSIAN | The gaussian filler fills a blob with values from a gaussian distribution.
|
| XAVIER | The xavier filler fills a blob with values from a xavier distribution.
|
| MSRA | The msra filler fills a blob with values from a msra distribution.
|
| POSITIVEUNITBALL | The positive unit ball filler fills a blob with values from a positive unit ball distribution. |
| BILINEAR | The bilinear filler fills a blob with values from a bilinear distribution. |
Definition at line 34 of file FillerParameter.cs.
Defines the variance normalization.
| Enumerator | |
|---|---|
| FAN_IN | Specifies a fan-in variance normalization. |
| FAN_OUT | Specifies a fan-out variance normalization. |
| AVERAGE | Specifies an average variance normalization. |
Definition at line 87 of file FillerParameter.cs.
| MyCaffe.param.FillerParameter.FillerParameter | ( | string | strType = "gaussian", |
| double | dfVal = 0.0, |
||
| double | dfMean = 0.0, |
||
| double | dfStd = 1.0 |
||
| ) |
Filler parameter constructor
NOTE: Caffe defaults to 'constant', however this causes models that do not specifically specify a filler to run with constant 0 filled weights. Using a 'gaussian' as the default fixes this and fills the weights with random numbers.
| strType | Optionally, specifies the type of filler to use. Default = "gaussian" |
| dfVal | Optionally, specifies the value. Default = 0.0 |
| dfMean | Optionally, specifies the mean. Default = 0.0 |
| dfStd | Optionally, specifies the standard deviation. Default = 1.0 |
Definition at line 116 of file FillerParameter.cs.
| FillerParameter MyCaffe.param.FillerParameter.Clone | ( | ) |
Creates a new copy of this instance of the parameter.
Definition at line 293 of file FillerParameter.cs.
|
static |
Parses the parameter from a RawProto.
| rp | Specifies the RawProto to parse. |
Definition at line 350 of file FillerParameter.cs.
|
static |
Queries the filler text name corresponding to the FillerType.
| type | Specifies the FillerType. |
Definition at line 186 of file FillerParameter.cs.
|
virtual |
Convert the parameter into a RawProto.
| strName | Specifies the name to associate with the RawProto. |
Implements MyCaffe.basecode.BaseParameter.
Definition at line 314 of file FillerParameter.cs.
|
getset |
Specifies the maximum value to use with the 'uniform' filler.
Definition at line 243 of file FillerParameter.cs.
|
getset |
Specifies the mean value to use with the 'gaussian' filler.
Definition at line 253 of file FillerParameter.cs.
|
getset |
Specifies the minimum value to use with the 'uniform' filler.
Definition at line 233 of file FillerParameter.cs.
|
getset |
Specifies the sparcity value to use with the 'guassian' filler.
Definition at line 273 of file FillerParameter.cs.
|
getset |
Specifies the standard deviation value to use with the 'gaussian' filler.
Definition at line 263 of file FillerParameter.cs.
|
getset |
Specifies the type of filler to use.
Definition at line 131 of file FillerParameter.cs.
|
getset |
Specifies the value used by 'constant' filler.
Definition at line 223 of file FillerParameter.cs.
|
getset |
Specifies the variance normalization method to use with the 'xavier' and 'mrsa' fillers.
Definition at line 283 of file FillerParameter.cs.