Skip to content
/ badgyal Public

Simple pytorch net evaluator with Bad Gyal 8 and Mean Girl 8 net included.

License

Notifications You must be signed in to change notification settings

dkappe/badgyal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

badgyal

Simple pytorch net evaluator with Bad Gyal 8 and Mean Girl 8 net included. You can install with pip like so:

pip install git+https://github.com/dkappe/badgyal.git

An example of use:

import badgyal
import chess
import torch

POS = [
    "1k1r1b2/p4P2/Q1p4r/3p3q/Pp4p1/1P2P1P1/1BP2PK1/R3R3 b - -"
]
def eval(net, board):
    policy, value = net.eval(board, softmax_temp=1.61)
    print(value)
    print(policy)
    


bg = badgyal.BGNet(cuda=True)

for p in POS:
    board = chess.Board()
    board.set_epd(p)
    eval(bg, board)

About

Simple pytorch net evaluator with Bad Gyal 8 and Mean Girl 8 net included.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages