rafguns / linkpred

Easy link prediction tool
Other
141 stars 46 forks source link

Allow specifying one's own file name for evaluation #8

Open rafguns opened 8 years ago

rafguns commented 8 years ago

At the moment, the listeners in linkpred.evaluation.listeners use fixed file names (well, they change, depending on dataset, predictor and time stamp, but it's not really possible to specify your own name). That sucks.

My original thought was that base class Listener would just accept an extra argument in its ctor, which could then be used by all descendant classes. The problematic cases, however, are CachePredictionListener and CacheEvaluationListener, since they can actually generate multiple files (e.g., one per predictor). Possibilities: