Skip to content

Instantly share code, notes, and snippets.

@sh1ng
sh1ng / verify_xgboost.py
Created June 7, 2019 10:28
Verify xgboost
import xgboost
import os
import binascii
def CRC32(filename):
buf = open(filename,'rb').read()
buf = (binascii.crc32(buf) & 0xFFFFFFFF)
return "%08X" % buf
for file in xgboost.libpath.find_lib_path():
print(file, os.path.getsize(file), CRC32(file))