資源簡介

代碼片段和文件信息
function?J?=?computeCost(X?y?theta)??
??????
????m?=?length(y);
????J?=?0;??
????predictions?=?X?*?theta‘;??
????J?=?1/(2*m)*(predictions?-?y)‘*(predictions?-?y);??
??
end??
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????????182??2014-10-12?16:53??P_gradientDescen\ComputeCost.m
?????文件???????1013??2014-10-24?12:17??P_gradientDescen\gradientDescent.m
?????文件????????144??2014-10-24?12:17??P_gradientDescen\output.m
?????文件????????582??2014-10-24?12:16??P_gradientDescen\p.m
?????文件????????278??2014-10-13?22:11??P_gradientDescen\result_p.m
?????目錄??????????0??2014-10-24?13:06??P_gradientDescen
-----------?---------??----------?-----??----
?????????????????2199????????????????????6
評(píng)論
共有 條評(píng)論