The DatasetDescriptor class describes a dataset which contains both a training data source and testing data source.
More...
|
| | DatasetDescriptor (int nID, string strName, GroupDescriptor grpModel, GroupDescriptor grpDs, SourceDescriptor srcTrain, SourceDescriptor srcTest, string strCreatorName, string strDescription, string strOwner=null, GYM_TYPE gymType=GYM_TYPE.NONE) |
| | The DatasetDescriptor constructor. More...
|
| |
| | DatasetDescriptor (string strName) |
| | The DatasetDescriptor constructor. More...
|
| |
| | DatasetDescriptor (DatasetDescriptor d) |
| | The DatasetDescriptor constructor. More...
|
| |
| void | Resize (int nChannels, int nHeight, int nWidth) |
| | Resize the testing and training data sources. More...
|
| |
| void | Copy (DatasetDescriptor ds) |
| | Copy another DatasetDesciptor into this one. More...
|
| |
| override string | ToString () |
| | Creates the string representation of the descriptor. More...
|
| |
| | BaseDescriptor (int nID, string strName, string strOwner) |
| | The BaseDescriptor constructor. More...
|
| |
| | BaseDescriptor (BaseDescriptor b) |
| | The BaseDescriptor constructor. More...
|
| |
| void | Copy (BaseDescriptor b) |
| | Copy another BaseDescriptor into this one. More...
|
| |
The DatasetDescriptor class describes a dataset which contains both a training data source and testing data source.
Definition at line 17 of file DatasetDescriptor.cs.
◆ DatasetDescriptor() [1/3]
The DatasetDescriptor constructor.
- Parameters
-
| nID | Specifies the database ID of the item. |
| strName | Specifies the name of the item. |
| grpModel | Specifies the group of the model. |
| grpDs | Specifies the group of the dataset. |
| srcTrain | Specifies the data source for training. |
| srcTest | Specifies the data source for testing. |
| strCreatorName | Specifies the dataset creator name. |
| strDescription | Specifies a description of the dataset. |
| strOwner | Specifies the identifier of the item's owner. |
| gymType | Optionally, specifies the gym type to use if any (default = NONE). |
Definition at line 41 of file DatasetDescriptor.cs.
◆ DatasetDescriptor() [2/3]
| MyCaffe.basecode.descriptors.DatasetDescriptor.DatasetDescriptor |
( |
string |
strName | ) |
|
◆ DatasetDescriptor() [3/3]
| MyCaffe.basecode.descriptors.DatasetDescriptor.DatasetDescriptor |
( |
DatasetDescriptor |
d | ) |
|
◆ Copy()
Copy another DatasetDesciptor into this one.
- Parameters
-
| ds | Specifies the DatasetDesciptor to copy. |
Definition at line 101 of file DatasetDescriptor.cs.
◆ Deserialize()
| static DatasetDescriptor MyCaffe.basecode.descriptors.DatasetDescriptor.Deserialize |
( |
byte[] |
rg | ) |
|
|
static |
Deserialize a dataset descriptor from a byte array.
- Parameters
-
| rg | Specifies the byte array. |
- Returns
- The deserialized dataset descriptor is returned.
Definition at line 341 of file DatasetDescriptor.cs.
◆ GetGymName()
| static string MyCaffe.basecode.descriptors.DatasetDescriptor.GetGymName |
( |
string |
str, |
|
|
out string |
strType |
|
) |
| |
|
static |
Returns the actual gym name by parsing off the 'GYM:' if it exists.
- Parameters
-
| str | Specifies the name. |
| strType | Specifies the type. |
- Returns
- The actual gym name is returned.
Definition at line 216 of file DatasetDescriptor.cs.
◆ IsGymName()
| static bool MyCaffe.basecode.descriptors.DatasetDescriptor.IsGymName |
( |
string |
str | ) |
|
|
static |
Returns whether or not the name is from a gym.
- Parameters
-
- Returns
- If the name is from a gym, true is returned, otherwise false is returned.
Definition at line 182 of file DatasetDescriptor.cs.
◆ IsModelDataName()
| static bool MyCaffe.basecode.descriptors.DatasetDescriptor.IsModelDataName |
( |
string |
str, |
|
|
out bool |
bTemporal |
|
) |
| |
|
static |
Returns whether or not the name directs to use data from the model itself.
- Parameters
-
| str | Specifies the name. |
| bTemporal | Specifies type type of the MODEL data, bTemporal=true for temporal TFT type models. |
- Returns
- If the name is from a model, true is returned, otherwise false is returned.
Definition at line 196 of file DatasetDescriptor.cs.
◆ Resize()
| void MyCaffe.basecode.descriptors.DatasetDescriptor.Resize |
( |
int |
nChannels, |
|
|
int |
nHeight, |
|
|
int |
nWidth |
|
) |
| |
Resize the testing and training data sources.
- Parameters
-
| nChannels | Specifies the new channel size. |
| nHeight | Specifies the new height size. |
| nWidth | Specifies the new width size. |
Definition at line 91 of file DatasetDescriptor.cs.
◆ Serialize()
| static byte[] MyCaffe.basecode.descriptors.DatasetDescriptor.Serialize |
( |
DatasetDescriptor |
ds | ) |
|
|
static |
Serialize a dataset descriptor to a byte array.
- Parameters
-
| ds | Specifies the dataset descriptor to serialize. |
- Returns
- A byte array containing the serialized dataset is returned.
Definition at line 325 of file DatasetDescriptor.cs.
◆ ToString()
| override string MyCaffe.basecode.descriptors.DatasetDescriptor.ToString |
( |
| ) |
|
Creates the string representation of the descriptor.
- Returns
- The string representation of the descriptor is returned.
Definition at line 354 of file DatasetDescriptor.cs.
◆ CreatorName
| string MyCaffe.basecode.descriptors.DatasetDescriptor.CreatorName |
|
get |
◆ DatasetGroup
| GroupDescriptor MyCaffe.basecode.descriptors.DatasetDescriptor.DatasetGroup |
|
get |
◆ Description
| string MyCaffe.basecode.descriptors.DatasetDescriptor.Description |
|
getset |
◆ FullName
| string? MyCaffe.basecode.descriptors.DatasetDescriptor.FullName |
|
get |
Returns the full name which returns 'GYM:Name:Type' when using a gym based dataset, otherwise just 'Name' is returned.
Definition at line 172 of file DatasetDescriptor.cs.
◆ GymType
| GYM_TYPE MyCaffe.basecode.descriptors.DatasetDescriptor.GymType |
|
get |
◆ IsDataTemporal
| bool MyCaffe.basecode.descriptors.DatasetDescriptor.IsDataTemporal |
|
get |
Returns whether or not this dataset is from the model itself and is temporal.
Definition at line 164 of file DatasetDescriptor.cs.
◆ IsGym
| bool? MyCaffe.basecode.descriptors.DatasetDescriptor.IsGym |
|
get |
◆ IsModelData
| bool? MyCaffe.basecode.descriptors.DatasetDescriptor.IsModelData |
|
get |
◆ ModelGroup
◆ Parameters
◆ TestingSource
◆ TestingSourceName
| string? MyCaffe.basecode.descriptors.DatasetDescriptor.TestingSourceName |
|
get |
◆ TrainingSource
◆ TrainingSourceName
| string? MyCaffe.basecode.descriptors.DatasetDescriptor.TrainingSourceName |
|
get |
The documentation for this class was generated from the following file:
- C:/Data/Data/SS_Projects/Intelligence/GitHub/MyCaffe/MyCaffe.basecode/descriptors/DatasetDescriptor.cs