【发布时间】:2018-03-03 06:24:52
【问题描述】:
我为“特征规范化”部分编写了以下代码
这里 X 是特征矩阵 (m*n) 使得
m = number of examples
n = number of features
代码
mu = mean(X);
sigma = std(X);
m = size(X,1);
% Subtracting the mean from each row
for i = 1:m
X_norm(i,:) = X(i,:)-mu;
end;
% Dividing the STD from each row
for i = 1:m
X_norm(i,:) = X(i,:)./sigma;
end;
但是在将它提交到为 Andrew Ng 的课程构建的服务器时,它并没有给我任何确认它是错误的还是正确的。
==
== Part Name | Score | Feedback
== --------- | ----- | --------
== Warm-up Exercise | 10 / 10 | Nice work!
== Computing Cost (for One Variable) | 40 / 40 | Nice work!
== Gradient Descent (for One Variable) | 50 / 50 | Nice work!
== Feature Normalization | 0 / 0 |
== Computing Cost (for Multiple Variables) | 0 / 0 |
== Gradient Descent (for Multiple Variables) | 0 / 0 |
== Normal Equations | 0 / 0 |
== --------------------------------
== | 100 / 100 |
这是 Web 前端表示层中的错误还是我的代码中的错误?
【问题讨论】:
-
我投票决定将此问题作为离题结束,因为这是课程管理员的问题,而不是 SO。
-
您本可以将其发布在课程论坛上。这里不适合解决这个问题!
标签: machine-learning submit octave normalization