CLN: Remove unused import. Fix comment.
This commit is contained in:
parent
a4de0ebcd4
commit
932af821c5
@ -15,7 +15,6 @@ import re
|
||||
import ctypes
|
||||
import platform
|
||||
import collections
|
||||
from io import BytesIO
|
||||
|
||||
import numpy as np
|
||||
import scipy.sparse
|
||||
@ -876,7 +875,7 @@ class XGBModel(XGBModelBase):
|
||||
self._Booster = None
|
||||
|
||||
def __getstate__(self):
|
||||
# can't pickle ctypes pointers so put _Booster in a BytesIO obj
|
||||
# can't pickle ctypes pointers so put _Booster in a bytearray object
|
||||
this = self.__dict__.copy() # don't modify in place
|
||||
bst = this["_Booster"]
|
||||
if bst is not None:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user