4using System.Collections.Generic;
7using System.Threading.Tasks;
54 return new DatasetDescriptor(ds.ID, ds.Name, grpd,
null, srcTrain, srcTest, strCreatorName, ds.Description);
64 Source src = m_db.
GetSource(nSrcId.GetValueOrDefault(0));
68 int nW = src.ImageWidth.GetValueOrDefault(0);
69 int nH = src.ImageHeight.GetValueOrDefault(0);
70 int nC = src.ImageChannels.GetValueOrDefault(0);
71 bool bIsReal = src.ImageEncoded.GetValueOrDefault(
true);
72 int nCount = src.ImageCount.GetValueOrDefault(0);
105 if (rgItem.Count == 0 || rgStrm.Count == 0)
109 foreach (ValueStream strm
in rgStrm)
113 strm.Ordering.GetValueOrDefault(0),
114 (STREAM_CLASS_TYPE)strm.ClassTypeID,
115 (STREAM_VALUE_TYPE)strm.ValueTypeID,
119 strm.TotalSteps.GetValueOrDefault(0));
121 td.ValueStreamDescriptors.Add(vsd);
124 foreach (ValueItem vi
in rgItem)
126 td.ValueItemDescriptors.Add(
new ValueItemDescriptor(vi.ID, vi.Name, vi.StartTime, vi.EndTime, vi.Steps));
int ID
Get/set the database ID of the item.
The DatasetDescriptor class describes a dataset which contains both a training data source and testin...
SourceDescriptor TrainingSource
Get/set the training data source.
SourceDescriptor TestingSource
Get/set the testing data source.
The GroupDescriptor class defines a group.
The SourceDescriptor class contains all information describing a data source.
TemporalDescriptor TemporalDescriptor
Get/set the temporal descriptor (if any).
The TemporalDescriptor is used to describe a temporal aspects of the data source.
The ValueItemDescriptor describes each value item (e.g., customer, station or stock)
The value stream descriptor describes a single value stream within a value item.
Dataset GetDataset(int nID, ConnectInfo ci=null)
Returns the Dataset entity for a dataset ID.
string GetDatasetCreatorName(int nDatasetCreatorID, ConnectInfo ci=null)
Returns the name of a dataset creator given its ID.
int GetDatasetID(string strName, ConnectInfo ci=null)
Returns a datasets ID given its name.
Source GetSource(string strName, ConnectInfo ci=null)
Returns the Source entity given a data source name.
DatasetGroup GetDatasetGroup(int nGroupID, ConnectInfo ci=null)
Returns the DatasetGroup entity given a group ID.
The DatasetLoader is used to load descriptors from the database.
GroupDescriptor LoadGroupFromDb(int? nGrpId)
Load a dataset group with the specified ID from the database.
TemporalDescriptor LoadTemporalFromDb(int nSrcID)
Load the temporal descriptor for the specified source ID from the database.
void LoadTemporalFromDb(DatasetDescriptor ds)
Load the temporal descriptors for the specified source ID from the database.
DatasetDescriptor LoadDatasetFromDb(int nDsID)
Load a dataset with the specified ID from the database.
DatabaseLoader()
The constructor.
SourceDescriptor LoadSourceFromDb(int? nSrcId)
Load a data source with the specified ID from the database.
DatasetDescriptor LoadDatasetFromDb(string strDs)
Load a dataset with the specified name from the database.
The DatabaseTemporal is used to manage all temporal specific database objects.
List< ValueStream > GetAllValueStreams(int nSrcID)
Returns a list of all value streams associated with a SourceID.
List< ValueItem > GetAllValueItems(int nSrcID)
Returns a list of all value items associated with a SourceID.
The descriptors namespace contains all descriptor used to describe various items stored within the da...
The MyCaffe.basecode contains all generic types used throughout MyCaffe.
The MyCaffe.db.image namespace contains all image database related classes.
The MyCaffe.db.temporal namespace contains all classes used to create the MyCaffeTemporalDatabase in-...
The MyCaffe namespace contains the main body of MyCaffe code that closesly tracks the C++ Caffe open-...