MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.layers.tft.RawSqlData< T > Class Template Reference

The RawSqlData class loads data from a database. More...

Inheritance diagram for MyCaffe.layers.tft.RawSqlData< T >:
MyCaffe.layers.tft.RawData< T >

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...
 

Detailed Description

The RawSqlData class loads data from a database.

Template Parameters
TSpecifies the base type.

Definition at line 352 of file DataTemporalLayer.cs.

Constructor & Destructor Documentation

◆ RawSqlData()

MyCaffe.layers.tft.RawSqlData< T >.RawSqlData ( uint?  nSeed,
bool  bOutputTargetHistorical,
IXTemporalDatabaseBase  db,
Log  log 
)

The constructor.

Parameters
nSeedSpecifies the random number generator seed.
bOutputTargetHistoricalSpecifies to output the target historical data.
dbSpecifies the external database.
logSpecifies the output log.

Definition at line 381 of file DataTemporalLayer.cs.

Member Function Documentation

◆ Add()

override void MyCaffe.layers.tft.RawSqlData< T >.Add ( LossArgs  e,
int  rgIdx[,] 
)
virtual

Add the loss data for the batch into the performance data later used to select the worst cases.

Parameters
eSpecifies the loss data.
rgIdxSpecifies the selected indexes for the batch.

Reimplemented from MyCaffe.layers.tft.RawData< T >.

Definition at line 466 of file DataTemporalLayer.cs.

◆ GetShape()

override int[] MyCaffe.layers.tft.RawSqlData< T >.GetShape ( DataNpy< T >.OUTPUT_TYPE  ot)
virtual

Return the shape of the OUTPUT_TYPE.

Parameters
otSpecifies the output type.
Returns
The shape array is returned.

Reimplemented from MyCaffe.layers.tft.RawData< T >.

Definition at line 618 of file DataTemporalLayer.cs.

◆ GetTotalSize()

override int MyCaffe.layers.tft.RawSqlData< T >.GetTotalSize ( )
virtual

Return the total number of blocks available in the current phase.

Returns
The total number of blocks is returned.

Reimplemented from MyCaffe.layers.tft.RawData< T >.

Definition at line 608 of file DataTemporalLayer.cs.

◆ LoadBatch()

override int[,] MyCaffe.layers.tft.RawSqlData< T >.LoadBatch ( Phase  phase,
int  nBatchSize,
BlobCollection< T >  col,
bool  bEnableDebug = false,
string  strDebugPath = null 
)
virtual

Load a batch of data to feed into the network.

Parameters
phaseSpecifies the phase being loaded (e.g., TRAIN, TEST).
nBatchSizeSpecifies the batch size.
colSpecifies the collection of blobs to load.
bEnableDebugOptionally, specifies to enable debug output (default = false).
strDebugPathOptionally, specifies the debug path where debug images are placed when 'EnableDebug' = true.
Returns
The list of selected indexes is returned.

Reimplemented from MyCaffe.layers.tft.RawData< T >.

Definition at line 483 of file DataTemporalLayer.cs.

◆ LoadData()

override bool MyCaffe.layers.tft.RawSqlData< T >.LoadData ( Phase  phase,
string  strDataset,
bool  bShuffleData,
int  nBatchSize,
int  nHistoricalSteps,
int  nFutureSteps,
double  dfPctMaxLoad,
int  nDripRefreshRateInSec,
uint  nChunkCount,
Log  log,
CancelEvent  evtCancel 
)
virtual

Loads all data values for the phase specified.

Parameters
phaseSpecifies the phase for which the data is to be loaded (e.g., TRAIN, TEST)
strDatasetSpecifies the name of the dataset.
bShuffleDataSpecifies to shuffle the data.
nBatchSizeSpecifies the batch size.
nHistoricalStepsSpecifies the number of historical steps (before current time).
nFutureStepsSpecifies the number of future steps (after current time).
dfPctMaxLoadSpecifies the maximum percentage to load into memory.
nDripRefreshRateInSecSpecifies how often in seconds to refresh the data.
nChunkCountSpecifies the number of chunks (blocks) to refresh.
logSpecifies the output log.
evtCancelSpecifies the event used to cancel loading.
Returns
True is returned if the data is loaded successfully, otherwise false.

Reimplemented from MyCaffe.layers.tft.RawData< T >.

Definition at line 402 of file DataTemporalLayer.cs.


The documentation for this class was generated from the following file: