Skip to content

Instantly share code, notes, and snippets.

@ddobbelaere
ddobbelaere / analyze_weights.py
Last active December 30, 2020 11:33
Analyze Stockfish NNUE weights
import numpy as np
import struct
from functools import reduce
import operator
import matplotlib.pyplot as plt
class NNUEReader():
def __init__(self, filename):
self.f = open(filename, 'rb')