VowpalWabbit / vowpal_wabbit

Vowpal Wabbit is a machine learning system which pushes the frontier of machine learning with techniques such as online, hashing, allreduce, reductions, learning2search, active, and interactive learning.
https://vowpalwabbit.org
Other
8.48k stars 1.93k forks source link

Tracking issue: Split label out of example object #2324

Open jackgerrits opened 4 years ago

jackgerrits commented 4 years ago

As a part of the atomization project we would like to split the label object out of example and additionally change the signature of learn/predict from:

void learn_or_predict(data&, LEARNER::single_learner&, example&);
void learn_or_predict(data&, LEARNER::multi_learner&, multi_ex&);

to:

void learn(data&, LEARNER::single_learner&, example&, label&);
void learn(data&, LEARNER::multi_learner&, multi_ex&, std::vector<label>&);

void predict(data&, LEARNER::single_learner&, example&);
void predict(data&, LEARNER::multi_learner&, multi_ex&);

To do:

Shivanshmundra commented 4 years ago

@jackgerrits are you taking up this issue or is it free to take? Since I have experience with labels in the example, I would love to take this issue.

jackgerrits commented 4 years ago

This is an in progress task that I am working on, this issue is to track progress.