Fixed few grammatical mistakes in doc (#6393)

This commit is contained in:
Nikhil Choudhary 2020-11-15 11:18:08 +05:30 committed by GitHub
parent 5cb24d0d39
commit ae1662028a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -426,7 +426,7 @@ def _deprecate_positional_args(f):
class DMatrix: # pylint: disable=too-many-instance-attributes class DMatrix: # pylint: disable=too-many-instance-attributes
"""Data Matrix used in XGBoost. """Data Matrix used in XGBoost.
DMatrix is a internal data structure that used by XGBoost DMatrix is an internal data structure that is used by XGBoost,
which is optimized for both memory efficiency and training speed. which is optimized for both memory efficiency and training speed.
You can construct DMatrix from multiple different sources of data. You can construct DMatrix from multiple different sources of data.
""" """
@ -1695,7 +1695,7 @@ class Booster(object):
"""Load the model from a file or bytearray. Path to file can be local """Load the model from a file or bytearray. Path to file can be local
or as an URI. or as an URI.
The model is loaded from an XGBoost format which is universal among the The model is loaded from XGBoost format which is universal among the
various XGBoost interfaces. Auxiliary attributes of the Python Booster various XGBoost interfaces. Auxiliary attributes of the Python Booster
object (such as feature_names) will not be loaded. See: object (such as feature_names) will not be loaded. See: