Name | chess_features JSON |
Version |
0.5.0
JSON |
| download |
home_page | None |
Summary | Transform chess positions to various encodings |
upload_time | 2024-11-17 21:42:31 |
maintainer | None |
docs_url | None |
author | None |
requires_python | None |
license | None |
keywords |
chess
encoding
features
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Chess Features
This Python package provides a convenient way to convert chess board representations from the Python Chess library into formats suitable for machine learning algorithms. It offers various representations that can be directly utilized as input for machine learning tasks.
## Features
- Convert Python Chess board representations into machine learning-friendly formats.
- Supports several common representations used in machine learning tasks.
- Easy-to-use interface for seamless integration into your projects.
## Installation
You can install the package using pip:
```bash
pip install chess_features
```
## Usage
Here's a basic example demonstrating how to use the package:
```python
from chess import Board
from chess_features import ChessFeatures
# Create a Chess board using the Python Chess library
board = Board()
# Initialize the ChessFeatures
converter = ChessFeatures()
# Convert the board representation into a machine learning-friendly format
# Example: Convert to a feature vector
feature_vector = converter.to_stockfish_feature_vector(board)
# Example: Convert to a bitmap
bitmap = converter.to_bitmap(board)
```
## Available Representations
- Feature Vector: A flattened vector representation of the board.
- Bitmap: A bitmap representation of the board.
## Acknowledgements
- This package utilizes the [Python Chess library](https://python-chess.readthedocs.io/en/latest/).
- The information for Stockfish features are taken from [Stockfish Evaluation Guide](https://hxim.github.io/Stockfish-Evaluation-Guide/).
## ChatGPT
Apart from this readme no ChatGPT was used.
Raw data
{
"_id": null,
"home_page": null,
"name": "chess_features",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "chess, encoding, features",
"author": null,
"author_email": "Joel Ewig <joel@familie-ewig.de>",
"download_url": "https://files.pythonhosted.org/packages/e1/10/4a25c522a0a52036380278c831e49cfaea8396053f6d4393d9d301a1bd98/chess_features-0.5.0.tar.gz",
"platform": null,
"description": "# Chess Features\n\nThis Python package provides a convenient way to convert chess board representations from the Python Chess library into formats suitable for machine learning algorithms. It offers various representations that can be directly utilized as input for machine learning tasks.\n\n## Features\n\n- Convert Python Chess board representations into machine learning-friendly formats.\n- Supports several common representations used in machine learning tasks.\n- Easy-to-use interface for seamless integration into your projects.\n\n## Installation\n\nYou can install the package using pip:\n\n```bash\npip install chess_features\n```\n\n## Usage\n\nHere's a basic example demonstrating how to use the package:\n\n```python\nfrom chess import Board\nfrom chess_features import ChessFeatures\n\n# Create a Chess board using the Python Chess library\nboard = Board()\n\n# Initialize the ChessFeatures\nconverter = ChessFeatures()\n\n# Convert the board representation into a machine learning-friendly format\n# Example: Convert to a feature vector\nfeature_vector = converter.to_stockfish_feature_vector(board)\n\n# Example: Convert to a bitmap\nbitmap = converter.to_bitmap(board)\n\n```\n\n## Available Representations\n\n- Feature Vector: A flattened vector representation of the board.\n- Bitmap: A bitmap representation of the board.\n\n## Acknowledgements\n\n- This package utilizes the [Python Chess library](https://python-chess.readthedocs.io/en/latest/).\n- The information for Stockfish features are taken from [Stockfish Evaluation Guide](https://hxim.github.io/Stockfish-Evaluation-Guide/).\n\n## ChatGPT\n\nApart from this readme no ChatGPT was used.\n",
"bugtrack_url": null,
"license": null,
"summary": "Transform chess positions to various encodings",
"version": "0.5.0",
"project_urls": null,
"split_keywords": [
"chess",
" encoding",
" features"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "35646f64aed762e1e640ac55116c70b4309937a9e2d34a12959344ac4c534a02",
"md5": "272d36622f59d771f0b891113d8a23d2",
"sha256": "f355443f2e95bc6c11c70150a0f987514a33d4d6af3927dbe6e7ee3318f52c2e"
},
"downloads": -1,
"filename": "chess_features-0.5.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "272d36622f59d771f0b891113d8a23d2",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 22469,
"upload_time": "2024-11-17T21:42:29",
"upload_time_iso_8601": "2024-11-17T21:42:29.320103Z",
"url": "https://files.pythonhosted.org/packages/35/64/6f64aed762e1e640ac55116c70b4309937a9e2d34a12959344ac4c534a02/chess_features-0.5.0-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "e1104a25c522a0a52036380278c831e49cfaea8396053f6d4393d9d301a1bd98",
"md5": "92852ee1bf6a936979963008e5898fc5",
"sha256": "b2eb0abfb69d7ed4ff18899f5faee31e46271b0c4c65d615972e94be78c5170f"
},
"downloads": -1,
"filename": "chess_features-0.5.0.tar.gz",
"has_sig": false,
"md5_digest": "92852ee1bf6a936979963008e5898fc5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 29538,
"upload_time": "2024-11-17T21:42:31",
"upload_time_iso_8601": "2024-11-17T21:42:31.515793Z",
"url": "https://files.pythonhosted.org/packages/e1/10/4a25c522a0a52036380278c831e49cfaea8396053f6d4393d9d301a1bd98/chess_features-0.5.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-17 21:42:31",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "chess_features"
}