Commit 999ea1d2ec131c0dfdd96135671c72374583a470
1 parent
e8bf858b
Exists in
master
and in
1 other branch
Fixed Makefile to clean directories recursively and reorganized files in
reposirory dirs.
Showing
18 changed files
with
168 additions
and
166 deletions
Show diff stats
src/Makefile
src/app_recommender.py
| @@ -1,56 +0,0 @@ | @@ -1,56 +0,0 @@ | ||
| 1 | -#!/usr/bin/env python | ||
| 2 | -""" | ||
| 3 | - AppRecommender - A GNU/Linux application recommender | ||
| 4 | -""" | ||
| 5 | -__author__ = "Tassia Camoes Araujo <tassia@gmail.com>" | ||
| 6 | -__copyright__ = "Copyright (C) 2011 Tassia Camoes Araujo" | ||
| 7 | -__license__ = """ | ||
| 8 | - This program is free software: you can redistribute it and/or modify | ||
| 9 | - it under the terms of the GNU General Public License as published by | ||
| 10 | - the Free Software Foundation, either version 3 of the License, or | ||
| 11 | - (at your option) any later version. | ||
| 12 | - | ||
| 13 | - This program is distributed in the hope that it will be useful, | ||
| 14 | - but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | - GNU General Public License for more details. | ||
| 17 | - | ||
| 18 | - You should have received a copy of the GNU General Public License | ||
| 19 | - along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 20 | -""" | ||
| 21 | - | ||
| 22 | -import os | ||
| 23 | -import sys | ||
| 24 | -import logging | ||
| 25 | -import datetime | ||
| 26 | -from datetime import timedelta | ||
| 27 | - | ||
| 28 | -from config import * | ||
| 29 | -from data import * | ||
| 30 | -from evaluation import * | ||
| 31 | -from dissimilarity import * | ||
| 32 | -from recommender import * | ||
| 33 | -from strategy import * | ||
| 34 | -from user import * | ||
| 35 | -from error import Error | ||
| 36 | - | ||
| 37 | -if __name__ == '__main__': | ||
| 38 | - try: | ||
| 39 | - cfg = Config() | ||
| 40 | - rec = Recommender(cfg) | ||
| 41 | - user = LocalSystem() | ||
| 42 | - user.no_auto_pkg_profile() | ||
| 43 | - | ||
| 44 | - begin_time = datetime.datetime.now() | ||
| 45 | - logging.debug("Recommendation computation started at %s" % begin_time) | ||
| 46 | - | ||
| 47 | - print rec.get_recommendation(user) | ||
| 48 | - | ||
| 49 | - end_time = datetime.datetime.now() | ||
| 50 | - logging.debug("Recommendation computation completed at %s" % end_time) | ||
| 51 | - delta = end_time - begin_time | ||
| 52 | - logging.info("Time elapsed: %d seconds." % delta.seconds) | ||
| 53 | - | ||
| 54 | - except Error: | ||
| 55 | - logging.critical("Aborting proccess. Use '--debug' for more details.") | ||
| 56 | - |
src/clustering.py
| @@ -1,47 +0,0 @@ | @@ -1,47 +0,0 @@ | ||
| 1 | -#!/usr/bin/env python | ||
| 2 | -""" | ||
| 3 | - Clustering - A python script to perform clustering of popcon data. | ||
| 4 | -""" | ||
| 5 | -__author__ = "Tassia Camoes Araujo <tassia@gmail.com>" | ||
| 6 | -__copyright__ = "Copyright (C) 2011 Tassia Camoes Araujo" | ||
| 7 | -__license__ = """ | ||
| 8 | - This program is free software: you can redistribute it and/or modify | ||
| 9 | - it under the terms of the GNU General Public License as published by | ||
| 10 | - the Free Software Foundation, either version 3 of the License, or | ||
| 11 | - (at your option) any later version. | ||
| 12 | - | ||
| 13 | - This program is distributed in the hope that it will be useful, | ||
| 14 | - but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | - GNU General Public License for more details. | ||
| 17 | - | ||
| 18 | - You should have received a copy of the GNU General Public License | ||
| 19 | - along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 20 | -""" | ||
| 21 | -import os | ||
| 22 | -import sys | ||
| 23 | -import logging | ||
| 24 | -import datetime | ||
| 25 | -from datetime import timedelta | ||
| 26 | - | ||
| 27 | -from config import * | ||
| 28 | -from data import * | ||
| 29 | -from dissimilarity import * | ||
| 30 | -from error import Error | ||
| 31 | - | ||
| 32 | -if __name__ == '__main__': | ||
| 33 | - try: | ||
| 34 | - cfg = Config() | ||
| 35 | - begin_time = datetime.datetime.now() | ||
| 36 | - logging.info("Clustering computation started at %s" % begin_time) | ||
| 37 | - | ||
| 38 | - cl = PopconClusteredData(cfg) | ||
| 39 | - | ||
| 40 | - end_time = datetime.datetime.now() | ||
| 41 | - logging.info("Clustering computation completed at %s" % end_time) | ||
| 42 | - delta = end_time - begin_time | ||
| 43 | - logging.info("Time elapsed: %d seconds." % delta.seconds) | ||
| 44 | - | ||
| 45 | - except Error: | ||
| 46 | - logging.critical("Aborting proccess. Use '--debug' for more details.") | ||
| 47 | - |
src/cross_validation.py
| @@ -1,61 +0,0 @@ | @@ -1,61 +0,0 @@ | ||
| 1 | -#!/usr/bin/env python | ||
| 2 | -""" | ||
| 3 | - CrossValidation - python module for classes and methods related to | ||
| 4 | - recommenders evaluation. | ||
| 5 | -""" | ||
| 6 | -__author__ = "Tassia Camoes Araujo <tassia@gmail.com>" | ||
| 7 | -__copyright__ = "Copyright (C) 2011 Tassia Camoes Araujo" | ||
| 8 | -__license__ = """ | ||
| 9 | - This program is free software: you can redistribute it and/or modify | ||
| 10 | - it under the terms of the GNU General Public License as published by | ||
| 11 | - the Free Software Foundation, either version 3 of the License, or | ||
| 12 | - (at your option) any later version. | ||
| 13 | - | ||
| 14 | - This program is distributed in the hope that it will be useful, | ||
| 15 | - but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 17 | - GNU General Public License for more details. | ||
| 18 | - | ||
| 19 | - You should have received a copy of the GNU General Public License | ||
| 20 | - along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 21 | -""" | ||
| 22 | - | ||
| 23 | -import os | ||
| 24 | -import sys | ||
| 25 | -import logging | ||
| 26 | -import datetime | ||
| 27 | -from datetime import timedelta | ||
| 28 | - | ||
| 29 | -from config import * | ||
| 30 | -from data import * | ||
| 31 | -from evaluation import * | ||
| 32 | -from dissimilarity import * | ||
| 33 | -from recommender import * | ||
| 34 | -from strategy import * | ||
| 35 | -from user import * | ||
| 36 | -from error import Error | ||
| 37 | - | ||
| 38 | -if __name__ == '__main__': | ||
| 39 | - try: | ||
| 40 | - cfg = Config() | ||
| 41 | - rec = Recommender(cfg) | ||
| 42 | - user = LocalSystem() | ||
| 43 | - user.maximal_pkg_profile() | ||
| 44 | - | ||
| 45 | - begin_time = datetime.datetime.now() | ||
| 46 | - logging.debug("Cross-validation started at %s" % begin_time) | ||
| 47 | - | ||
| 48 | - metrics = [] | ||
| 49 | - metrics.append(Precision()) | ||
| 50 | - metrics.append(Recall()) | ||
| 51 | - validation = CrossValidation(0.3,10,rec,metrics) | ||
| 52 | - validation.run(user) | ||
| 53 | - print validation | ||
| 54 | - | ||
| 55 | - end_time = datetime.datetime.now() | ||
| 56 | - logging.debug("Cross-validation completed at %s" % end_time) | ||
| 57 | - delta = end_time - begin_time | ||
| 58 | - logging.info("Time elapsed: %d seconds." % delta.seconds) | ||
| 59 | - | ||
| 60 | - except Error: | ||
| 61 | - logging.critical("Aborting proccess. Use '--debug' for more details.") |
| @@ -0,0 +1,57 @@ | @@ -0,0 +1,57 @@ | ||
| 1 | +#!/usr/bin/env python | ||
| 2 | +""" | ||
| 3 | + AppRecommender - A GNU/Linux application recommender | ||
| 4 | +""" | ||
| 5 | +__author__ = "Tassia Camoes Araujo <tassia@gmail.com>" | ||
| 6 | +__copyright__ = "Copyright (C) 2011 Tassia Camoes Araujo" | ||
| 7 | +__license__ = """ | ||
| 8 | + This program is free software: you can redistribute it and/or modify | ||
| 9 | + it under the terms of the GNU General Public License as published by | ||
| 10 | + the Free Software Foundation, either version 3 of the License, or | ||
| 11 | + (at your option) any later version. | ||
| 12 | + | ||
| 13 | + This program is distributed in the hope that it will be useful, | ||
| 14 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | + GNU General Public License for more details. | ||
| 17 | + | ||
| 18 | + You should have received a copy of the GNU General Public License | ||
| 19 | + along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 20 | +""" | ||
| 21 | + | ||
| 22 | +import os | ||
| 23 | +import sys | ||
| 24 | +sys.path.insert(0,'../') | ||
| 25 | +import logging | ||
| 26 | +import datetime | ||
| 27 | +from datetime import timedelta | ||
| 28 | + | ||
| 29 | +from config import * | ||
| 30 | +from data import * | ||
| 31 | +from evaluation import * | ||
| 32 | +from dissimilarity import * | ||
| 33 | +from recommender import * | ||
| 34 | +from strategy import * | ||
| 35 | +from user import * | ||
| 36 | +from error import Error | ||
| 37 | + | ||
| 38 | +if __name__ == '__main__': | ||
| 39 | + try: | ||
| 40 | + cfg = Config() | ||
| 41 | + rec = Recommender(cfg) | ||
| 42 | + user = LocalSystem() | ||
| 43 | + user.no_auto_pkg_profile() | ||
| 44 | + | ||
| 45 | + begin_time = datetime.datetime.now() | ||
| 46 | + logging.debug("Recommendation computation started at %s" % begin_time) | ||
| 47 | + | ||
| 48 | + print rec.get_recommendation(user) | ||
| 49 | + | ||
| 50 | + end_time = datetime.datetime.now() | ||
| 51 | + logging.debug("Recommendation computation completed at %s" % end_time) | ||
| 52 | + delta = end_time - begin_time | ||
| 53 | + logging.info("Time elapsed: %d seconds." % delta.seconds) | ||
| 54 | + | ||
| 55 | + except Error: | ||
| 56 | + logging.critical("Aborting proccess. Use '--debug' for more details.") | ||
| 57 | + |
| @@ -0,0 +1,48 @@ | @@ -0,0 +1,48 @@ | ||
| 1 | +#!/usr/bin/env python | ||
| 2 | +""" | ||
| 3 | + Clustering - A python script to perform clustering of popcon data. | ||
| 4 | +""" | ||
| 5 | +__author__ = "Tassia Camoes Araujo <tassia@gmail.com>" | ||
| 6 | +__copyright__ = "Copyright (C) 2011 Tassia Camoes Araujo" | ||
| 7 | +__license__ = """ | ||
| 8 | + This program is free software: you can redistribute it and/or modify | ||
| 9 | + it under the terms of the GNU General Public License as published by | ||
| 10 | + the Free Software Foundation, either version 3 of the License, or | ||
| 11 | + (at your option) any later version. | ||
| 12 | + | ||
| 13 | + This program is distributed in the hope that it will be useful, | ||
| 14 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 15 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 16 | + GNU General Public License for more details. | ||
| 17 | + | ||
| 18 | + You should have received a copy of the GNU General Public License | ||
| 19 | + along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 20 | +""" | ||
| 21 | +import os | ||
| 22 | +import sys | ||
| 23 | +sys.path.insert(0,'../') | ||
| 24 | +import logging | ||
| 25 | +import datetime | ||
| 26 | +from datetime import timedelta | ||
| 27 | + | ||
| 28 | +from config import * | ||
| 29 | +from data import * | ||
| 30 | +from dissimilarity import * | ||
| 31 | +from error import Error | ||
| 32 | + | ||
| 33 | +if __name__ == '__main__': | ||
| 34 | + try: | ||
| 35 | + cfg = Config() | ||
| 36 | + begin_time = datetime.datetime.now() | ||
| 37 | + logging.info("Clustering computation started at %s" % begin_time) | ||
| 38 | + | ||
| 39 | + cl = PopconClusteredData(cfg) | ||
| 40 | + | ||
| 41 | + end_time = datetime.datetime.now() | ||
| 42 | + logging.info("Clustering computation completed at %s" % end_time) | ||
| 43 | + delta = end_time - begin_time | ||
| 44 | + logging.info("Time elapsed: %d seconds." % delta.seconds) | ||
| 45 | + | ||
| 46 | + except Error: | ||
| 47 | + logging.critical("Aborting proccess. Use '--debug' for more details.") | ||
| 48 | + |
| @@ -0,0 +1,62 @@ | @@ -0,0 +1,62 @@ | ||
| 1 | +#!/usr/bin/env python | ||
| 2 | +""" | ||
| 3 | + CrossValidation - python module for classes and methods related to | ||
| 4 | + recommenders evaluation. | ||
| 5 | +""" | ||
| 6 | +__author__ = "Tassia Camoes Araujo <tassia@gmail.com>" | ||
| 7 | +__copyright__ = "Copyright (C) 2011 Tassia Camoes Araujo" | ||
| 8 | +__license__ = """ | ||
| 9 | + This program is free software: you can redistribute it and/or modify | ||
| 10 | + it under the terms of the GNU General Public License as published by | ||
| 11 | + the Free Software Foundation, either version 3 of the License, or | ||
| 12 | + (at your option) any later version. | ||
| 13 | + | ||
| 14 | + This program is distributed in the hope that it will be useful, | ||
| 15 | + but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 17 | + GNU General Public License for more details. | ||
| 18 | + | ||
| 19 | + You should have received a copy of the GNU General Public License | ||
| 20 | + along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 21 | +""" | ||
| 22 | + | ||
| 23 | +import os | ||
| 24 | +import sys | ||
| 25 | +sys.path.insert(0,'../') | ||
| 26 | +import logging | ||
| 27 | +import datetime | ||
| 28 | +from datetime import timedelta | ||
| 29 | + | ||
| 30 | +from config import * | ||
| 31 | +from data import * | ||
| 32 | +from evaluation import * | ||
| 33 | +from dissimilarity import * | ||
| 34 | +from recommender import * | ||
| 35 | +from strategy import * | ||
| 36 | +from user import * | ||
| 37 | +from error import Error | ||
| 38 | + | ||
| 39 | +if __name__ == '__main__': | ||
| 40 | + try: | ||
| 41 | + cfg = Config() | ||
| 42 | + rec = Recommender(cfg) | ||
| 43 | + user = LocalSystem() | ||
| 44 | + user.maximal_pkg_profile() | ||
| 45 | + | ||
| 46 | + begin_time = datetime.datetime.now() | ||
| 47 | + logging.debug("Cross-validation started at %s" % begin_time) | ||
| 48 | + | ||
| 49 | + metrics = [] | ||
| 50 | + metrics.append(Precision()) | ||
| 51 | + metrics.append(Recall()) | ||
| 52 | + validation = CrossValidation(0.3,10,rec,metrics) | ||
| 53 | + validation.run(user) | ||
| 54 | + print validation | ||
| 55 | + | ||
| 56 | + end_time = datetime.datetime.now() | ||
| 57 | + logging.debug("Cross-validation completed at %s" % end_time) | ||
| 58 | + delta = end_time - begin_time | ||
| 59 | + logging.info("Time elapsed: %d seconds." % delta.seconds) | ||
| 60 | + | ||
| 61 | + except Error: | ||
| 62 | + logging.critical("Aborting proccess. Use '--debug' for more details.") |
src/tests/.pxi/flintlock
src/tests/.pxi/iamchert
No preview for this file type
src/tests/.pxi/postlist.DB
src/tests/.pxi/postlist.baseA
No preview for this file type
src/tests/.pxi/record.DB
src/tests/.pxi/record.baseA
No preview for this file type
src/tests/.pxi/termlist.DB
src/tests/.pxi/termlist.baseA
No preview for this file type
src/tests/.user_tests.py.swp
No preview for this file type
src/tests/pxi.pyc
No preview for this file type
src/tests/user_tests.pyc
No preview for this file type