data science student coursework help

Talk about anything not related to FA or FAF here !

data science student coursework help

Postby The_Watcher » 14 May 2020, 22:20

Hi there,
Strange request here, and i suppose this is the right place for it:

1) I'm a part-time MSc Data Science student. One of my modules is all about data programming with Python;
2) I've been set a very broadly worded piece of coursework, deadline end-June;
3) I'd quite like to try my hand at building from scratch a straightforward Elo rating system for 1v1 rated FAF games. I'm by no means a Python expert so I think this will stretch me about as far as my current competencies go;
4) Just wondered if there might be some way I could get my hands on a bunch of records showing something along the lines of:
[Player A]
[Player B]
[Winning Player]
[Map]

Many thanks if anyone could point me in the right direction. I can see the FAF client maintains a 1v1 Rating leaderboard, but it's not obvious to me any of the underlying match records are publicly available.

I've not actually played this game in several years but I'm an avid Gyle cast watcher... hence "The_Watcher"

Cheers all!
The_Watcher
 
Posts: 3
Joined: 14 May 2020, 22:10
Has liked: 0 time
Been liked: 0 time
FAF User Name: The_Watcher

Re: data science student coursework help

Postby FtXCommando » 15 May 2020, 02:44

We have an open API that allows you to query our data except for things we mark as personal information.

https://github.com/FAForever/faf-java-api
Are you upset? Are you happy? Are you a FAF Player? Come to the PC Discord and share your thoughts and build the community!

https://discord.gg/Y2dGU8X
User avatar
FtXCommando
Councillor - Players
 
Posts: 1236
Joined: 09 Jan 2017, 18:44
Has liked: 234 times
Been liked: 583 times
FAF User Name: FtXCommando

Re: data science student coursework help

Postby Axle » 15 May 2020, 04:39

There's an old csv dump of game results here: https://github.com/Axle1975/pytrueskill ... playdumper

(and a c++ implementation of trueskill with python bindings in the rest of the repo)
Axle
Avatar-of-War
 
Posts: 93
Joined: 02 Apr 2013, 10:14
Has liked: 0 time
Been liked: 4 times
FAF User Name: Axle

Re: data science student coursework help

Postby The_Watcher » 15 May 2020, 09:24

thanks guys that's really helpful
The_Watcher
 
Posts: 3
Joined: 14 May 2020, 22:10
Has liked: 0 time
Been liked: 0 time
FAF User Name: The_Watcher

Re: data science student coursework help

Postby Katharsas » 17 May 2020, 17:08

THe API is using JSONAPI to allo you to dynamically request the exact fields from the tables you need.

Query games:
https://api.faforever.com/swagger-ui.ht ... e/get_game

endTime, name, replayTicks, replayUrl, startTime, validity, victoryCondition, featuredMod, host, mapVersion, playerStats, reviews, reviewsSummary


Query game results:
https://api.faforever.com/swagger-ui.ht ... layerStats

afterDeviation, afterMean, ai, beforeDeviation, beforeMean, color, faction, result, score, scoreTime, startSpot, team, game, player


However note that you should probably restrict your dataset to a somehwat small timeframe, because the data in those fields may not be consistent over big timeframes.
Katharsas
Avatar-of-War
 
Posts: 164
Joined: 29 May 2015, 21:44
Has liked: 22 times
Been liked: 34 times
FAF User Name: Katharsas


Return to Off-Topic

Who is online

Users browsing this forum: No registered users and 1 guest