Changeset 9744:a0ad3a6cd405 in orange


Ignore:
Timestamp:
02/06/12 16:08:12 (2 years ago)
Author:
Miha Stajdohar <miha.stajdohar@…>
Branch:
default
rebase_source:
5027b877a4ea3da76de48fe3a3fd2839f8717296
Message:

Changed data set path.

File:
1 edited

Legend:

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

    r9374 r9744  
    1010def show_values(data, heading): 
    1111  for a in data.domain.attributes: 
    12     print "%s/%d: %s" % (a.name, len(a.values), reduce(lambda x,y: x+', '+y, [i for i in a.values])) 
    13          
    14 data = orange.ExampleTable("../../datasets/wdbc") 
     12    print "%s/%d: %s" % (a.name, len(a.values), reduce(lambda x, y: x + ', ' + y, [i for i in a.values])) 
     13 
     14data = orange.ExampleTable("wdbc.tab") 
    1515print '%d features in original data set, discretized:' % len(data.domain.attributes) 
    1616data_ent = orange.Preprocessor_discretize(data, method=orange.EntropyDiscretization()) 
     
    1919print '\nFeatures with sole value after discretization:' 
    2020for a in data_ent.domain.attributes: 
    21   if len(a.values)==1: 
     21  if len(a.values) == 1: 
    2222    print a.name 
    2323 
Note: See TracChangeset for help on using the changeset viewer.