Changeset 4052:d70648fee9fe in orange


Ignore:
Timestamp:
08/07/07 09:12:30 (7 years ago)
Author:
blaz <blaz.zupan@…>
Branch:
default
Convert:
fc492892c9812c1e18b921ee412b481d347a431c
Message:

added header info

Location:
orange/doc/modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orange/doc/modules/mds1.py

    r2951 r4052  
     1# Description: Example of advanced use of MDS  
     2# Category:    association 
     3# Classes:     orngMDS.MDS 
     4# Referenced:  orngMDS.htm 
     5# Uses:        iris.tab 
     6 
    17import orange, orngMDS, math 
    28 
     
    410dist = orange.ExamplesDistanceConstructor_Euclidean(data) 
    511matrix = orange.SymMatrix(len(data)) 
    6 for i in range(len(data)): 
    7    for j in range(i+1): 
     12for i in range(len(data)-1): 
     13   for j in range(i+1, len(data)): 
    814       matrix[i, j] = dist(data[i], data[j]) 
    915 
  • orange/doc/modules/mds2.py

    r3145 r4052  
     1# Description: Uses MDS on iris data set and plots the scatterplot to illustrate the effect and observe the degree of separation between groups of different classes 
     2# Category:    association 
     3# Classes:     orngMDS.MDS 
     4# Uses:        iris.tab 
     5# Referenced:  orngMDS.htm 
     6 
    17import orange 
    28import orngMDS 
     
    511euclidean = orange.ExamplesDistanceConstructor_Euclidean(data) 
    612distance = orange.SymMatrix(len(data)) 
    7 for i in range(len(data)): 
    8    for j in range(i+1): 
     13for i in range(len(data)-1): 
     14   for j in range(i+1, len(data)): 
    915       distance[i, j] = euclidean(data[i], data[j]) 
    1016 
Note: See TracChangeset for help on using the changeset viewer.