【deep learning学习笔记】注释yusugomori的RBM代码 --- cpp文件 -- 模型训练
关键是CD-k(contrastive_divergence)算法的实现。//theCD-kalgorithm
voidRBM::contrastive_divergence(
int*input,//theinputvisiablesample
doublelr,//thelearningrate
intk//thekvalueinCD-k
)
{
//allocatethememoryfor|