Changeset 10363:b1e31464893f in orange


Ignore:
Timestamp:
02/24/12 13:49:40 (2 years ago)
Author:
Lan Zagar <lan.zagar@…>
Branch:
default
Message:

Fixed some fixes.

Location:
docs/reference/rst
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/Orange.classification.classfromvar.rst

    r10361 r10363  
    4646 
    4747When given an instance, :obj:`ClassifierFromVar` will return 
    48 `transformer(instance[which_var])`. 
     48``transformer(instance[which_var])``. 
    4949Attribute :obj:`~ClassifierFromVar.which_var` can be either an ordinary 
    5050variable, a meta variable or a variable which is not defined for the instance 
     
    6060 
    6161As you might have guessed, the crucial component here is the transformer. 
    62 Let us, for sake of demonstration, load a `monks-1` dataset and construct an 
    63 attribute `e1` that will have value "1", when `e` is "1", and "not 1" when `e` 
    64 is different than 1. There are many ways to do it, and that same problem is 
    65 covered in different places in Orange documentation. Although the way presented 
    66 here is not the simplest, it will serve to demonstrate how ClassifierFromVar 
    67 works. 
     62Let us, for sake of demonstration, load a ``monks-1`` dataset and construct an 
     63attribute ``e1`` that will have value "1", when ``e`` is "1", and "not 1" when 
     64``e`` is different than 1. There are many ways to do it, and that same problem 
     65is covered in different places in Orange documentation. Although the way 
     66presented here is not the simplest, it will serve to demonstrate how 
     67ClassifierFromVar works. 
    6868 
    6969 
     
    113113 
    114114To rewrite the above script to use :obj:`ClassifierFromVarFD`, 
    115 we need to set the domain and the `e`'s index to position 
     115we need to set the domain and the ``e``'s index to position 
    116116(equivalent to setting which_var in :obj:`ClassifierFromVar`). 
    117117The initialization of :obj:`ClassifierFromVarFD` thus goes like this: 
  • docs/reference/rst/Orange.classification.lookup.rst

    r10347 r10363  
    5050     
    5151We can check the correctness of the script by printing out several 
    52 random examples from ``data2``. 
     52random examples from table ``monks2``. 
    5353 
    5454    >>> for i in range(5): 
Note: See TracChangeset for help on using the changeset viewer.