示例#1
0
 def __init__(self,
              langHelper,
              name,
              fileName,
              includeTop=False,
              numTopPredictions=0):
     PredictiveAlgorithm.__init__(self, langHelper, name, fileName,
                                  includeTop, numTopPredictions)
     self.__methodFrequencies = {}
示例#2
0
 def __init__(self, langHelper, name, fileName, history=False, goal = [], \
              decayFactor = 0.85, decayHistory = 0.9,
              includeTop = False, numTopPredictions=0):
     PredictiveAlgorithm.__init__(self, langHelper, name, fileName, includeTop, numTopPredictions)
     self.history = history
     self.goal = goal
     self.DECAY_FACTOR = decayFactor
     self.DECAY_HISTORY = decayHistory
     self.mapNodesToActivation = None
示例#3
0
 def __init__(self, langHelper, name, fileName, history=False, goal = [], \
              decayFactor = 0.85, decayHistory = 0.9,
              includeTop = False, numTopPredictions=0):
     PredictiveAlgorithm.__init__(self, langHelper, name, fileName,
                                  includeTop, numTopPredictions)
     self.history = history
     self.goal = goal
     self.DECAY_FACTOR = decayFactor
     self.DECAY_HISTORY = decayHistory
     self.mapNodesToActivation = None
示例#4
0
 def __init__(self,
              langHelper,
              name,
              fileName,
              workingSetSize=10,
              includeTop=False,
              numTopPredictions=0):
     self.__workingSetSize = workingSetSize
     PredictiveAlgorithm.__init__(self, langHelper, name, fileName,
                                  includeTop, numTopPredictions)
示例#5
0
 def __init__(self,
              langHelper,
              name,
              fileName,
              dbFilePath,
              includeTop=False,
              numTopPredictions=0):
     PredictiveAlgorithm.__init__(self, langHelper, name, fileName,
                                  includeTop, numTopPredictions)
     self.dbFilePath = dbFilePath
     self.corpus = CorpusOfMethodContents()
示例#6
0
 def __init__(self,
              langHelper,
              name,
              fileName,
              edgeTypes,
              includeTop=False,
              numTopPredictions=0):
     PredictiveAlgorithm.__init__(self, langHelper, name, fileName,
                                  includeTop, numTopPredictions)
     self.edgeTypes = edgeTypes
     self.nodeDistances = None
示例#7
0
 def __init__(self, langHelper, name, fileName, includeTop = False, numTopPredictions=0):
     PredictiveAlgorithm.__init__(self, langHelper, name, fileName, includeTop, numTopPredictions)
     self.__methodFrequencies = {}
示例#8
0
 def __init__(self, langHelper, name, fileName, dbFilePath, includeTop = False, numTopPredictions=0):
     PredictiveAlgorithm.__init__(self, langHelper, name, fileName, includeTop, numTopPredictions)
     self.lexicalHelper = LexicalHelper(dbFilePath, langHelper)
示例#9
0
 def __init__(self, langHelper, name, fileName, dbFilePath, includeTop = False, numTopPredictions=0):
     PredictiveAlgorithm.__init__(self, langHelper, name, fileName, includeTop, numTopPredictions)
     self.dbFilePath = dbFilePath
     self.corpus = CorpusOfMethodContents()
示例#10
0
 def __init__(self, langHelper, name, fileName, workingSetSize=10, includeTop = False, numTopPredictions=0):
     self.__workingSetSize = workingSetSize
     PredictiveAlgorithm.__init__(self, langHelper, name, fileName, includeTop, numTopPredictions)
示例#11
0
 def __init__(self, langHelper, name, fileName, edgeTypes, includeTop = False, numTopPredictions=0):
     PredictiveAlgorithm.__init__(self, langHelper, name, fileName, includeTop, numTopPredictions)
     self.edgeTypes = edgeTypes
     self.nodeDistances = None
示例#12
0
 def __init__(self, langHelper, name, fileName, includeTop = False, numTopPredictions=0):
     PredictiveAlgorithm.__init__(self, langHelper, name, fileName, includeTop, numTopPredictions)