astaric avatar astaric committed 64e5e82

Fixed a bunch of PyCharm warnings.

Comments (0)

Files changed (2)

+from orangeom import *
 from orange import *
-from orangeom import *
+
+
+__all__ = [
+# Imported from orange
+           'AlignmentList',
+           'AssessIMQuality',
+           'AssociationClassifier',
+           'AssociationLearner',
+           'AssociationRule',
+           'AssociationRules',
+           'AssociationRulesInducer',
+           'AssociationRulesSparseInducer',
+           'AttributeWarning',
+           'AttributedBoolList',
+           'AttributedFloatList',
+           'BasicAttrStat',
+           'BasketExampleGenerator',
+           'BasketFeeder',
+           'BayesClassifier',
+           'BayesLearner',
+           'BiModalDiscretization',
+           'BiModalDiscretizer',
+           'BoolList',
+           'C45Classifier',
+           'C45ExampleGenerator',
+           'C45Learner',
+           'C45TreeNode',
+           'C45TreeNodeList',
+           'CartesianClassifier',
+           'Classifier',
+           'ClassifierByExampleTable',
+           'ClassifierByLookupTable',
+           'ClassifierByLookupTable1',
+           'ClassifierByLookupTable2',
+           'ClassifierByLookupTable3',
+           'ClassifierFD',
+           'ClassifierFromVar',
+           'ClassifierFromVarFD',
+           'ClassifierList',
+           'ClustersFromDistributions',
+           'ClustersFromDistributionsByAssessor',
+           'ClustersFromIM',
+           'ClustersFromIMByAssessor',
+           'ColorIG',
+           'ColorIG_MCF',
+           'ColoredIG',
+           'ColumnAssessor',
+           'ColumnAssessor_Kramer',
+           'ColumnAssessor_Laplace',
+           'ColumnAssessor_Measure',
+           'ColumnAssessor_N',
+           'ColumnAssessor_Relief',
+           'ColumnAssessor_m',
+           'ColumnAssessor_mf',
+           'CompatibilityWarning',
+           'ComputeDomainContingency',
+           'ConditionalProbabilityEstimator',
+           'ConditionalProbabilityEstimatorConstructor',
+           'ConditionalProbabilityEstimatorConstructor_ByRows',
+           'ConditionalProbabilityEstimatorConstructor_loess',
+           'ConditionalProbabilityEstimatorList',
+           'ConditionalProbabilityEstimator_ByRows',
+           'ConditionalProbabilityEstimator_FromDistribution',
+           'ContDistribution',
+           'Contingency',
+           'ContingencyAttrAttr',
+           'ContingencyAttrClass',
+           'ContingencyClass',
+           'ContingencyClassAttr',
+           'CostLearner',
+           'CostMatrix',
+           'CostWrapperClassifier',
+           'CostWrapperLearner',
+           'DefaultClassifier',
+           'DiscDistribution',
+           'Discrete2Continuous',
+           'Discretization',
+           'Discretizer',
+           'DistanceMap',
+           'DistanceMapConstructor',
+           'Distribution',
+           'DistributionAssessor',
+           'DistributionAssessor_Kramer',
+           'DistributionAssessor_Laplace',
+           'DistributionAssessor_Measure',
+           'DistributionAssessor_Relief',
+           'DistributionAssessor_m',
+           'DistributionAssessor_mf',
+           'DistributionList',
+           'Domain',
+           'DomainBasicAttrStat',
+           'DomainContingency',
+           'DomainContinuizer',
+           'DomainDepot',
+           'DomainDistributions',
+           'DomainTransformerConstructor',
+           'EFMDataDescription',
+           'EVDist',
+           'EVDistGetter',
+           'EVDistGetter_Standard',
+           'EVDistList',
+           'EarthClassifier',
+           'EarthLearner',
+           'EntropyDiscretization',
+           'EnumVariable',
+           'EquiDistDiscretization',
+           'EquiDistDiscretizer',
+           'EquiNDiscretization',
+           'Example',
+           'ExampleCluster',
+           'ExampleClusters',
+           'ExampleDistBySorting',
+           'ExampleDistConstructor',
+           'ExampleDistVector',
+           'ExampleGenerator',
+           'ExampleGeneratorList',
+           'ExampleTable',
+           'ExamplesDistance',
+           'ExamplesDistanceConstructor',
+           'ExamplesDistanceConstructor_DTW',
+           'ExamplesDistanceConstructor_Euclidean',
+           'ExamplesDistanceConstructor_Hamming',
+           'ExamplesDistanceConstructor_Lp',
+           'ExamplesDistanceConstructor_Manhattan',
+           'ExamplesDistanceConstructor_Maximal',
+           'ExamplesDistanceConstructor_Relief',
+           'ExamplesDistance_DTW',
+           'ExamplesDistance_Euclidean',
+           'ExamplesDistance_Hamming',
+           'ExamplesDistance_Lp',
+           'ExamplesDistance_Manhattan',
+           'ExamplesDistance_Maximal',
+           'ExamplesDistance_Normalized',
+           'ExamplesDistance_Relief',
+           'FeatureByDistributions',
+           'FeatureByIM',
+           'FeatureByMinComplexity',
+           'FeatureInducer',
+           'FileExampleGenerator',
+           'Filter',
+           'FilterList',
+           'Filter_conjunction',
+           'Filter_disjunction',
+           'Filter_hasClassValue',
+           'Filter_hasMeta',
+           'Filter_hasSpecial',
+           'Filter_isDefined',
+           'Filter_random',
+           'Filter_sameValue',
+           'Filter_values',
+           'FindNearest',
+           'FindNearestConstructor',
+           'FindNearestConstructor_BruteForce',
+           'FindNearest_BruteForce',
+           'FloatFloatList',
+           'FloatList',
+           'FloatListList',
+           'FloatVariable',
+           'GaussianDistribution',
+           'GeneralExampleClustering',
+           'GetBoth',
+           'GetProbabilities',
+           'GetValue',
+           'Graph',
+           'GraphAsList',
+           'GraphAsMatrix',
+           'GraphAsTree',
+           'HierarchicalCluster',
+           'HierarchicalClusterList',
+           'HierarchicalClusterOrdering',
+           'HierarchicalClustering',
+           'IG',
+           'IGBySorting',
+           'IGConstructor',
+           'IM',
+           'IMBlurer',
+           'IMByIMByRows',
+           'IMByRelief',
+           'IMByRows',
+           'IMByRowsByRelief',
+           'IMByRowsBySorting',
+           'IMByRowsConstructor',
+           'IMByRowsPreprocessor',
+           'IMBySorting',
+           'IMClustering',
+           'IMConstructor',
+           'Illegal_Float',
+           'ImputeClassifier',
+           'Imputer',
+           'ImputerConstructor',
+           'ImputerConstructor_asValue',
+           'ImputerConstructor_average',
+           'ImputerConstructor_maximal',
+           'ImputerConstructor_minimal',
+           'ImputerConstructor_model',
+           'ImputerConstructor_random',
+           'Imputer_asValue',
+           'Imputer_defaults',
+           'Imputer_model',
+           'Imputer_random',
+           'IntFloatList',
+           'IntList',
+           'IntervalDiscretizer',
+           'ItemsetNodeProxy',
+           'ItemsetsSparseInducer',
+           'KernelException',
+           'KernelFunc',
+           'KernelWarning',
+           'Learner',
+           'LearnerFD',
+           'LinearClassifier',
+           'LinearLearner',
+           'LogRegClassifier',
+           'LogRegFitter',
+           'LogRegFitter_Cholesky',
+           'LogRegLearner',
+           'LongList',
+           'LookupLearner',
+           'MajorityLearner',
+           'MakeRandomIndices',
+           'MakeRandomIndices2',
+           'MakeRandomIndicesCV',
+           'MakeRandomIndicesMultiple',
+           'MakeRandomIndicesN',
+           'MapIntValue',
+           'MeasureAttribute',
+           'MeasureAttributeFromProbabilities',
+           'MeasureAttribute_IM',
+           'MeasureAttribute_MSE',
+           'MeasureAttribute_chiSquare',
+           'MeasureAttribute_cost',
+           'MeasureAttribute_gainRatio',
+           'MeasureAttribute_gainRatioA',
+           'MeasureAttribute_gini',
+           'MeasureAttribute_info',
+           'MeasureAttribute_logOddsRatio',
+           'MeasureAttribute_relevance',
+           'MeasureAttribute_relief',
+           'MeasureAttribute_retis',
+           'MeasureAttribute_splitGain',
+           'NormalizeContinuous',
+           'OrangeBase',
+           'Ordinal2Continuous',
+           'P2NN',
+           'PearsonCorrelation',
+           'Preprocessor',
+           'Preprocessor_addCensorWeight',
+           'Preprocessor_addClassNoise',
+           'Preprocessor_addClassWeight',
+           'Preprocessor_addGaussianClassNoise',
+           'Preprocessor_addGaussianNoise',
+           'Preprocessor_addMissing',
+           'Preprocessor_addMissingClasses',
+           'Preprocessor_addNoise',
+           'Preprocessor_discretize',
+           'Preprocessor_drop',
+           'Preprocessor_dropMissing',
+           'Preprocessor_dropMissingClasses',
+           'Preprocessor_filter',
+           'Preprocessor_ignore',
+           'Preprocessor_imputeByLearner',
+           'Preprocessor_removeDuplicates',
+           'Preprocessor_select',
+           'Preprocessor_shuffle',
+           'Preprocessor_take',
+           'Preprocessor_takeMissing',
+           'Preprocessor_takeMissingClasses',
+           'ProbabilityEstimator',
+           'ProbabilityEstimatorConstructor',
+           'ProbabilityEstimatorConstructor_Laplace',
+           'ProbabilityEstimatorConstructor_kernel',
+           'ProbabilityEstimatorConstructor_loess',
+           'ProbabilityEstimatorConstructor_m',
+           'ProbabilityEstimatorConstructor_relative',
+           'ProbabilityEstimatorList',
+           'ProbabilityEstimator_FromDistribution',
+           'ProgressCallback',
+           'PythonValue',
+           'PythonValueSpecial',
+           'PythonVariable',
+           'RandomClassifier',
+           'RandomGenerator',
+           'RandomLearner',
+           'RemoveRedundant',
+           'RemoveRedundantByInduction',
+           'RemoveRedundantByQuality',
+           'RemoveRedundantOneValue',
+           'RemoveUnusedValues',
+           'Rule',
+           'RuleBeamCandidateSelector',
+           'RuleBeamCandidateSelector_TakeAll',
+           'RuleBeamFilter',
+           'RuleBeamFilter_Width',
+           'RuleBeamFinder',
+           'RuleBeamInitializer',
+           'RuleBeamInitializer_Default',
+           'RuleBeamRefiner',
+           'RuleBeamRefiner_Selector',
+           'RuleClassifier',
+           'RuleClassifierConstructor',
+           'RuleClassifier_firstRule',
+           'RuleClassifier_logit',
+           'RuleCovererAndRemover',
+           'RuleCovererAndRemover_Default',
+           'RuleDataStoppingCriteria',
+           'RuleDataStoppingCriteria_NoPositives',
+           'RuleEvaluator',
+           'RuleEvaluator_Entropy',
+           'RuleEvaluator_LRS',
+           'RuleEvaluator_Laplace',
+           'RuleEvaluator_mEVC',
+           'RuleFinder',
+           'RuleLearner',
+           'RuleList',
+           'RuleStoppingCriteria',
+           'RuleStoppingCriteria_NegativeDistribution',
+           'RuleValidator',
+           'RuleValidator_LRS',
+           'SVMClassifier',
+           'SVMClassifierSparse',
+           'SVMLearner',
+           'SVMLearnerSparse',
+           'SimpleTreeClassifier',
+           'SimpleTreeLearner',
+           'SomeValue',
+           'StopDistributionClustering',
+           'StopDistributionClustering_binary',
+           'StopDistributionClustering_n',
+           'StopDistributionClustering_noBigChange',
+           'StopDistributionClustering_noProfit',
+           'StopIMClusteringByAssessor',
+           'StopIMClusteringByAssessor_binary',
+           'StopIMClusteringByAssessor_n',
+           'StopIMClusteringByAssessor_noBigChange',
+           'StopIMClusteringByAssessor_noProfit',
+           'StringList',
+           'StringValue',
+           'StringVariable',
+           'SubsetsGenerator',
+           'SubsetsGenerator_constSize',
+           'SubsetsGenerator_constSize_iterator',
+           'SubsetsGenerator_constant',
+           'SubsetsGenerator_constant_iterator',
+           'SubsetsGenerator_iterator',
+           'SubsetsGenerator_minMaxSize',
+           'SubsetsGenerator_minMaxSize_iterator',
+           'SubsetsGenerator_withRestrictions',
+           'SubsetsGenerator_withRestrictions_iterator',
+           'SymMatrix',
+           'TabDelimExampleGenerator',
+           'TableAverager',
+           'ThresholdCA',
+           'ThresholdDiscretizer',
+           'TransformValue',
+           'TransformValue_IsDefined',
+           'TreeClassifier',
+           'TreeDescender',
+           'TreeDescender_UnknownMergeAsBranchSizes',
+           'TreeDescender_UnknownMergeAsSelector',
+           'TreeDescender_UnknownToBranch',
+           'TreeDescender_UnknownToCommonBranch',
+           'TreeDescender_UnknownToCommonSelector',
+           'TreeExampleSplitter',
+           'TreeExampleSplitter_IgnoreUnknowns',
+           'TreeExampleSplitter_UnknownsAsBranchSizes',
+           'TreeExampleSplitter_UnknownsAsSelector',
+           'TreeExampleSplitter_UnknownsToAll',
+           'TreeExampleSplitter_UnknownsToBranch',
+           'TreeExampleSplitter_UnknownsToCommon',
+           'TreeExampleSplitter_UnknownsToRandom',
+           'TreeLearner',
+           'TreeNode',
+           'TreeNodeList',
+           'TreePruner',
+           'TreePruner_SameMajority',
+           'TreePruner_m',
+           'TreeSplitConstructor',
+           'TreeSplitConstructor_Attribute',
+           'TreeSplitConstructor_Combined',
+           'TreeSplitConstructor_ExhaustiveBinary',
+           'TreeSplitConstructor_Measure',
+           'TreeSplitConstructor_OneAgainstOthers',
+           'TreeSplitConstructor_Threshold',
+           'TreeStopCriteria',
+           'TreeStopCriteria_Python',
+           'TreeStopCriteria_common',
+           'Value',
+           'ValueFilter',
+           'ValueFilterList',
+           'ValueFilter_continuous',
+           'ValueFilter_discrete',
+           'ValueFilter_string',
+           'ValueFilter_stringList',
+           'ValueList',
+           'ValueTypes',
+           'VarList',
+           'VarListList',
+           'VarTypes',
+           'Variable',
+           'VariableFilterMap',
+           'VariableFloatMap',
+           'Warning',
+           'compiletime',
+           'frange',
+           'getClassDistribution',
+           'getRegisteredFileTypes',
+           'globalRandom',
+           'kNNClassifier',
+           'kNNLearner',
+           'kaplanMeier',
+           'newmetaid',
+           'registerFileType',
+           'registerPythonVariable',
+           'removeoutput',
+           'saveBasket',
+           'saveC45',
+           'saveCsv',
+           'saveTabDelimited',
+           'saveTxt',
+           'select',
+           'setWarningLevel',
+           'setoutput',
+           'setrandseed',
+           'textCos',
+           'version',
+# imported from orangeom
+            'GraphLayout',
+            'KruskalStress',
+            'MDS',
+            'Network',
+            'NetworkOptimization',
+            'Pathfinder',
+            'SammonStress',
+            'SgnRelStress',
+            'SgnSammonStress',
+            'StressFunc',
+            'StressFunc_Python',
+            'dist',
+            'graphOptimization1',
+            'optimizeAnchors',
+            'optimizeAnchorsR',
+            'optimizeAnchorsRadial',
+            'potentialsBitmap',
+            'qhull',
+            'qing',
+            'star',
+            'version']

Orange/feature/__init__.py

 
 __all__ = ["Descriptor", "Discrete", "Continuous", "Python", "String", "Type"]
 
-from Orange.core import Variable as Descriptor
-from Orange.core import EnumVariable as Discrete
-from Orange.core import FloatVariable as Continuous
-from Orange.core import PythonVariable as Python
-from Orange.core import StringVariable as String
+from Orange import core
 
-from Orange.core import VarTypes as Type
+Descriptor = core.Variable
+Discrete = core.EnumVariable
+Continuous = core.FloatVariable
+Python = core.PythonVariable
+String = core.StringVariable
+Type = core.VarTypes
 
 __docformat__ = 'restructuredtext'
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.