Code Monkey home page Code Monkey logo

Comments (6)

ahariri13 avatar ahariri13 commented on May 30, 2024 1

@chychen Thank you for your reply, I am trying to calculate the MAE and RMSE on generated data to compare with some models of mine that use the same metrics.

I would do that either on your code directly or by extracting the generated data and calculating these metrics separately so I was wondering if that's doable somehow.

from basketballgan.

chychen avatar chychen commented on May 30, 2024

Hi @ahariri13 ,

thank you for being interested in our work.

50Real.npy -> real play, containing both offensive and defensive trajectories of an entire play..
50Seq.npy -> real offensive strategies, containing only offensive strategies drawn by basketball coach.

why would you like to calculate the MAE and RMSE on generated data?
if you mean how to train a GAN, we use Earth Moving Distance (W-distance) to train our GAN model, I will refer you to WGAN and Spectral Norm papers.

from basketballgan.

ahariri13 avatar ahariri13 commented on May 30, 2024

@chychen Actually, one way to solve my problem is if I could test the trained model by feeding it with initial positions and obtain the generated trajectories' plots and xy coordinates (As was done in the video). Is it possible to do that ?

Thanks in advance

from basketballgan.

chychen avatar chychen commented on May 30, 2024

@ahariri13
You should feed offense strategies(a sequence) rather than initial points.

you might be interested in the branch “gui“. (somehow buggy but it is runnable.) it is the GUI interface in the demo videos.

from basketballgan.

ahariri13 avatar ahariri13 commented on May 30, 2024

@chychen thanks a lot for your help. i ran the GUI, and got the 'output.npy' and 'points.npy' arrays.
'points.npy' is clearly the trajectories that I drew on the left screen, but 'output.npy' is of shape (100,10,74,28) in my case. I know already that 10 refers to 10 players, but what do the other components indicate ?
wgan_

Sorry for my numerous questions.

from basketballgan.

chychen avatar chychen commented on May 30, 2024

Dear @ahariri13 ,

I think 100 means it sample 100 results with diff latent code.
10 means 10 conditions (offense strategies)
74 means number of frames
28 means 10 players xy (20) + 1 ball xy (2) + who own the ball in one-hot format (6)

(sorry that the code written by students is messy and it won't be maintained anymore.

from basketballgan.

Related Issues (7)

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.