Ignore:
Timestamp:
02/07/12 18:14:08 (2 years ago)
Author:
markotoplak
Branch:
default
rebase_source:
dcc1bddbbae14a1e234a7d18a813ea0fb1d2bb93
Message:

moved new_meta_ide from feature to feature.Descriptor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/Orange.data.domain.rst

    r9929 r9936  
    160160 
    161161     >>> misses = Orange.feature.Continuous("misses") 
    162      >>> id = Orange.feature.new_meta_id() 
     162     >>> id = Orange.feature.Descriptor.new_meta_id() 
    163163     >>> data.domain.add_meta(id, misses) 
    164164 
     
    205205 
    206206    new_domain = Orange.data.Domain(["feathers", "legs"], domain) 
    207     new_domain.add_meta(Orange.feature.new_meta_id(), domain["type"]) 
    208     new_domain.add_meta(Orange.feature.new_meta_id(), domain["legs"]) 
     207    new_domain.add_meta(Orange.feature.Descriptor.new_meta_id(), domain["type"]) 
     208    new_domain.add_meta(Orange.feature.Descriptor.new_meta_id(), domain["legs"]) 
    209209    new_domain.add_meta( 
    210         Orange.feature.new_meta_id(), Orange.feature.Discrete("X")) 
     210        Orange.feature.Descriptor.new_meta_id(), Orange.feature.Discrete("X")) 
    211211    data2 = Orange.data.Table(new_domain, data) 
    212212 
     
    396396 
    397397         Register a meta attribute with the given id (see 
    398          :obj:`Orange.feature.new_meta_id`). The same meta attribute should 
     398         :obj:`Orange.feature.Descriptor.new_meta_id`). The same meta attribute should 
    399399         have the same id in all domains in which it is registered. :: 
    400400 
    401              >>> newid = Orange.feature.new_meta_id() 
     401             >>> newid = Orange.feature.Descriptor.new_meta_id() 
    402402             >>> domain.add_meta(newid, Orange.feature.String("origin")) 
    403403             >>> data[55]["origin"] = "Nepal" 
Note: See TracChangeset for help on using the changeset viewer.