Changeset 11556:c9ec072c64a1 in orange


Ignore:
Timestamp:
05/27/13 15:41:28 (11 months ago)
Author:
blaz <blaz.zupan@…>
Branch:
default
Message:

corrected error with 25th data instance

Location:
docs/tutorial/rst
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • docs/tutorial/rst/code/data-instances1.py

    r11052 r11556  
    77 
    88print "25-th data instance:" 
    9 print data[26] 
     9print data[24] 
    1010 
    1111name = "sepal width" 
    1212print "Value of '%s' for the first instance:" % name, data[0][name] 
    13 print "The 3rd value of the 25th data instance:", data[26][2] 
     13print "The 3rd value of the 25th data instance:", data[24][2] 
  • docs/tutorial/rst/data.rst

    r11052 r11556  
    113113   [4.7, 3.2, 1.3, 0.2, 'Iris-setosa'] 
    114114   25-th data instance: 
    115    [5.0, 3.4, 1.6, 0.4, 'Iris-setosa'] 
     115   [4.8, 3.4, 1.9, 0.2, 'Iris-setosa'] 
    116116   Value of 'sepal width' for the first instance: 3.5 
    117    The 3rd value of the 25th data instance: 1.6 
     117   The 3rd value of the 25th data instance: 1.9 
    118118 
    119119Iris data set we have used above has four continous attributes. Here's a script that computes their mean: 
Note: See TracChangeset for help on using the changeset viewer.