Created
June 7, 2019 10:28
-
-
Save sh1ng/c41d384be9a29ceba27dc13b295cf993 to your computer and use it in GitHub Desktop.
Verify xgboost
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment