2using System.Collections.Generic;
21 [TypeConverter(typeof(ExpandableObjectConverter))]
36 [Description(
"Specifies the axis of the probability, default = 1")]
39 get {
return m_nAxis; }
40 set { m_nAxis = value; }
48 get {
return m_meanErrorType; }
49 set { m_meanErrorType = value; }
53 public override object Load(
System.IO.BinaryReader br,
bool bNewInstance =
true)
69 m_meanErrorType = p.m_meanErrorType;
89 rgChildren.
Add(
"axis",
axis.ToString());
92 return new RawProto(strName,
"", rgChildren);
105 if ((strVal = rp.
FindValue(
"axis")) !=
null)
106 p.
axis =
int.Parse(strVal);
108 if ((strVal = rp.
FindValue(
"mean_error_type")) !=
null)
119 throw new Exception(
"The mean _error_type parameter must be one of the following: MSE, MAE");
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 MeanErrorLossLayerParameter.
MEAN_ERROR mean_error_type
[optional, default = MSE] Specifies the type of mean error to use.
MeanErrorLossParameter()
Constructor for the parameter.
static MeanErrorLossParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
override RawProto ToProto(string strName)
Convert the parameter into a RawProto.
int axis
[optional, default = 1] Specifies the axis of the probability.
override object Load(System.IO.BinaryReader br, bool bNewInstance=true)
Load the parameter from a binary reader.
override void Copy(LayerParameterBase src)
Copy on parameter to another.
override LayerParameterBase Clone()
Creates a new copy of this instance of the parameter.
The MyCaffe.basecode contains all generic types used throughout MyCaffe.
The MyCaffe.common namespace contains common MyCaffe classes.
MEAN_ERROR
Defines the type of Mean Error to use.
The MyCaffe.param namespace contains parameters used to create models.
The MyCaffe namespace contains the main body of MyCaffe code that closesly tracks the C++ Caffe open-...