Git Product home page Git Product logo

wn8_expected's Introduction

wn8_expected

Scripts and resources to update wn8 expected values. This is a work in progress, read: http://forum.wotlabs.net/index.php?/topic/26960-new-effort-to-create-tank-specific-values-for-wn8-rating/

  • Install mongo and create a user for the wn8 db:

use wn8 db.createUser( { user: "username", pwd: "password", roles: [ "readWrite", "dbAdmin" ] } )

  • copy config.yml.template to config.yml
  • edit config.yml with from your mongo database and a WG api key
  • install node
  • run "npm install" in the project directory
  • run "node app.js"

The following functions take a long time, use a lot of bandswidth and hit the WG api servers pretty hard. Do this only if you're serious about using the data.

Note: The these functions will occasionally print a "SOURCE_NOT_AVAILABLE" error. This is normal. The wg api sometimes responds with this error, the request will simply be retried.

Now you should have the statistics data in your mongo db and in a file called input.csv. Now to further process this:

  • install R
  • open the R console in the project directory and type
  • Make sure you have an existing expected.csv file (the last version in your directory)

Then

  • type 'source("expected_min.R", echo=T)', to create the csv file
  • type 'source("plotter_min.R", echo=T)', to generate some plots, see the script for more details

Note: These R scripts can take a lot of time to complete and can requirea lot of memory ~120GB on the full data set. If you don't have this amount of RAM memory, make sure you allocate some swap space/pagefiles and be prepared to not use you computer for a little while :). It's best to test the steps first with a smaller sample.

As a last step there is a "node generate_xml_json_csv.js expected_values_file version" that generates expected values files in csv and json format compatible with wnefficiency.net.

You can use "node validate.js json_expected_file" to calculate correlation between wr-wn8, it takes expected values in json format as the first parameter.

wn8_expected's People

Contributors

karellodewijk avatar

Watchers

James Cloos avatar  avatar EO avatar sirmax avatar

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.