C# Класс BP_LDA.LDA_Learn

Показать файл Открыть проект

Открытые методы

Метод Описание
BackPropagation_LDA ( SparseMatrix Xt, SparseMatrix Dt, DNNRun_t DNNRun, paramModel_t paramModel, Grad_t Grad ) : void
ComputeCrossEntropy ( SparseMatrix Xt, DenseMatrix Phi, DenseMatrix theta_top ) : float
ComputeCrossEntropy ( SparseMatrix Xt, DenseMatrix Phi, DenseMatrix theta_pool, int nHidLayerEffective ) : float
ComputeInverseDocumentFrequency ( SparseMatrix InputData ) : DenseColumnVector
ComputeNumberOfErrors ( SparseMatrix Dt, DenseMatrix y ) : int
ComputeNumberOfErrors ( SparseMatrix Dt, SparseMatrix y ) : int
ComputeRegularizedCrossEntropy ( SparseMatrix Xt, DenseMatrix Phi, DenseMatrix theta_top, DenseColumnVector b ) : float
ComputeSupervisedLoss ( SparseMatrix Dt, DenseMatrix y, string OutputType ) : float
ComputeSupervisedLoss ( SparseMatrix Dt, SparseMatrix y, string OutputType ) : float
DumpingFeature_BP_LDA ( SparseMatrix InputData, paramModel_t paramModel, int BatchSize_normal, string FeatureFileName, string DataName ) : void
ExternalEvaluation ( string ExternalEvalToolPath, string ResultFile, string TestLabelFile, int epoch, string EvalDataName ) : void
ForwardActivation_LDA ( SparseMatrix Xt, DNNRun_t DNNRun, paramModel_t paramModel, bool flag_IsTraining ) : void
ModelInit_LDA_Feedforward ( paramModel_t paramModel ) : void
PrecomputeLearningRateSchedule ( int nBatch, int nEpoch, double LearnRateStart, double LearnRateEnd, double Accuracy ) : double[]
PredictingOutput_BP_sLDA ( SparseMatrix TestData, paramModel_t paramModel, int BatchSize_normal, string ScoreFileName ) : void
SMD_Update ( DenseMatrix X, DenseMatrix Grad, DenseRowVector LearningRatePerCol, float eta ) : float
Testing_BP_LDA ( SparseMatrix TestData, paramModel_t paramModel ) : float
Testing_BP_LDA ( SparseMatrix TestData, paramModel_t paramModel, int BatchSize_normal ) : float
Testing_BP_sLDA ( SparseMatrix TestData, SparseMatrix TestLabel, paramModel_t paramModel ) : float
Testing_BP_sLDA ( SparseMatrix TestData, SparseMatrix TestLabel, paramModel_t paramModel, int BatchSize_normal, string ScoreFileName, string EvalDataName ) : float
TrainingBP_LDA ( SparseMatrix TrainData, SparseMatrix TestData, paramModel_t paramModel, paramTrain_t paramTrain, string ModelFile, string ResultFile ) : void
TrainingBP_sLDA ( SparseMatrix TrainData, SparseMatrix TrainLabel, SparseMatrix TestData, SparseMatrix TestLabel, SparseMatrix ValidData, SparseMatrix ValidLabel, paramModel_t paramModel, paramTrain_t paramTrain, string ModelFile, string ResultFile ) : void

Описание методов

BackPropagation_LDA() публичный статический Метод

public static BackPropagation_LDA ( SparseMatrix Xt, SparseMatrix Dt, DNNRun_t DNNRun, paramModel_t paramModel, Grad_t Grad ) : void
Xt LinearAlgebra.SparseMatrix
Dt LinearAlgebra.SparseMatrix
DNNRun DNNRun_t
paramModel paramModel_t
Grad Grad_t
Результат void

ComputeCrossEntropy() публичный статический Метод

public static ComputeCrossEntropy ( SparseMatrix Xt, DenseMatrix Phi, DenseMatrix theta_top ) : float
Xt LinearAlgebra.SparseMatrix
Phi LinearAlgebra.DenseMatrix
theta_top LinearAlgebra.DenseMatrix
Результат float

ComputeCrossEntropy() публичный статический Метод

public static ComputeCrossEntropy ( SparseMatrix Xt, DenseMatrix Phi, DenseMatrix theta_pool, int nHidLayerEffective ) : float
Xt LinearAlgebra.SparseMatrix
Phi LinearAlgebra.DenseMatrix
theta_pool LinearAlgebra.DenseMatrix
nHidLayerEffective int
Результат float

ComputeInverseDocumentFrequency() публичный статический Метод

public static ComputeInverseDocumentFrequency ( SparseMatrix InputData ) : DenseColumnVector
InputData LinearAlgebra.SparseMatrix
Результат LinearAlgebra.DenseColumnVector

ComputeNumberOfErrors() публичный статический Метод

public static ComputeNumberOfErrors ( SparseMatrix Dt, DenseMatrix y ) : int
Dt LinearAlgebra.SparseMatrix
y LinearAlgebra.DenseMatrix
Результат int

ComputeNumberOfErrors() публичный статический Метод

public static ComputeNumberOfErrors ( SparseMatrix Dt, SparseMatrix y ) : int
Dt LinearAlgebra.SparseMatrix
y LinearAlgebra.SparseMatrix
Результат int

ComputeRegularizedCrossEntropy() публичный статический Метод

public static ComputeRegularizedCrossEntropy ( SparseMatrix Xt, DenseMatrix Phi, DenseMatrix theta_top, DenseColumnVector b ) : float
Xt LinearAlgebra.SparseMatrix
Phi LinearAlgebra.DenseMatrix
theta_top LinearAlgebra.DenseMatrix
b LinearAlgebra.DenseColumnVector
Результат float

ComputeSupervisedLoss() публичный статический Метод

public static ComputeSupervisedLoss ( SparseMatrix Dt, DenseMatrix y, string OutputType ) : float
Dt LinearAlgebra.SparseMatrix
y LinearAlgebra.DenseMatrix
OutputType string
Результат float

ComputeSupervisedLoss() публичный статический Метод

public static ComputeSupervisedLoss ( SparseMatrix Dt, SparseMatrix y, string OutputType ) : float
Dt LinearAlgebra.SparseMatrix
y LinearAlgebra.SparseMatrix
OutputType string
Результат float

DumpingFeature_BP_LDA() публичный статический Метод

public static DumpingFeature_BP_LDA ( SparseMatrix InputData, paramModel_t paramModel, int BatchSize_normal, string FeatureFileName, string DataName ) : void
InputData LinearAlgebra.SparseMatrix
paramModel paramModel_t
BatchSize_normal int
FeatureFileName string
DataName string
Результат void

ExternalEvaluation() публичный статический Метод

public static ExternalEvaluation ( string ExternalEvalToolPath, string ResultFile, string TestLabelFile, int epoch, string EvalDataName ) : void
ExternalEvalToolPath string
ResultFile string
TestLabelFile string
epoch int
EvalDataName string
Результат void

ForwardActivation_LDA() публичный статический Метод

public static ForwardActivation_LDA ( SparseMatrix Xt, DNNRun_t DNNRun, paramModel_t paramModel, bool flag_IsTraining ) : void
Xt LinearAlgebra.SparseMatrix
DNNRun DNNRun_t
paramModel paramModel_t
flag_IsTraining bool
Результат void

ModelInit_LDA_Feedforward() публичный статический Метод

public static ModelInit_LDA_Feedforward ( paramModel_t paramModel ) : void
paramModel paramModel_t
Результат void

PrecomputeLearningRateSchedule() публичный статический Метод

public static PrecomputeLearningRateSchedule ( int nBatch, int nEpoch, double LearnRateStart, double LearnRateEnd, double Accuracy ) : double[]
nBatch int
nEpoch int
LearnRateStart double
LearnRateEnd double
Accuracy double
Результат double[]

PredictingOutput_BP_sLDA() публичный статический Метод

public static PredictingOutput_BP_sLDA ( SparseMatrix TestData, paramModel_t paramModel, int BatchSize_normal, string ScoreFileName ) : void
TestData LinearAlgebra.SparseMatrix
paramModel paramModel_t
BatchSize_normal int
ScoreFileName string
Результат void

SMD_Update() публичный статический Метод

public static SMD_Update ( DenseMatrix X, DenseMatrix Grad, DenseRowVector LearningRatePerCol, float eta ) : float
X LinearAlgebra.DenseMatrix
Grad LinearAlgebra.DenseMatrix
LearningRatePerCol LinearAlgebra.DenseRowVector
eta float
Результат float

Testing_BP_LDA() публичный статический Метод

public static Testing_BP_LDA ( SparseMatrix TestData, paramModel_t paramModel ) : float
TestData LinearAlgebra.SparseMatrix
paramModel paramModel_t
Результат float

Testing_BP_LDA() публичный статический Метод

public static Testing_BP_LDA ( SparseMatrix TestData, paramModel_t paramModel, int BatchSize_normal ) : float
TestData LinearAlgebra.SparseMatrix
paramModel paramModel_t
BatchSize_normal int
Результат float

Testing_BP_sLDA() публичный статический Метод

public static Testing_BP_sLDA ( SparseMatrix TestData, SparseMatrix TestLabel, paramModel_t paramModel ) : float
TestData LinearAlgebra.SparseMatrix
TestLabel LinearAlgebra.SparseMatrix
paramModel paramModel_t
Результат float

Testing_BP_sLDA() публичный статический Метод

public static Testing_BP_sLDA ( SparseMatrix TestData, SparseMatrix TestLabel, paramModel_t paramModel, int BatchSize_normal, string ScoreFileName, string EvalDataName ) : float
TestData LinearAlgebra.SparseMatrix
TestLabel LinearAlgebra.SparseMatrix
paramModel paramModel_t
BatchSize_normal int
ScoreFileName string
EvalDataName string
Результат float

TrainingBP_LDA() публичный статический Метод

public static TrainingBP_LDA ( SparseMatrix TrainData, SparseMatrix TestData, paramModel_t paramModel, paramTrain_t paramTrain, string ModelFile, string ResultFile ) : void
TrainData LinearAlgebra.SparseMatrix
TestData LinearAlgebra.SparseMatrix
paramModel paramModel_t
paramTrain paramTrain_t
ModelFile string
ResultFile string
Результат void

TrainingBP_sLDA() публичный статический Метод

public static TrainingBP_sLDA ( SparseMatrix TrainData, SparseMatrix TrainLabel, SparseMatrix TestData, SparseMatrix TestLabel, SparseMatrix ValidData, SparseMatrix ValidLabel, paramModel_t paramModel, paramTrain_t paramTrain, string ModelFile, string ResultFile ) : void
TrainData LinearAlgebra.SparseMatrix
TrainLabel LinearAlgebra.SparseMatrix
TestData LinearAlgebra.SparseMatrix
TestLabel LinearAlgebra.SparseMatrix
ValidData LinearAlgebra.SparseMatrix
ValidLabel LinearAlgebra.SparseMatrix
paramModel paramModel_t
paramTrain paramTrain_t
ModelFile string
ResultFile string
Результат void