MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
The LabelMappingCollection manages a collection of LabelMapping's. More...
Public Member Functions | |
LabelMappingCollection () | |
The LabelMappingCollection constructor. More... | |
void | Add (LabelMapping map) |
Adds a new label mapping. More... | |
bool | Remove (LabelMapping map) |
Removes a label mapping. More... | |
LabelMappingCollection | Clone () |
Returns a copy of the label mapping collection. More... | |
int | MapLabel (int nLabel, int nBoost) |
Returns the mapped label associated with a given label and boost (if a boost condition is used). More... | |
int | MapLabelWithoutBoost (int nLabel) |
Returns the mapped label associated with a given label. More... | |
IEnumerator< LabelMapping > | GetEnumerator () |
Returns the enumerator of the collection. More... | |
void | Sort () |
Sorts the label mappings. More... | |
bool | Compare (LabelMappingCollection col) |
Compares one label mapping collection to another. More... | |
override string | ToString () |
Returns a string representation of the label mapping collection. More... | |
List< string > | ToStringList () |
Returns a list of strings where each entry represents a mapping. More... | |
Static Public Member Functions | |
static LabelMappingCollection | Parse (string strMappings) |
Parses a label mapping string into a collection of label mappings. More... | |
static LabelMappingCollection | Parse (List< string > rgstrMappings) |
Parses a list of strings where each string is a label mapping. More... | |
Properties | |
int | Count [get] |
Returns the number of items in the collection. More... | |
List< LabelMapping > | Mappings [getset] |
Returns the label mapping list. More... | |
LabelMapping | this[int nIdx] [getset] |
Get/set an item at a given index. More... | |
The LabelMappingCollection manages a collection of LabelMapping's.
Definition at line 14 of file LabelMapping.cs.
MyCaffe.basecode.LabelMappingCollection.LabelMappingCollection | ( | ) |
The LabelMappingCollection constructor.
Definition at line 21 of file LabelMapping.cs.
void MyCaffe.basecode.LabelMappingCollection.Add | ( | LabelMapping | map | ) |
Adds a new label mapping.
map | Specifies the label mapping. |
Definition at line 57 of file LabelMapping.cs.
LabelMappingCollection MyCaffe.basecode.LabelMappingCollection.Clone | ( | ) |
Returns a copy of the label mapping collection.
Definition at line 83 of file LabelMapping.cs.
bool MyCaffe.basecode.LabelMappingCollection.Compare | ( | LabelMappingCollection | col | ) |
Compares one label mapping collection to another.
col | Specifies the other collection to compare. |
Definition at line 195 of file LabelMapping.cs.
IEnumerator< LabelMapping > MyCaffe.basecode.LabelMappingCollection.GetEnumerator | ( | ) |
Returns the enumerator of the collection.
Definition at line 151 of file LabelMapping.cs.
int MyCaffe.basecode.LabelMappingCollection.MapLabel | ( | int | nLabel, |
int | nBoost | ||
) |
Returns the mapped label associated with a given label and boost (if a boost condition is used).
nLabel | Specifies the label to map. |
nBoost | Specifies the boost condition that must be met if specified. |
If a label mapping is found for the 'nLabel' parameter, the following logic follows: If no boost condition exists, the new 'mapped' label is returned, Otherwise, if the boost condition is met, the new 'mapped' label is returned, Otherwise, if the NewLabelConditionFalse exists, the NewLabelConditionFalse is returned, Otherwise the label is returned.
Definition at line 108 of file LabelMapping.cs.
int MyCaffe.basecode.LabelMappingCollection.MapLabelWithoutBoost | ( | int | nLabel | ) |
Returns the mapped label associated with a given label.
nLabel | Specifies the label to map. |
Definition at line 136 of file LabelMapping.cs.
|
static |
Parses a list of strings where each string is a label mapping.
rgstrMappings | Specifies the list of label mapping strings. |
Definition at line 259 of file LabelMapping.cs.
|
static |
Parses a label mapping string into a collection of label mappings.
strMappings | Specifies the list of ';' separated label mappings. |
Definition at line 248 of file LabelMapping.cs.
bool MyCaffe.basecode.LabelMappingCollection.Remove | ( | LabelMapping | map | ) |
Removes a label mapping.
map | Specifies the label mapping. |
Definition at line 74 of file LabelMapping.cs.
void MyCaffe.basecode.LabelMappingCollection.Sort | ( | ) |
Sorts the label mappings.
Definition at line 168 of file LabelMapping.cs.
override string MyCaffe.basecode.LabelMappingCollection.ToString | ( | ) |
Returns a string representation of the label mapping collection.
Definition at line 213 of file LabelMapping.cs.
List< string > MyCaffe.basecode.LabelMappingCollection.ToStringList | ( | ) |
Returns a list of strings where each entry represents a mapping.
Definition at line 231 of file LabelMapping.cs.
|
get |
Returns the number of items in the collection.
Definition at line 28 of file LabelMapping.cs.
|
getset |
Returns the label mapping list.
Definition at line 36 of file LabelMapping.cs.
|
getset |
Get/set an item at a given index.
nIdx | Specifies the index. |
Definition at line 47 of file LabelMapping.cs.