机器学习之梯度下降法

using namespace cv;#define specimenNum 8#define cir 5Mat mat1normalHeightspecimenAddrfuncNumk0k1j_tmpbool step_flag /****************************************************样本点初始化显示**************************************************************/i;mat1 iiPoint center specimenAddrcircleimshow/***************************************************画出当前学习曲线*************************************************************/i, j, m, n;Mat matTmp;mat1.iin i;m m <= normalHeight){Point center nm);circleScalarimshow(inputWindow, matTmp);waitKey/****************************************************键值处理,,按下q则退出*********************************************************/c;c c j, tmp;int i;itmp specimenAddr\specimenAddrj j_tmp step_flag j_tmp j_tmp j_tmp step_flag drawmachinaline"/****************************************************计算最佳函数参数**************************************************************/tmp0, tmp1, temp0, temp1;int i;bool flag aa temp0 temp1 itemp0 specimenAddrtemp0 = temp0 / specimenNum / aa;tmp0 = k0 – temp0;itemp1 specimenAddrspecimenAddrtemp1 = temp1 / specimenNum / aa;tmp1 k1 k0 = tmp0;k1 = tmp1;computeCostsleep"argvspecimenInitgetfuncNummykey

幸福就是重复。每天跟自己喜欢的人一起,通电话,

机器学习之梯度下降法

相关文章:

你感兴趣的文章:

标签云: