MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.trainers.common.FileMemoryCollection Class Reference

The FileMemoryCollection is used during debugging to load from and save to file. More...

Inheritance diagram for MyCaffe.trainers.common.FileMemoryCollection:
MyCaffe.trainers.common.IMemoryCollection

Public Member Functions

 FileMemoryCollection (int nMax, bool bPreLoad, bool bSaveOnCleanup, string strFile)
 The constructor. More...
 
void CleanUp ()
 Complete any final processing. More...
 
void Add (MemoryItem mi)
 Add a new item to the collection. More...
 
MemoryCollection GetSamples (CryptoRandom random, int nCount, double dfBeta)
 Return a batch of items. More...
 
void Update (MemoryCollection rgSamples)
 Update - does nothing. More...
 

Properties

int Count [get]
 Returns the number of items in the collection. More...
 
- Properties inherited from MyCaffe.trainers.common.IMemoryCollection
int Count [get]
 Returns the number of items in the memory collection. More...
 

Detailed Description

The FileMemoryCollection is used during debugging to load from and save to file.

Definition at line 14 of file FileMemoryCollection.cs.

Constructor & Destructor Documentation

◆ FileMemoryCollection()

MyCaffe.trainers.common.FileMemoryCollection.FileMemoryCollection ( int  nMax,
bool  bPreLoad,
bool  bSaveOnCleanup,
string  strFile 
)

The constructor.

Parameters
nMaxSpecifies the maximum number of items.
bPreLoadPre-load the data from file.
bSaveOnCleanupSave the memory items on cleanup.
strFileSpecifies the name of the file to load from or save to.

Definition at line 32 of file FileMemoryCollection.cs.

Member Function Documentation

◆ Add()

void MyCaffe.trainers.common.FileMemoryCollection.Add ( MemoryItem  mi)

Add a new item to the collection.

Parameters
miSpecifies the item to add.

Implements MyCaffe.trainers.common.IMemoryCollection.

Definition at line 64 of file FileMemoryCollection.cs.

◆ CleanUp()

void MyCaffe.trainers.common.FileMemoryCollection.CleanUp ( )

Complete any final processing.

Implements MyCaffe.trainers.common.IMemoryCollection.

Definition at line 46 of file FileMemoryCollection.cs.

◆ GetSamples()

MemoryCollection MyCaffe.trainers.common.FileMemoryCollection.GetSamples ( CryptoRandom  random,
int  nCount,
double  dfBeta 
)

Return a batch of items.

Parameters
randomSpecifies the random number generator.
nCountSpecifies the number of items to sample.
dfBetaNot used.
Returns
The array of items is returned.

Implements MyCaffe.trainers.common.IMemoryCollection.

Definition at line 77 of file FileMemoryCollection.cs.

◆ Update()

void MyCaffe.trainers.common.FileMemoryCollection.Update ( MemoryCollection  rgSamples)

Update - does nothing.

Parameters
rgSamplesSpecifies the list of samples.

Implements MyCaffe.trainers.common.IMemoryCollection.

Definition at line 121 of file FileMemoryCollection.cs.

Property Documentation

◆ Count

int MyCaffe.trainers.common.FileMemoryCollection.Count
get

Returns the number of items in the collection.

Definition at line 55 of file FileMemoryCollection.cs.


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