interface_repository_classifier module

class interface_repository_classifier.Interface_RepoClassifier[source]

Bases: object

exportModelToFile()[source]

abstract method Export the model and all prequisites to the directory model/

Returns:
loadModelFromFile()[source]

abstract method Loading of the exported model

Returns:
loadTrainingData(strProjPathFileNameCSV)[source]

abstract method The classifier loads the sample data from a given csv-file

Parameters:strProjPathFileNameCSV – path to the csv-file
Returns:
plotTheResult()[source]

abstract method A plot in which the classification is illustrated

Returns:
predictCategoryFromOwnerRepoName(strUser, strRepoName)[source]

abstract method Predict the category for a repository

Parameters:
  • strUser
  • strRepoName
Returns:

predictCategoryFromURL(strGitHubRepoURL)[source]

abstract method Predict the category

Parameters:strGitHubRepoURL
Returns:
predictResultsAndCompare(strProjPathFileNameCSV)[source]

abstract method Predict a given csv-file and compare the result with the manual classification

Parameters:strProjPathFileNameCSV – path to the csv-file
Returns:
trainModel(lstTrainData, lstTrainLabels)[source]

abstract method The model shall be trained via supervised learning

Parameters:
  • lstTrainData – matrix of the training data
  • lstTrainLabels – list of the associated labels
Returns: