scikit-learn classifiers should have default values for all __init__
parameters (except, of course `self`). Set a default for each and the tests
will pass this point.
On 17 September 2013 14:53, Maheshakya Wijewardena
<pmaheshak...@gmail.com>wrote:
> Yes. I have some classes inherited from ClassifierMixin and
> RegressorMixin.
> So what can be done to resolve this?
>
>
> On Tue, Sep 17, 2013 at 10:09 AM, Robert Layton <robertlay...@gmail.com>wrote:
>
>> If you used the Mixin classes to build a classifier, they will get tested
>> here automatically.
>> Is that what you did?
>>
>>
>> On 17 September 2013 14:35, Maheshakya Wijewardena <
>> pmaheshak...@gmail.com> wrote:
>>
>>> I added my own features and tried to run make command. But while the
>>> process I get the following error trace and the making halts.
>>>
>>>
>>> ERROR: sklearn.tests.test_common.test_all_estimators
>>> ----------------------------------------------------------------------
>>> Traceback (most recent call last):
>>> File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in
>>> runTest
>>> self.test(*self.arg)
>>> File
>>> "/home/travis/build/maheshakya/scikit-learn/sklearn/tests/test_common.py",
>>> line 70, in test_all_estimators
>>> estimator = Estimator()
>>> TypeError: __init__() takes at least 2 arguments (1 given)
>>> ======================================================================
>>> ERROR: sklearn.tests.test_common.test_estimators_sparse_data
>>> ----------------------------------------------------------------------
>>> Traceback (most recent call last):
>>> File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in
>>> runTest
>>> self.test(*self.arg)
>>> File
>>> "/home/travis/build/maheshakya/scikit-learn/sklearn/tests/test_common.py",
>>> line 130, in test_estimators_sparse_data
>>> classifier = Classifier()
>>> TypeError: __init__() takes at least 2 arguments (1 given)
>>> ======================================================================
>>> ERROR: sklearn.tests.test_common.test_estimators_nan_inf
>>> ----------------------------------------------------------------------
>>> Traceback (most recent call last):
>>> File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in
>>> runTest
>>> self.test(*self.arg)
>>> File
>>> "/home/travis/build/maheshakya/scikit-learn/sklearn/tests/test_common.py",
>>> line 314, in test_estimators_nan_inf
>>> estimator = Estimator()
>>> TypeError: __init__() takes at least 2 arguments (1 given)
>>> ======================================================================
>>> ERROR: sklearn.tests.test_common.test_regressors_int
>>> ----------------------------------------------------------------------
>>> Traceback (most recent call last):
>>> File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in
>>> runTest
>>> self.test(*self.arg)
>>> File
>>> "/home/travis/build/maheshakya/scikit-learn/sklearn/tests/test_common.py",
>>> line 715, in test_regressors_int
>>> regressor_1 = Regressor()
>>> TypeError: __init__() takes at least 2 arguments (1 given)
>>> ======================================================================
>>> ERROR: sklearn.tests.test_common.test_regressors_train
>>> ----------------------------------------------------------------------
>>> Traceback (most recent call last):
>>> File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in
>>> runTest
>>> self.test(*self.arg)
>>> File
>>> "/home/travis/build/maheshakya/scikit-learn/sklearn/tests/test_common.py",
>>> line 747, in test_regressors_train
>>> regressor = Regressor()
>>> TypeError: __init__() takes at least 2 arguments (1 given)
>>> ======================================================================
>>> ERROR: sklearn.tests.test_common.test_regressor_pickle
>>> ----------------------------------------------------------------------
>>> Traceback (most recent call last):
>>> File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in
>>> runTest
>>> self.test(*self.arg)
>>> File
>>> "/home/travis/build/maheshakya/scikit-learn/sklearn/tests/test_common.py",
>>> line 790, in test_regressor_pickle
>>> regressor = Regressor()
>>> TypeError: __init__() takes at least 2 arguments (1 given)
>>> ======================================================================
>>> ERROR: sklearn.tests.test_common.test_estimators_overwrite_params
>>> ----------------------------------------------------------------------
>>> Traceback (most recent call last):
>>> File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in
>>> runTest
>>> self.test(*self.arg)
>>> File
>>> "/home/travis/build/maheshakya/scikit-learn/sklearn/tests/test_common.py",
>>> line 942, in test_estimators_overwrite_params
>>> estimator = Estimator()
>>> TypeError: __init__() takes at least 2 arguments (1 given)
>>> ----------------------------------------------------------------------
>>> Ran 1902 tests in 96.148s
>>> FAILED (SKIP=15, errors=7)
>>> make: *** [test-code] Error 1
>>> The command "make test" exited with 2.
>>> Done. Your build exited with 1.
>>>
>>>
>>> What can be the reason for this?
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
>>> 1,500+ hours of tutorials including VisualStudio 2012, Windows 8,
>>> SharePoint
>>> 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack
>>> includes
>>> Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
>>>
>>> http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Scikit-learn-general mailing list
>>> Scikit-learn-general@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>>>
>>>
>>
>>
>> --
>>
>> Public key at: http://pgp.mit.edu/ Search for this email address and
>> select the key from "2011-08-19" (key id: 54BA8735)
>>
>>
>> ------------------------------------------------------------------------------
>> LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
>> 1,500+ hours of tutorials including VisualStudio 2012, Windows 8,
>> SharePoint
>> 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack
>> includes
>> Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Scikit-learn-general mailing list
>> Scikit-learn-general@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>>
>>
>
>
> ------------------------------------------------------------------------------
> LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
> 1,500+ hours of tutorials including VisualStudio 2012, Windows 8,
> SharePoint
> 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack
> includes
> Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
> http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
> _______________________________________________
> Scikit-learn-general mailing list
> Scikit-learn-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
>
--
Public key at: http://pgp.mit.edu/ Search for this email address and select
the key from "2011-08-19" (key id: 54BA8735)
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general