Ignore:
Timestamp:
03/23/12 20:20:57 (2 years ago)
Author:
mstajdohar
Branch:
default
Message:

Changed obsolete names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/code/mds-advanced.py

    r9946 r10633  
    1515matrix = Orange.misc.SymMatrix(len(iris)) 
    1616for i in range(len(iris)): 
    17    for j in range(i+1): 
     17   for j in range(i + 1): 
    1818       matrix[i, j] = dist(iris[i], iris[j]) 
    1919 
    2020# Run the Torgerson approximation and calculate stress 
    2121mds = Orange.projection.mds.MDS(matrix) 
    22 mds.Torgerson() 
     22mds.torgerson() 
    2323mds.calc_stress(Orange.projection.mds.KruskalStress) 
    2424 
     
    2727    old_stress = mds.avg_stress 
    2828    for j in range(10): 
    29         mds.SMACOFstep() 
     29        mds.smacof_step() 
    3030 
    3131    mds.calc_stress(Orange.projection.mds.KruskalStress) 
Note: See TracChangeset for help on using the changeset viewer.