Skip to content

sfujiwara/pn2bs

Repository files navigation

pokemon-name to base-stats

Heroku Deploy

heroku create --buildpack https://github.com/kennethreitz/conda-buildpack.git pn2bs
git push heroku master

Training and Prediction

Training

python pn2bs.py

Prediction

import predictor

res = predictor.predict('テンソルフロー')
print res

Run TensorBoard

tensorboard --logdir=<absolute path>/tflogs

Use as Web API

Run API Server

Deploy to Heroku or

python main.py

Request

For example, send GET request as

https://pn2bs.herokuapp.com/pred?name=テンソルフロー

Response

{
  "name": "テンソルフロー",
  "hp": 92,
  "attack": 101,
  "block": 84,
  "contact": 85,
  "defense": 65,
  "speed": 72,
  "type1": "フェアリー",
  "type2": "あく"
 }

About

Predict base-stats and types from the name of Pokemon

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages