Ignore:
Timestamp:
02/06/12 16:09:54 (2 years ago)
Author:
Miha Stajdohar <miha.stajdohar@…>
Branch:
default
rebase_source:
4311e8f03a946a2d7c9617962b042caee71181b7
Message:

Changed data set path.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/tutorial/rst/code/domain4.py

    r9374 r9746  
    1010  n = 0 
    1111  for i in data: 
    12     if int(i.getclass())==0: 
     12    if int(i.getclass()) == 0: 
    1313      n = n + 1 
    14   print "p(%s)=%5.3f" % (data.domain.classVar.values[0], float(n)/len(data)) 
     14  print "p(%s)=%5.3f" % (data.domain.classVar.values[0], float(n) / len(data)) 
    1515 
    16 filename = "../../datasets/adult_sample.tab" 
     16filename = "adult_sample.tab" 
    1717data = orange.ExampleTable(filename) 
    1818report_prob('original data set', data) 
Note: See TracChangeset for help on using the changeset viewer.