Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LAS + cover is failing on C# predict call #4254

Open
ataymano opened this issue Oct 27, 2022 · 0 comments
Open

LAS + cover is failing on C# predict call #4254

ataymano opened this issue Oct 27, 2022 · 0 comments
Labels
Bug Bug in learning semantics, critical by default

Comments

@ataymano
Copy link
Member

ataymano commented Oct 27, 2022

Describe the bug

There is nondeterministic AccessViolation exception during C# Predict call with LAS and cover exploration turned on (I was not able to reproduce it after removing any of LAS/cover/C# property, but do not have intuition why it matters).

How to reproduce

static void CbTest()
{
    string b64_model = null;
    using (
        var vw =
        new VW.VowpalWabbit($"--cb_explore_adf --large_action_space --max_actions 2 --cover 5 --full_predictions"))
    {
        var test = new List<string>();
        test.Add("shared | s_1");
        for (int i = 0; i < 200; ++i)
        {
            test.Add("| a_" + i.ToString());
        }
        using (var coll = new VW.VowpalWabbitMultiLineExampleCollection(vw, null, test.Select(x => vw.ParseLine(x)).ToArray()))
        {
            var prediction = coll.Predict(VW.VowpalWabbitPredictionType.ActionProbabilities);
            double sum = prediction.Select(x => x.Score).Sum();
            Console.WriteLine(sum);
        }
    }
}

From time to time (but quite often), I am able to get this:
image

Version

9.5

OS

Windows

Language

C#

Additional context

No response

@ataymano ataymano added the Bug Bug in learning semantics, critical by default label Oct 27, 2022
@ataymano ataymano changed the title LAS + cover + C# = fail LAS + cover is failing on C# predict call Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug in learning semantics, critical by default
Projects
None yet
Development

No branches or pull requests

1 participant