MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
The RawSqlData class loads data from a database. More...
Public Member Functions | |
RawSqlData (uint? nSeed, bool bOutputTargetHistorical, IXTemporalDatabaseBase db, Log log) | |
The constructor. More... | |
override bool | LoadData (Phase phase, string strDataset, bool bShuffleData, int nBatchSize, int nHistoricalSteps, int nFutureSteps, double dfPctMaxLoad, int nDripRefreshRateInSec, uint nChunkCount, Log log, CancelEvent evtCancel) |
Loads all data values for the phase specified. More... | |
override void | Add (LossArgs e, int[,] rgIdx) |
Add the loss data for the batch into the performance data later used to select the worst cases. More... | |
override int[,] | LoadBatch (Phase phase, int nBatchSize, BlobCollection< T > col, bool bEnableDebug=false, string strDebugPath=null) |
Load a batch of data to feed into the network. More... | |
override int | GetTotalSize () |
Return the total number of blocks available in the current phase. More... | |
override int[] | GetShape (DataNpy< T >.OUTPUT_TYPE ot) |
Return the shape of the OUTPUT_TYPE. More... | |
Public Member Functions inherited from MyCaffe.layers.tft.RawData< T > | |
RawData (uint? nSeed, bool bOutputTargetHistorical) | |
The constructor. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from MyCaffe.layers.tft.RawData< T > | |
virtual void | loadDataFunction (object obj) |
The virtual load data function override by the derived class to load the data in the background. More... | |
Protected Attributes inherited from MyCaffe.layers.tft.RawData< T > | |
Data< T > | m_data |
Specifies the base data object used to store data blocks loaded from disk or database. More... | |
Random | m_random |
Specifies the random number generator used to shuffle the data. More... | |
int | m_nBatchSize |
Specifies the batch size. More... | |
bool | m_bOutputTargetHistorical |
Specifies to output the target historical data. More... | |
Properties inherited from MyCaffe.layers.tft.RawData< T > | |
Random | Random [get] |
Specifies the random number generator used. More... | |
The RawSqlData class loads data from a database.
T | Specifies the base type. |
Definition at line 352 of file DataTemporalLayer.cs.
MyCaffe.layers.tft.RawSqlData< T >.RawSqlData | ( | uint? | nSeed, |
bool | bOutputTargetHistorical, | ||
IXTemporalDatabaseBase | db, | ||
Log | log | ||
) |
The constructor.
nSeed | Specifies the random number generator seed. |
bOutputTargetHistorical | Specifies to output the target historical data. |
db | Specifies the external database. |
log | Specifies the output log. |
Definition at line 381 of file DataTemporalLayer.cs.
|
virtual |
Add the loss data for the batch into the performance data later used to select the worst cases.
e | Specifies the loss data. |
rgIdx | Specifies the selected indexes for the batch. |
Reimplemented from MyCaffe.layers.tft.RawData< T >.
Definition at line 466 of file DataTemporalLayer.cs.
|
virtual |
Return the shape of the OUTPUT_TYPE.
ot | Specifies the output type. |
Reimplemented from MyCaffe.layers.tft.RawData< T >.
Definition at line 618 of file DataTemporalLayer.cs.
|
virtual |
Return the total number of blocks available in the current phase.
Reimplemented from MyCaffe.layers.tft.RawData< T >.
Definition at line 608 of file DataTemporalLayer.cs.
|
virtual |
Load a batch of data to feed into the network.
phase | Specifies the phase being loaded (e.g., TRAIN, TEST). |
nBatchSize | Specifies the batch size. |
col | Specifies the collection of blobs to load. |
bEnableDebug | Optionally, specifies to enable debug output (default = false). |
strDebugPath | Optionally, specifies the debug path where debug images are placed when 'EnableDebug' = true. |
Reimplemented from MyCaffe.layers.tft.RawData< T >.
Definition at line 483 of file DataTemporalLayer.cs.
|
virtual |
Loads all data values for the phase specified.
phase | Specifies the phase for which the data is to be loaded (e.g., TRAIN, TEST) |
strDataset | Specifies the name of the dataset. |
bShuffleData | Specifies to shuffle the data. |
nBatchSize | Specifies the batch size. |
nHistoricalSteps | Specifies the number of historical steps (before current time). |
nFutureSteps | Specifies the number of future steps (after current time). |
dfPctMaxLoad | Specifies the maximum percentage to load into memory. |
nDripRefreshRateInSec | Specifies how often in seconds to refresh the data. |
nChunkCount | Specifies the number of chunks (blocks) to refresh. |
log | Specifies the output log. |
evtCancel | Specifies the event used to cancel loading. |
Reimplemented from MyCaffe.layers.tft.RawData< T >.
Definition at line 402 of file DataTemporalLayer.cs.