上一页 1 ··· 10 11 12 13 14
摘要: 题目内容:输入一个字符串,内有数字和非数字字符。例如:a123x456 17960 302tab5876。将其中连续的数字作为一个整数,依次存放到一维数组a中,例如123放在a[0],456放在a[1]……统计共有多少个整数,并输出这些数。 输入格式:输入一个字符串(允许空格)。 输出格式:第1行输 阅读全文
posted @ 2022-04-14 08:12 asandstar 阅读(1935) 评论(0) 推荐(0)
摘要: 在matlab中做Regularized logistic regression 原理: 我的代码: function [J, grad] = costFunctionReg(theta, X, y, lambda) %COSTFUNCTIONREG Compute cost and gradien 阅读全文
posted @ 2022-03-25 14:44 asandstar 阅读(133) 评论(0) 推荐(0)
摘要: 问题:在下载版的matlab中做coursera的machine learning里的ex2,做到 1.2.3 Learning parameters using fminunc 时出现optimoptions requires Optimization Toolbox 解决方法: 在matlab里 阅读全文
posted @ 2022-03-25 11:31 asandstar 阅读(2514) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14