GithubHelp home page GithubHelp logo

Comments (2)

probberechts avatar probberechts commented on June 1, 2024

A pass is successful if it reaches a teammate. This is of course a nebulous concept. There is a thin line between intercepting the ball and recovering the ball immediately after it was received. However, I think the data annotator is best placed to judge that and I would not override it on our side.

On the other hand, I think it would make sense to add duels to SPADL as they are meaningful defensive actions. We already do so for ground duels (which should be converted to tackles if the implementation of the Wyscout converter is correct). Therefore, I assume you are referring to aerial duels for which SPADL does not have a corresponding action. It's not an interception (preventing an opponent's pass from reaching their teammates).

I don't know what the motivation was to ignore these aerial duels. Do you remember @TomDecroos?

from socceraction.

BWyckaert avatar BWyckaert commented on June 1, 2024

Ok, it seems like I didn't understand the code correctly. A pass is marked with success if the corresponding Wyscout event is tagged as accurate. The reason I opened this issue is because there a discrepancy between successful passes in the default SPADL versus 'successful' passes in atomic SPADL. I defined a successful pass in atomic SPADL as a pass which is followed by a receival by a teammate. When converting to atomic, after every pass a new action is added which is either receival, interception, out and offside:

def _extra_from_passes(actions: pd.DataFrame) -> pd.DataFrame:

Determining the type of the next action is done as follows:

extra['type_id'] = (
extra.type_id.mask(same_team, ar.index('receival'))
.mask(~same_team, ar.index('interception'))
.mask(out, ar.index('out'))
.mask(offside, ar.index('offside'))

This means that successful actions as determined by Wyscout annotators will become 'unsuccessful' when converting to atomic if the consecutive action is executed by someone of the opposing team, but I don't know if there is anything to be done about this.

from socceraction.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.