コード例 #1
0
ファイル: algorithmFrequency.py プロジェクト: IFT-SE/pfis3
 def __init__(self,
              langHelper,
              name,
              fileName,
              includeTop=False,
              numTopPredictions=0):
     PredictiveAlgorithm.__init__(self, langHelper, name, fileName,
                                  includeTop, numTopPredictions)
     self.__methodFrequencies = {}
コード例 #2
0
ファイル: algorithmPFISBase.py プロジェクト: IFT-SE/pfis3
 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
ファイル: algorithmPFISBase.py プロジェクト: IFT-SE/pfis3
 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
ファイル: algorithmsLexicalBase.py プロジェクト: IFT-SE/pfis3
 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
ファイル: algorithmFrequency.py プロジェクト: IFT-SE/pfis3
 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
ファイル: algorithmsLexicalBase.py プロジェクト: IFT-SE/pfis3
 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
ファイル: algorithmWorkingSet.py プロジェクト: IFT-SE/pfis3
 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)