Skip to content

Commit

Permalink
Merge branch 'move_experiments_dir' into 'master'
Browse files Browse the repository at this point in the history
Remove experiments dir from apprecommender dir



See merge request !9
  • Loading branch information
lucasmoura committed Jun 4, 2016
2 parents 320c6e7 + ff13612 commit 6eaab76
Show file tree
Hide file tree
Showing 16 changed files with 37 additions and 42 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

sys.path.insert(0, '../')

from config import Config
from data import PopconXapianIndex
from apprecommender.config import Config
from apprecommender.data import PopconXapianIndex

if __name__ == '__main__':

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@

sys.path.insert(0, '../')

from config import Config
from recommender import Recommender, RecommendationResult
from user import User, PopconSystem
from evaluation import Evaluation, Precision, Recall, FPR, F_score, MCC
from apprecommender.config import Config
from apprecommender.recommender import Recommender, RecommendationResult
from apprecommender.user import User, PopconSystem
from apprecommender.evaluation import (Evaluation, Precision,
Recall, FPR, F_score, MCC)


def plot_roc(k, roc_points, log_file):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@

sys.path.insert(0, '../')

from config import Config
from data import PopconXapianIndex
from recommender import Recommender, RecommendationResult
from evaluation import Evaluation, Accuracy, Precision, Recall, F1
from user import LocalSystem, User
from apprecommender.config import Config
from apprecommender.data import PopconXapianIndex
from apprecommender.recommender import Recommender, RecommendationResult
from apprecommender.evaluation import (Evaluation, Accuracy,
Precision, Recall, F1)
from apprecommender.user import LocalSystem, User


class ClusteringSuite(expsuite.PyExperimentSuite):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@

sys.path.insert(0, '../')

from config import Config
from recommender import Recommender, RecommendationResult
from user import User, PopconSystem
from evaluation import Evaluation, Accuracy, Precision, Recall, F_score
from apprecommender.config import Config
from apprecommender.recommender import Recommender, RecommendationResult
from apprecommender.user import User, PopconSystem
from apprecommender.evaluation import (Evaluation, Accuracy,
Precision, Recall, F_score)

# iterations = 3
# sample_proportions = [0.9]
Expand Down
File renamed without changes.
10 changes: 4 additions & 6 deletions apprecommender/experiments/hybrid.py → experiments/hybrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@
import random
import sys

sys.path.insert(0, '../')

from config import Config
from recommender import Recommender, RecommendationResult
from evaluation import Evaluation, Precision, F_score
from user import User, PopconSystem
from apprecommender.config import Config
from apprecommender.recommender import Recommender, RecommendationResult
from apprecommender.evaluation import Evaluation, Precision, F_score
from apprecommender.user import User, PopconSystem

# hybrid_strategies = ['knnco','knnco_eset']

Expand Down
File renamed without changes.
File renamed without changes.
10 changes: 4 additions & 6 deletions apprecommender/experiments/pure.py → experiments/pure.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@
import Gnuplot
import numpy

sys.path.insert(0, '../')

from config import Config
from evaluation import Evaluation, Precision, F_score
from recommender import Recommender, RecommendationResult
from user import User, PopconSystem
from apprecommender.config import Config
from apprecommender.evaluation import Evaluation, Precision, F_score
from apprecommender.recommender import Recommender, RecommendationResult
from apprecommender.user import User, PopconSystem

if __name__ == '__main__':
if len(sys.argv) < 2:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@
import Gnuplot
import numpy

sys.path.insert(0, '../')

from config import Config
from recommender import Recommender, RecommendationResult
from user import User, PopconSystem
from evaluation import Evaluation, Precision, F_score, FPR, Recall
from apprecommender.config import Config
from apprecommender.recommender import Recommender, RecommendationResult
from apprecommender.user import User, PopconSystem
from apprecommender.evaluation import (Evaluation, Precision,
F_score, FPR, Recall)


def plot_roc(results, log_file, mean=0):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@
import numpy
import shutil

sys.path.insert(0, '../')

from config import Config
from recommender import Recommender, RecommendationResult
from evaluation import Evaluation, Precision, Recall, F_score, FPR
from user import User, PopconSystem
from apprecommender.config import Config
from apprecommender.recommender import Recommender, RecommendationResult
from apprecommender.evaluation import (Evaluation, Precision,
Recall, F_score, FPR)
from apprecommender.user import User, PopconSystem


def write_recall_log(label, n, sample, recommendation, profile_size, repo_size,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
"""
import sys

sys.path.insert(0, '../')

from user import RandomPopcon
from apprecommender.user import RandomPopcon

if __name__ == '__main__':
try:
Expand Down
File renamed without changes.

0 comments on commit 6eaab76

Please sign in to comment.