Ignore:
Timestamp:
02/06/12 21:04:31 (2 years ago)
Author:
ales_erjavec
Branch:
default
Message:

Fixed some bad names in MAPPING.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/fixes/fix_changed_names.py

    r9722 r9852  
    102102           "orange.ImputerConstructor_average": "Orange.feature.imputation.ImputerConstructor_average", 
    103103 
    104            "orange.ExampleDistance": "Orange.distance.Distance", 
     104           "orange.ExamplesDistance": "Orange.distance.Distance", 
    105105           "orange.ExamplesDistance_Normalized": "Orange.distance.DistanceNormalized", 
    106106           "orange.ExamplesDistanceConstructor": "Orange.distance.DistanceConstructor", 
     
    186186           "orange.C45Classifier": "Orange.classification.tree.C45Classifier", 
    187187           "orange.C45TreeNode": "Orange.classification.tree.C45Node", 
    188            "orange.C45TreeNodeList": "C45NodeList", 
     188           "orange.C45TreeNodeList": "Orange.classification.tree.C45NodeList", 
    189189           "orange.TreeDescender": "Orange.classification.tree.Descender", 
    190190           "orange.TreeDescender_UnknownMergeAsBranchSizes": "Orange.classification.tree.Descender_UnknownMergeAsBranchSizes", 
     
    276276#           "orngCN2.median": "Orange.classification.rules.median", 
    277277#           "orngCN2.perc": "Orange.classification.rules.perc", 
    278            "orngCN2.createRandomDataSet": "Orange.classification.rules.createRandomDataSet", 
    279            "orngCN2.compParameters": "Orange.classification.rules.compParameters", 
    280            "orngCN2.computeDists": "Orange.classification.rules.computeDists", 
    281            "orngCN2.createEVDistList": "Orange.classification.rules.createEVDistList", 
     278#           "orngCN2.createRandomDataSet": "Orange.classification.rules.createRandomDataSet", 
     279#           "orngCN2.compParameters": "Orange.classification.rules.compParameters", 
     280#           "orngCN2.computeDists": "Orange.classification.rules.computeDists", 
     281#           "orngCN2.createEVDistList": "Orange.classification.rules.createEVDistList", 
    282282           "orngCN2.CovererAndRemover_Prob": "Orange.classification.rules.CovererAndRemover_Prob", 
    283283           "orngCN2.add_sub_rules": "Orange.classification.rules.add_sub_rules", 
     
    585585           "orange.ProbabilityEstimatorConstructor_m": "Orange.statistics.estimate.M", 
    586586           "orange.ProbabilityEstimatorConstructor_relative": "Orange.statistics.estimate.RelativeFrequency", 
    587            "orange.onditionalProbabilityEstimator": "Orange.statistics.estimate.ConditionalEstimator", 
     587           "orange.ConditionalProbabilityEstimator": "Orange.statistics.estimate.ConditionalEstimator", 
    588588           "orange.ConditionalProbabilityEstimator_FromDistribution": "Orange.statistics.estimate.ConditionalEstimatorFromDistribution", 
    589589           "orange.ConditionalProbabilityEstimator_ByRows": "Orange.statistics.estimate.ConditionalEstimatorByRows", 
     
    594594 
    595595           } 
    596  
    597 for k, v in MAPPING.items(): 
    598     if k.startswith('orngTest.'): 
    599         orig = k.split('.')[-1] 
    600         new = v.split('.')[-1] 
    601         if orig != new: 
    602             MAPPING['Orange.evaluation.testing.' + orig] = 'Orange.evaluation.testing.' + new 
    603  
    604 for k, v in MAPPING.items(): 
    605     if k.startswith('orngStat.'): 
    606         orig = k.split('.')[-1] 
    607         new = v.split('.')[-1] 
    608         if orig != new: 
    609             MAPPING['Orange.evaluation.scoring.' + orig] = 'Orange.evaluation.scoring.' + new 
    610596 
    611597def build_pattern(mapping=MAPPING): 
Note: See TracChangeset for help on using the changeset viewer.