C# Class Ocronet.Dynamic.Recognizers.Lenet.LenetWrapper

Afficher le fichier Open project: nickun/OCRonet Class Usage Examples

Méthodes publiques

Свойство Type Description
AsciiTarget bool
C2i int>.Dictionary
Classes int[]
HrLenet System.IntPtr
NetNorm bool
TanhSigmoid bool

Méthodes publiques

Méthode Description
ComputeOutputs ( byte buffer, int size, int height, int width, OutputVector result ) : void
ComputeOutputs ( byte buffer, int size, int height, int width, int &outClasses, double &outEnergies, int &outSize ) : void
ComputeOutputsRaw ( byte buffer, int size, int height, int width, OutputVector result ) : void
ComputeOutputsRaw ( byte buffer, int size, int height, int width, int &outClasses, double &outEnergies, int &outSize ) : void
CreateLenet ( int nclasses, int classes, bool tanhSigmoid = false, bool netNorm = false, bool asciiTarget = true ) : int
DeleteLenet ( ) : void
LenetWrapper ( ) : System
LoadNetworkFromBuffer ( double buffer, int size ) : void
OnTrainRound ( object sender, TrainEventArgs args ) : void
SaveNetworkToBuffer ( int &size, double &darray ) : void
SetEmpty ( ) : void
TestDense ( IDataset ts ) : TrainInfo
TrainBatch ( IDataset ds, IDataset ts, int epochs ) : TrainInfo
TrainDense ( IDataset ds, int epochs ) : void

Private Methods

Méthode Description
AddSampleToTestOfEpoch ( IntPtr hrlenet, [ buffer, int size, int iclass ) : void
AddSampleToTrainOfEpoch ( IntPtr hrlenet, [ buffer, int size, int iclass ) : void
BeginTestEpoch ( IntPtr hrlenet, int height, int width, int testNsamples ) : void
BeginTrainEpoch ( IntPtr hrlenet, int height, int width, int trainNsamples, int testNsamples = -1 ) : void
ComputeOutputs ( IntPtr hrlenet, [ buffer, int size, int height, int width, [ outclasses, [ outenergies, int &outsize ) : void
ComputeOutputsRaw ( IntPtr hrlenet, [ buffer, int size, int height, int width, [ outclasses, [ outenergies, int &outsize ) : void
CreateLenet ( IntPtr &hrlenet, int nclasses, [ classes, bool tanhSigmoid, bool netNorm, bool asciiTarget ) : int
DeleteLenet ( IntPtr hrlenet ) : void
EndAndRunTestEpoch ( IntPtr hrlenet, TrainInfo &trainInfo ) : void
EndAndRunTrainEpoch ( IntPtr hrlenet, TrainInfo &trainInfo, int epochCount = 1 ) : void
GetStdout ( [ outstring ) : void
LoadNetwork ( IntPtr hrlenet, string networkFile ) : int
LoadNetworkFromBuffer ( IntPtr hrlenet, [ buffer, int size ) : void
LoadTestMnist ( IntPtr hrlenet, string testDatafile, string testLabelfile ) : int
LoadTrainMnist ( IntPtr hrlenet, string trainDatafile, string trainLabelfile ) : int
RecognizeImageFile ( IntPtr hrlenet, string imageFilename, int &answer, double &rate ) : void
RecognizeRawData ( IntPtr hrlenet, [ buffer, int size, int height, int width, int &answer, double &rate ) : void
SaveNetwork ( IntPtr hrlenet, string networkFile ) : int
SaveNetworkToBuffer ( IntPtr hrlenet, int &size, IntPtr &ppArray ) : void
SaveTrainMnist ( IntPtr hrlenet, string trainDatafile, string trainLabelfile ) : int
StartRedirectStdout ( ) : bool
TestDoubleCoTaskMemAlloc ( int &size, IntPtr &ppArray ) : void
TestIntCoTaskMemAlloc ( int &size, IntPtr &ppArray ) : void
TrainOneEpoch ( IntPtr hrlenet, TrainInfo &trainInfo ) : void

Method Details

ComputeOutputs() public méthode

public ComputeOutputs ( byte buffer, int size, int height, int width, OutputVector result ) : void
buffer byte
size int
height int
width int
result OutputVector
Résultat void

ComputeOutputs() public méthode

public ComputeOutputs ( byte buffer, int size, int height, int width, int &outClasses, double &outEnergies, int &outSize ) : void
buffer byte
size int
height int
width int
outClasses int
outEnergies double
outSize int
Résultat void

ComputeOutputsRaw() public méthode

public ComputeOutputsRaw ( byte buffer, int size, int height, int width, OutputVector result ) : void
buffer byte
size int
height int
width int
result OutputVector
Résultat void

ComputeOutputsRaw() public méthode

public ComputeOutputsRaw ( byte buffer, int size, int height, int width, int &outClasses, double &outEnergies, int &outSize ) : void
buffer byte
size int
height int
width int
outClasses int
outEnergies double
outSize int
Résultat void

CreateLenet() public méthode

public CreateLenet ( int nclasses, int classes, bool tanhSigmoid = false, bool netNorm = false, bool asciiTarget = true ) : int
nclasses int
classes int
tanhSigmoid bool
netNorm bool
asciiTarget bool
Résultat int

DeleteLenet() public méthode

public DeleteLenet ( ) : void
Résultat void

LenetWrapper() public méthode

public LenetWrapper ( ) : System
Résultat System

LoadNetworkFromBuffer() public méthode

public LoadNetworkFromBuffer ( double buffer, int size ) : void
buffer double
size int
Résultat void

OnTrainRound() public méthode

public OnTrainRound ( object sender, TrainEventArgs args ) : void
sender object
args TrainEventArgs
Résultat void

SaveNetworkToBuffer() public méthode

public SaveNetworkToBuffer ( int &size, double &darray ) : void
size int
darray double
Résultat void

SetEmpty() public méthode

public SetEmpty ( ) : void
Résultat void

TestDense() public méthode

public TestDense ( IDataset ts ) : TrainInfo
ts Ocronet.Dynamic.IOData.IDataset
Résultat TrainInfo

TrainBatch() public méthode

public TrainBatch ( IDataset ds, IDataset ts, int epochs ) : TrainInfo
ds Ocronet.Dynamic.IOData.IDataset
ts Ocronet.Dynamic.IOData.IDataset
epochs int
Résultat TrainInfo

TrainDense() public méthode

public TrainDense ( IDataset ds, int epochs ) : void
ds Ocronet.Dynamic.IOData.IDataset
epochs int
Résultat void

Property Details

AsciiTarget public_oe property

public bool AsciiTarget
Résultat bool

C2i public_oe property

public Dictionary C2i
Résultat int>.Dictionary

Classes public_oe property

public int[] Classes
Résultat int[]

HrLenet public_oe property

public IntPtr,System HrLenet
Résultat System.IntPtr

NetNorm public_oe property

public bool NetNorm
Résultat bool

TanhSigmoid public_oe property

public bool TanhSigmoid
Résultat bool