예제 #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)