From b3bb54da730f0722d5bfae9abf8626ed190c9700 Mon Sep 17 00:00:00 2001 From: Preston Parry Date: Tue, 27 Oct 2015 23:34:50 -0700 Subject: [PATCH] fixes typo in error message --- python-package/xgboost/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-package/xgboost/core.py b/python-package/xgboost/core.py index 0273b7230..7e282fd2e 100644 --- a/python-package/xgboost/core.py +++ b/python-package/xgboost/core.py @@ -223,7 +223,7 @@ class DMatrix(object): csr = scipy.sparse.csr_matrix(data) self._init_from_csr(csr) except: - raise TypeError('can not intialize DMatrix from {}'.format(type(data).__name__)) + raise TypeError('can not initialize DMatrix from {}'.format(type(data).__name__)) if label is not None: self.set_label(label) if weight is not None: