Git Product home page Git Product logo

similarity-dendrogram's Introduction

Similarity-Dendrogram

Plot dendrogram on chess engines similarity. The script will read a csv similarity output from simex program.

See dendrogram.csv for similarity matrix values.

Requirements

1. If you want to run the python source
  • Python 3
  • scipy
  • matplotlib
  • numpy
2. If you want to run the exe file, just download the similaritydendrogram.zip file in the release page at https://github.com/fsmosca/Similarity-Dendrogram/releases
  • Nothing

How to run

  • Command line
    python similaritydendrogram.py --input dendrogram.csv --output simex.png
    similaritydendrogram.exe --input dendrogram.csv --output simex.png

  • If there are so many engines, you may increase the image vertical length by (default=9):
    python similaritydendrogram.py --input dendrogram.csv --output simex.png --figy 16

  • To modify method of calculating distance between newly formed clusters (default=ward):
    python similaritydendrogram.py --input dendrogram.csv --output simex.png --method complete

  • Help

usage: similaritydendrogram.py [-h] --input INPUT [--output OUTPUT]
                               [--method METHOD] [--figx FIGX] [--figy FIGY]
                               [--plotx PLOTX] [--dpi DPI] [--log]

Read engine similarity matrix and output dendrogram.

optional arguments:
  -h, --help       show this help message and exit
  --input INPUT    input similarity matrix file
  --output OUTPUT  output dendrogram image file,
                   default=similarity_dendrogram.png
  --method METHOD  input distance method [ward, complete, single, average,
                   weighted, centroid, median], default=ward
  --figx FIGX      input figure x value length, default=10
  --figy FIGY      input figure y value length, default=9
  --plotx PLOTX    input plot x value length, default=None
  --dpi DPI        input image dpi, default=300
  --log            Records program logging

Similarity Dendrogram v0.3

Credits

similarity-dendrogram's People

Contributors

fsmosca avatar

Stargazers

 avatar

Watchers

 avatar  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.