[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #34852] incorrect column number on error messa
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #34852] incorrect column number on error messages |
Date: |
Thu, 17 Nov 2011 20:21:21 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.120 Safari/535.2 |
URL:
<http://savannah.gnu.org/bugs/?34852>
Summary: incorrect column number on error messages
Project: GNU Octave
Submitted by: None
Submitted on: Thu 17 Nov 2011 08:21:19 PM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name: delinquentme
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.2.3
Operating System: GNU/Linux
_______________________________________________________
Details:
function [theta, J_history] = gradientDescent(X, y, theta, alpha, num_iters)
m = length(y); % number of training examples
J_history = zeros(num_iters, 1);
for iter = 1:num_iters
theta = theta - alpha/m * sum ( (((X*theta) - y) )*X )
J_history(iter) = computeCost(X, y, theta);
end
end
......................
above code nets this error ( with an incorrect column number )
......................
error: operator *: nonconformant arguments (op1 is 97x1, op2 is 97x2)
error: evaluating argument list element number 1
error: evaluating argument list element number 1
error: called from:
error:
/home/thrive/Desktop/studies/machine_learning/ex1/mlclass-ex1/gradientDescent.m
at line 9, column 11
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?34852>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #34852] incorrect column number on error messages,
anonymous <=