MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
The FileMemoryCollection is used during debugging to load from and save to file. More...
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... | |
The FileMemoryCollection is used during debugging to load from and save to file.
Definition at line 14 of file FileMemoryCollection.cs.
MyCaffe.trainers.common.FileMemoryCollection.FileMemoryCollection | ( | int | nMax, |
bool | bPreLoad, | ||
bool | bSaveOnCleanup, | ||
string | strFile | ||
) |
The constructor.
nMax | Specifies the maximum number of items. |
bPreLoad | Pre-load the data from file. |
bSaveOnCleanup | Save the memory items on cleanup. |
strFile | Specifies the name of the file to load from or save to. |
Definition at line 32 of file FileMemoryCollection.cs.
void MyCaffe.trainers.common.FileMemoryCollection.Add | ( | MemoryItem | mi | ) |
Add a new item to the collection.
mi | Specifies the item to add. |
Implements MyCaffe.trainers.common.IMemoryCollection.
Definition at line 64 of file FileMemoryCollection.cs.
void MyCaffe.trainers.common.FileMemoryCollection.CleanUp | ( | ) |
Complete any final processing.
Implements MyCaffe.trainers.common.IMemoryCollection.
Definition at line 46 of file FileMemoryCollection.cs.
MemoryCollection MyCaffe.trainers.common.FileMemoryCollection.GetSamples | ( | CryptoRandom | random, |
int | nCount, | ||
double | dfBeta | ||
) |
Return a batch of items.
random | Specifies the random number generator. |
nCount | Specifies the number of items to sample. |
dfBeta | Not used. |
Implements MyCaffe.trainers.common.IMemoryCollection.
Definition at line 77 of file FileMemoryCollection.cs.
void MyCaffe.trainers.common.FileMemoryCollection.Update | ( | MemoryCollection | rgSamples | ) |
Update - does nothing.
rgSamples | Specifies the list of samples. |
Implements MyCaffe.trainers.common.IMemoryCollection.
Definition at line 121 of file FileMemoryCollection.cs.
|
get |
Returns the number of items in the collection.
Definition at line 55 of file FileMemoryCollection.cs.