[scikit-learn] Error random_state parameter changed by estimator
Manoj Karthick
mkselvak at sfu.ca
Fri Mar 30 22:38:03 EDT 2018
I am working on adding a new estimator to the scikit-learn library, but the make command always exits with the below error message:
AssertionError: Estimator XYZ should not change or mutate the parameter random_state from 0 to <mtrand.RandomState object at 0x1a25da9e10> during fit.
Can you help me understand what the issue is?
Error log:
self = <sklearn.utils._unittest_backport.TestCase testMethod=__init__>
msg = ‘Estimator XYZ should not change or mutate the parameter random_state from 0 to <mtrand.RandomState object at 0x1a25da9e10> during fit.'
def fail(self, msg=None):
"""Fail immediately, with the given message."""
> raise self.failureException(msg)
E AssertionError: Estimator XYZ should not change or mutate the parameter random_state from 0 to <mtrand.RandomState object at 0x1a25da9e10> during fit.
msg = 'Estimator XYZ should not change or mutate the parameter random_state from 0 to <mtrand.RandomState object at 0x1a25da9e10> during fit.'
self = <sklearn.utils._unittest_backport.TestCase testMethod=__init__>
Thanks in advance,
Manoj Karthick Selva Kumar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20180330/1c582f56/attachment.html>
More information about the scikit-learn
mailing list