buggnats - Bugs: bug #36601, Bug in Octave 3.2.4

 
 

bug #36601: Bug in Octave 3.2.4

Submitted by:  gerard <gdroege>
Submitted on:  Wed 06 Jun 2012 03:50:05 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 20 Jun 2012 11:26:10 AM UTC, comment #1:

It looks like the problem is on line 198

It currently looks like this

for i = 1:rows (X)
h = render_size_color (hg, vert(idx{i},:), s, cc(i,:),
marker, filled, true);
endfor

it should look like this

for i = 1:rows (cc)
h = render_size_color (hg, vert(idx{i},:), s, cc(i,:),
marker, filled, true);
endfor

Jamie Cook <jamiecook>
Wed 06 Jun 2012 03:50:05 PM UTC, original submission:

I am in the ML course at Stanford and it seems that most folks are all having problems with a bug calculating K-means. It looks like the problem is that

the underlying problem is apparently that octave doesn't support scatter-plotting more than 100 points with colors at a time. you can read the argument about whether or not it's worth fixing,

The error obtained looks like

>> [centroids, idx] = runkMeans(X, initial_centroids, max_iters, true);

K-Means iteration 1/10...
error: _scatter_: A(I): index out of bounds; value 4 out of bound 3
error: called from:
error: /Applications/Octave.app/Contents/Resources/share/octave/3.4.0/m/plot/private/__scatter__.m at line 199, column 13
error: /Applications/Octave.app/Contents/Resources/share/octave/3.4.0/m/plot/scatter.m at line 71, column 11
error: /Users/mberman/ml/ex7/plotDataPoints.m at line 12, column 1
error: /Users/mberman/ml/ex7/plotProgresskMeans.m at line 11, column 1
error: /Users/mberman/ml/ex7/runkMeans.m at line 48, column 9

Can anyone point me to a fix for OCtave 3.2.4 (windows) or should I use a different version of Octave

Thanks

-unavailable-

gerard <gdroege>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jamiecook (Posted a comment)
  • -unavailable- added by gdroege (Submitted the item)
  • -unavailable- added by gdroege
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 06 Jun 2012 03:50:05 PM UTCgdroegeCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup