Changeset 7839:8323a0556804 in orange


Ignore:
Timestamp:
04/14/11 09:08:24 (3 years ago)
Author:
mocnik <mocnik@…>
Branch:
default
Convert:
646012005dd3fdc9d1e3ed25307fd1aee197e87a
Message:

New casing for the Orange.evaluation.scoring module.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/fixes/fix_changed_names.py

    r7756 r7839  
    262262           "orngStat.AP" : "Orange.evaluation.scoring.AP", 
    263263           "orngStat.AROC" : "Orange.evaluation.scoring.AROC", 
    264            "orngStat.AROCFromCDT" : "Orange.evaluation.scoring.AROCFromCDT", 
     264           "orngStat.AROCFromCDT" : "Orange.evaluation.scoring.AROC_from_CDT", 
    265265           "orngStat.AUC" : "Orange.evaluation.scoring.AUC", 
    266266           "orngStat.AUCWilcoxon" : "Orange.evaluation.scoring.AUCWilcoxon", 
     
    275275           "orngStat.AUC_x" : "Orange.evaluation.scoring.AUC_x", 
    276276           "orngStat.BSS" : "Orange.evaluation.scoring.BSS", 
    277            "orngStat.BrierScore" : "Orange.evaluation.scoring.BrierScore", 
     277           "orngStat.BrierScore" : "Orange.evaluation.scoring.Brier_score", 
    278278           "orngStat.CA" : "Orange.evaluation.scoring.CA", 
    279279           "orngStat.CA_se" : "Orange.evaluation.scoring.CA_se", 
     
    291291           "orngStat.MSE_old" : "Orange.evaluation.scoring.MSE_old", 
    292292           "orngStat.McNemar" : "Orange.evaluation.scoring.McNemar", 
    293            "orngStat.McNemarOfTwo" : "Orange.evaluation.scoring.McNemarOfTwo", 
     293           "orngStat.McNemarOfTwo" : "Orange.evaluation.scoring.McNemar_of_two", 
    294294           "orngStat.NPV" : "Orange.evaluation.scoring.NPV", 
    295295           "orngStat.PPV" : "Orange.evaluation.scoring.PPV", 
     
    298298           "orngStat.RMSE" : "Orange.evaluation.scoring.RMSE", 
    299299           "orngStat.RMSE_old" : "Orange.evaluation.scoring.RMSE_old", 
    300            "orngStat.ROCaddPoint" : "Orange.evaluation.scoring.ROCaddPoint", 
    301            "orngStat.ROCsFromCDT" : "Orange.evaluation.scoring.ROCsFromCDT", 
    302            "orngStat.ROCslope" : "Orange.evaluation.scoring.ROCslope", 
     300           "orngStat.ROCaddPoint" : "Orange.evaluation.scoring.ROC_add_point", 
     301           "orngStat.ROCsFromCDT" : "Orange.evaluation.scoring.ROCs_from_CDT", 
     302           "orngStat.ROCslope" : "Orange.evaluation.scoring.ROC_slope", 
    303303           "orngStat.RRSE" : "Orange.evaluation.scoring.RRSE", 
    304304           "orngStat.RSE" : "Orange.evaluation.scoring.RSE", 
    305            "orngStat.TCbestThresholdsOnROCcurve" : "Orange.evaluation.scoring.TCbestThresholdsOnROCcurve", 
    306            "orngStat.TCcomputeROC" : "Orange.evaluation.scoring.TCcomputeROC", 
    307            "orngStat.TCthresholdlAverageROC" : "Orange.evaluation.scoring.TCthresholdlAverageROC", 
    308            "orngStat.TCverticalAverageROC" : "Orange.evaluation.scoring.TCverticalAverageROC", 
     305           "orngStat.TCbestThresholdsOnROCcurve" : "Orange.evaluation.scoring.TC_best_thresholds_on_ROC_curve", 
     306           "orngStat.TCcomputeROC" : "Orange.evaluation.scoring.TC_compute_ROC", 
     307           "orngStat.TCthresholdlAverageROC" : "Orange.evaluation.scoring.TC_threshold_average_ROC", 
     308           "orngStat.TCverticalAverageROC" : "Orange.evaluation.scoring.TC_vertical_average_ROC", 
    309309           "orngStat.Wilcoxon" : "Orange.evaluation.scoring.Wilcoxon", 
    310            "orngStat.WilcoxonPairs" : "Orange.evaluation.scoring.WilcoxonPairs", 
     310           "orngStat.WilcoxonPairs" : "Orange.evaluation.scoring.Wilcoxon_pairs", 
    311311#           "orngStat.add" : "Orange.evaluation.scoring.add", 
    312312#           "orngStat.checkArgkw" : "Orange.evaluation.scoring.checkArgkw", 
    313313#           "orngStat.checkNonZero" : "Orange.evaluation.scoring.checkNonZero", 
    314            "orngStat.classProbabilitiesFromRes" : "Orange.evaluation.scoring.classProbabilitiesFromRes", 
    315            "orngStat.compare2AROCs" : "Orange.evaluation.scoring.compare2AROCs", 
    316            "orngStat.compare2AUCs" : "Orange.evaluation.scoring.compare2AUCs", 
    317            "orngStat.computeCDT" : "Orange.evaluation.scoring.computeCDT", 
    318            "orngStat.computeCalibrationCurve" : "Orange.evaluation.scoring.computeCalibrationCurve", 
    319            "orngStat.computeConfusionMatrices" : "Orange.evaluation.scoring.computeConfusionMatrices", 
    320            "orngStat.computeLiftCurve" : "Orange.evaluation.scoring.computeLiftCurve", 
    321            "orngStat.computeROC" : "Orange.evaluation.scoring.computeROC", 
     314           "orngStat.classProbabilitiesFromRes" : "Orange.evaluation.scoring.class_probabilities_from_res", 
     315           "orngStat.compare2AROCs" : "Orange.evaluation.scoring.compare_2_AROCs", 
     316           "orngStat.compare2AUCs" : "Orange.evaluation.scoring.compare_2_AUCs", 
     317           "orngStat.computeCDT" : "Orange.evaluation.scoring.compute_CDT", 
     318           "orngStat.computeCalibrationCurve" : "Orange.evaluation.scoring.compute_calibration_curve", 
     319           "orngStat.computeConfusionMatrices" : "Orange.evaluation.scoring.compute_confusion_matrices", 
     320           "orngStat.computeLiftCurve" : "Orange.evaluation.scoring.compute_lift_curve", 
     321           "orngStat.computeROC" : "Orange.evaluation.scoring.compute_ROC", 
    322322           "orngStat.compute_CD" : "Orange.evaluation.scoring.compute_CD", 
    323323           "orngStat.compute_friedman" : "Orange.evaluation.scoring.compute_friedman", 
    324            "orngStat.confusionChiSquare" : "Orange.evaluation.scoring.confusionChiSquare", 
    325            "orngStat.confusionMatrices" : "Orange.evaluation.scoring.confusionMatrices", 
    326            "orngStat.defaultLineTypes" : "Orange.evaluation.scoring.defaultLineTypes", 
    327            "orngStat.defaultPointTypes" : "Orange.evaluation.scoring.defaultPointTypes", 
     324           "orngStat.confusionChiSquare" : "Orange.evaluation.scoring.confusion_chi_square", 
     325           "orngStat.confusionMatrices" : "Orange.evaluation.scoring.confusion_matrices", 
     326           "orngStat.defaultLineTypes" : "Orange.evaluation.scoring.default_line_types", 
     327           "orngStat.defaultPointTypes" : "Orange.evaluation.scoring.default_point_types", 
    328328#           "orngStat.frange" : "Orange.evaluation.scoring.frange", 
    329329#           "orngStat.gettotsize" : "Orange.evaluation.scoring.gettotsize", 
    330330#           "orngStat.gettotweight" : "Orange.evaluation.scoring.gettotweight", 
    331331           "orngStat.graph_ranks" : "Orange.evaluation.scoring.graph_ranks", 
    332            "orngStat.isCDTEmpty" : "Orange.evaluation.scoring.isCDTEmpty", 
    333            "orngStat.learningCurve2PiCTeX" : "Orange.evaluation.scoring.learningCurve2PiCTeX", 
    334            "orngStat.learningCurveLearners2PiCTeX" : "Orange.evaluation.scoring.learningCurveLearners2PiCTeX", 
    335            "orngStat.legend2PiCTeX" : "Orange.evaluation.scoring.legend2PiCTeX", 
    336            "orngStat.legendLearners2PiCTeX" : "Orange.evaluation.scoring.legendLearners2PiCTeX", 
     332           "orngStat.isCDTEmpty" : "Orange.evaluation.scoring.is_CDT_empty", 
     333           "orngStat.learningCurve2PiCTeX" : "Orange.evaluation.scoring.learning_curve_to_PiCTeX", 
     334           "orngStat.learningCurveLearners2PiCTeX" : "Orange.evaluation.scoring.learning_curve_learners_to_PiCTeX", 
     335           "orngStat.legend2PiCTeX" : "Orange.evaluation.scoring.legend_to_PiCTeX", 
     336           "orngStat.legendLearners2PiCTeX" : "Orange.evaluation.scoring.legend_learners_to_PiCTeX", 
    337337#           "orngStat.log2" : "Orange.evaluation.scoring.log2", 
    338338#           "orngStat.math" : "Orange.evaluation.scoring.math", 
    339339#           "orngStat.numpy" : "Orange.evaluation.scoring.numpy", 
    340340#           "orngStat.operator" : "Orange.evaluation.scoring.operator", 
    341            "orngStat.plotLearningCurve" : "Orange.evaluation.scoring.plotLearningCurve", 
    342            "orngStat.plotLearningCurveLearners" : "Orange.evaluation.scoring.plotLearningCurveLearners", 
    343            "orngStat.plotMcNemarCurve" : "Orange.evaluation.scoring.plotMcNemarCurve", 
    344            "orngStat.plotMcNemarCurveLearners" : "Orange.evaluation.scoring.plotMcNemarCurveLearners", 
    345            "orngStat.plotROC" : "Orange.evaluation.scoring.plotROC", 
    346            "orngStat.plotROCLearners" : "Orange.evaluation.scoring.plotROCLearners", 
     341           "orngStat.plotLearningCurve" : "Orange.evaluation.scoring.plot_learning_curve", 
     342           "orngStat.plotLearningCurveLearners" : "Orange.evaluation.scoring.plot_learning_curve_learners", 
     343           "orngStat.plotMcNemarCurve" : "Orange.evaluation.scoring.plot_McNemar_curve", 
     344           "orngStat.plotMcNemarCurveLearners" : "Orange.evaluation.scoring.plot_McNemar_curve_learners", 
     345           "orngStat.plotROC" : "Orange.evaluation.scoring.plot_ROC", 
     346           "orngStat.plotROCLearners" : "Orange.evaluation.scoring.plot_ROC_learners", 
    347347           "orngStat.precision" : "Orange.evaluation.scoring.precision", 
    348            "orngStat.printSingleROCCurveCoordinates" : "Orange.evaluation.scoring.printSingleROCCurveCoordinates", 
    349            "orngStat.rankDifference" : "Orange.evaluation.scoring.rankDifference", 
     348           "orngStat.printSingleROCCurveCoordinates" : "Orange.evaluation.scoring.print_single_ROC_curve_coordinates", 
     349           "orngStat.rankDifference" : "Orange.evaluation.scoring.rank_difference", 
    350350           "orngStat.recall" : "Orange.evaluation.scoring.recall", 
    351            "orngStat.regressionError" : "Orange.evaluation.scoring.regressionError", 
    352            "orngStat.scottsPi" : "Orange.evaluation.scoring.scottsPi", 
     351           "orngStat.regressionError" : "Orange.evaluation.scoring.regression_error", 
     352           "orngStat.scottsPi" : "Orange.evaluation.scoring.scotts_pi", 
    353353           "orngStat.sens" : "Orange.evaluation.scoring.sens", 
    354354           "orngStat.spec" : "Orange.evaluation.scoring.spec", 
    355            "orngStat.splitByIterations" : "Orange.evaluation.scoring.splitByIterations", 
     355           "orngStat.splitByIterations" : "Orange.evaluation.scoring.split_by_iterations", 
    356356#           "orngStat.statc" : "Orange.evaluation.scoring.statc", 
    357            "orngStat.statisticsByFolds" : "Orange.evaluation.scoring.statisticsByFolds", 
     357           "orngStat.statisticsByFolds" : "Orange.evaluation.scoring.statistics_by_folds", 
    358358#           "orngStat.x" : "Orange.evaluation.scoring.x", 
    359359            
     
    466466            MAPPING['Orange.evaluation.testing.' + orig] = 'Orange.evaluation.testing.' + new 
    467467     
     468for k, v in MAPPING.items(): 
     469    if k.startswith('orngStat.'): 
     470        orig = k.split('.')[-1] 
     471        new = v.split('.')[-1] 
     472        if orig != new: 
     473            MAPPING['Orange.evaluation.scoring.' + orig] = 'Orange.evaluation.scoring.' + new 
    468474     
    469475def build_pattern(mapping=MAPPING): 
Note: See TracChangeset for help on using the changeset viewer.