Ignore:
Location:
Orange
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Orange/ensemble/forest.py

    r10540 r10565  
    3636    __new__ = Orange.misc._orange__new__(Orange.core.Learner) 
    3737 
    38     def __init__(self, base, rand): 
     38    def __init__(self, base=None, rand=None): #pickle needs an empty init 
    3939        self.base = base 
    4040        self.attributes = None 
  • Orange/projection/linear.py

    r10542 r10566  
    13651365            C = numpy.ma.dot(Xg, Xd) 
    13661366            U, D, T = numpy.linalg.svd(C) 
    1367  
    1368         U = U.T  # eigenvectors are now in rows 
     1367            U = U.T  # eigenvectors are now in rows 
    13691368        return U, D 
    13701369 
     
    15371536    ################ Plotting functions ################### 
    15381537 
    1539     def scree_plot(self, filename = None, title = 'Scree plot'): 
     1538    def scree_plot(self, filename = None, title = 'Scree Plot'): 
    15401539        """ 
    15411540        Draw a scree plot of principal components 
     
    15571556 
    15581557        x_axis = range(len(self.eigen_values)) 
    1559         x_labels = ["PC%d" % (i + 1, ) for i in x_axis] 
    1560  
    1561         ax.set_xticks(x_axis) 
    1562         ax.set_xticklabels(x_labels) 
    1563         plt.setp(ax.get_xticklabels(), "rotation", 90) 
     1558#        x_labels = ["PC%d" % (i + 1, ) for i in x_axis] 
     1559 
     1560#        ax.set_xticks(x_axis) 
     1561#        ax.set_xticklabels(x_labels) 
     1562#        plt.setp(ax.get_xticklabels(), "rotation", 90) 
    15641563        plt.grid(True) 
    15651564 
    1566         ax.set_xlabel('Principal components') 
     1565        ax.set_xlabel('Principal Component Number') 
    15671566        ax.set_ylabel('Proportion of Variance') 
    15681567        ax.set_title(title + "\n") 
Note: See TracChangeset for help on using the changeset viewer.