Commit 21c4497cd7e1be63758eb2e46d3007156b29bb89
1 parent
cb481d00
Exists in
master
and in
1 other branch
Removed hardcoded path
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/bin/cross_validation.py
... | ... | @@ -37,7 +37,7 @@ if __name__ == '__main__': |
37 | 37 | #user = LocalSystem() |
38 | 38 | #user = RandomPopcon(cfg.popcon_dir) |
39 | 39 | #user = RandomPopcon(cfg.popcon_dir,os.path.join(cfg.filters_dir,"desktopapps")) |
40 | - user = PopconSystem("/home/tassia/.app-recommender/popcon-entries/4a/4a67a295ec14826db2aa1d90be2f1623") | |
40 | + user = PopconSystem(os.path.expanduser("~/.app-recommender/popcon-entries/00/0001166d0737c6dffb083071e5ee69f5")) | |
41 | 41 | user.filter_pkg_profile(os.path.join(cfg.filters_dir,"desktopapps")) |
42 | 42 | user.maximal_pkg_profile() |
43 | 43 | begin_time = datetime.datetime.now() |
... | ... | @@ -48,7 +48,7 @@ if __name__ == '__main__': |
48 | 48 | metrics.append(F_score(0.5)) |
49 | 49 | metrics.append(Accuracy()) |
50 | 50 | metrics.append(FPR()) |
51 | - validation = CrossValidation(0.9,10,rec,metrics,1) | |
51 | + validation = CrossValidation(0.9,20,rec,metrics,0.005) | |
52 | 52 | validation.run(user) |
53 | 53 | print validation |
54 | 54 | ... | ... |