VowpalWabbit flags on the labels
ataymano opened this issue · 4 comments
Hi,
thanks for great project!
Is it possible to add vw flags to plot labels?
Right now I am seeing that kind of plot:
when I am doing something like this:
learner_factories = [
VowpalLearner(epsilon=0.2, seed=10, flags=''),
VowpalLearner(epsilon=0.2, seed=10, flags='--coin')
]
benchmark.evaluate(learner_factories).standard_plot()
and it is hard to correlate plots with configurations.
Glad you like it. I can totally do that. I'll commit and release an update for it today.
Also, just so you know, since we last talked I released an update for COBA that's got a lot of new features which make it easier to add custom extensions to benchmarks. I'll be adding more complete documentation for the new stuff in the next few weeks.
Commit aa2c2a8 contains this improvement. I've also released this to PyPi in version 2.2.1.
(or if you want to do it yourself in your own fork you can change the following method in VowpalLearner.)
class VowpalLearner:
...
@property
def params(self) -> Dict[str, Any]:
params = {**self._learning.params(), **self._exploration.params()}
if self._flags != '':
params['flags'] = self._flags
return params
thank you for quick response!