wind23 / whole_history_rating

A Python interface incorporating a C++ implementation of the Whole History Rating algorithm
MIT License
12 stars 0 forks source link

CSV File Acceptance? #5

Open CallOn84 opened 3 months ago

CallOn84 commented 3 months ago

Hi Wind23!

I'm trying to modify your Whole History Rating algorithm for chess. I wanted to know if the codebase can calculate the WHR from a CSV file.

If it can, how should I format it?

Kind regards,

Viet-Anh Tran

wind23 commented 3 months ago

This library currently does not support direct import of CSV files. It primarily implements the WHR algorithm. However, if you want to use CSV files for input, you can first use other libraries (such as pandas) to import the CSV file into Python, and then call the base.create_game function in this library to add each game to the base one by one.