pjura/mahjong_board_states
Viewer • Updated • 654M • 81 • 12
How to use pjura/mahjong_ai with Transformers:
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("pjura/mahjong_ai", dtype="auto")This repository contains the code and resources for developing a Mahjong AI model, focusing on tabular classification of board states. The primary goal is to predict outcomes or optimal moves based on the current game state.
.ipynb):preprocess_*.ipynb: Scripts for processing raw Mahjong game data into features suitable for model training.transform_hf_dataset.ipynb: Script for transforming data into a Hugging Face dataset format.push_parquet_to_hub_by_year.ipynb: Script to upload processed data (likely in Parquet format) to the Hugging Face Hub.tenhou_prediction_deepLearning_basic.ipynb: This notebook shows the basic process of how the classification model was trained, using features derived from player hand information (columns 68-135) and discard pool information (columns 238-373). The model predicts the discarded tile (column 510).tenhou_prediction_multitask_hf.ipynb: This notebook explores a new, currently non-functional approach attempting multitask learning with dynamic inputs..py):tools.py: Utility functions used across different notebooks.config.json, model.safetensors: Configuration and saved model files associated with the trained Mahjong AI.tenhou_prediction_deepLearning_basic.ipynb) uses features derived from player hand information (columns 68-135) and discard pool information (columns 238-373), predicting the target value (discarded tile) found in column 510.This model can be used in conjunction with the pjura/mahjong_vision model to create a fully automated Mahjong playing AI.
The model was trained using the pjura/mahjong_board_states dataset.