3using System.Collections.Generic;
8using System.Threading.Tasks;
16 [TypeConverter(typeof(ExpandableObjectConverter))]
32 [Description(
"Specifies the label mapping where the original label is mapped to the new label specified.")]
36 set { m_rgMapping.
Mappings = value; }
47 return m_rgMapping.
MapLabel(nLabel, nBoost);
78 m_rgMapping = p.m_rgMapping.
Clone();
101 RawProto rpBase = base.ToProto(
"option");
104 rgChildren.
Add(rpBase);
107 return new RawProto(strName,
"", rgChildren);
121 if (rpOption !=
null)
The LabelMappingCollection manages a collection of LabelMapping's.
List< string > ToStringList()
Returns a list of strings where each entry represents a mapping.
static LabelMappingCollection Parse(string strMappings)
Parses a label mapping string into a collection of label mappings.
List< LabelMapping > Mappings
Returns the label mapping list.
int MapLabel(int nLabel, int nBoost)
Returns the mapped label associated with a given label and boost (if a boost condition is used).
LabelMappingCollection Clone()
Returns a copy of the label mapping collection.
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.
RawProto FindChild(string strName)
Searches for a given node.
static RawProto Parse(string str)
Parses a prototxt and places it in a new RawProto.
Specifies the parameters for the DataLabelMappingParameter used to map labels by the DataTransformer....
DataLabelMappingParameter Clone()
Return a copy of this object.
override RawProto ToProto(string strName)
Convert the DataLabelMappingParameter into a RawProto.
List< LabelMapping > mapping
Specifies the label mapping where the original label is mapped to the new label specified.
DataLabelMappingParameter(bool bActive)
The constructor.
static new DataLabelMappingParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
DataLabelMappingParameter Load(BinaryReader br, bool bNewInstance=true)
Load the and return a new DataLabelMappingParameter.
override void Copy(OptionalParameter src)
Copies the specified source data label mapping parameter to this one.
int MapLabel(int nLabel, int nBoost)
Queries the mapped label for a given label.
The OptionalParameter is the base class for parameters that are optional such as the MaskParameter,...
static OptionalParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
OptionalParameter(bool bActive=false)
The constructor.
bool Active
When active, the parameter is used, otherwise it is ignored.
The MyCaffe.basecode contains all generic types used throughout MyCaffe.
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-...