Closed rafguns closed 9 years ago
It should be possible to save Scoresheets to a CSV-like format and easily create them as well. This would also allow us to replace the code in CachePredictionListener.on_prediction_finished with
Scoresheet
CachePredictionListener.on_prediction_finished
def on_prediction_finished(self, scoresheet, dataset, predictor): self.fname = _timestamped_filename("%s-%s-predictions" % (dataset, predictor)) scoresheet.to_file(self.fname)
Added bonus: subclasses of Scoresheet could change the serialization; it would no longer be presupposed that scoresheet keys are tuples.
Closed by PR #6.
It should be possible to save
Scoresheet
s to a CSV-like format and easily create them as well. This would also allow us to replace the code inCachePredictionListener.on_prediction_finished
withAdded bonus: subclasses of
Scoresheet
could change the serialization; it would no longer be presupposed that scoresheet keys are tuples.