<div dir="ltr"><div class="markdown-here-wrapper" style=""><p style="margin:0px 0px 1.2em!important">I’m wondering if anyone can identify the purpose of this test: <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">check_classifiers_train()</code>, specifically this line: <a href="https://github.com/scikit-learn/scikit-learn/blob/ef5cb84a/sklearn/utils/estimator_checks.py#L1106">https://github.com/scikit-learn/scikit-learn/blob/ef5cb84a/sklearn/utils/estimator_checks.py#L1106</a></p>
<p style="margin:0px 0px 1.2em!important">My custom classifier (which I’m hoping to submit to <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">scikit-learn-contrib</code>) is failing this test: </p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline;white-space:pre;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important">  File "/Users/mcapizzi/miniconda3/envs/nb_plus_svm/lib/python3.6/site-packages/sklearn/utils/estimator_checks.py", line 1106, in check_classifiers_train
    assert_greater(accuracy_score(y, y_pred), 0.83)
AssertionError: 0.31333333333333335 not greater than 0.83
</code></pre><p style="margin:0px 0px 1.2em!important">And while it’s disturbing that my classifier is getting 31% <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">accuracy</code> when, clearly, the test writer expects it to be in the upper-80s, I’m not sure I understand why that would be a test condition.</p>
<p style="margin:0px 0px 1.2em!important">Thanks for any insight.</p>
<div title="MDH:SSdtIHdvbmRlcmluZyBpZiBhbnlvbmUgY2FuIGlkZW50aWZ5IHRoZSBwdXJwb3NlIG9mIHRoaXMg
dGVzdDogYGNoZWNrX2NsYXNzaWZpZXJzX3RyYWluKClgLCBzcGVjaWZpY2FsbHkgdGhpcyBsaW5l
OsKgaHR0cHM6Ly9naXRodWIuY29tL3NjaWtpdC1sZWFybi9zY2lraXQtbGVhcm4vYmxvYi9lZjVj
Yjg0YS9za2xlYXJuL3V0aWxzL2VzdGltYXRvcl9jaGVja3MucHkjTDExMDY8ZGl2Pjxicj48L2Rp
dj48ZGl2Pk15IGN1c3RvbSBjbGFzc2lmaWVyICh3aGljaCBJJ20gaG9waW5nIHRvIHN1Ym1pdCB0
byBgc2Npa2l0LWxlYXJuLWNvbnRyaWJgKSBpcyBmYWlsaW5nIHRoaXMgdGVzdDombmJzcDs8L2Rp
dj48ZGl2Pjxicj48L2Rpdj48ZGl2PmBgYDwvZGl2PjxkaXY+PGRpdj4mbmJzcDsgRmlsZSAiL1Vz
ZXJzL21jYXBpenppL21pbmljb25kYTMvZW52cy9uYl9wbHVzX3N2bS9saWIvcHl0aG9uMy42L3Np
dGUtcGFja2FnZXMvc2tsZWFybi91dGlscy9lc3RpbWF0b3JfY2hlY2tzLnB5IiwgbGluZSAxMTA2
LCBpbiBjaGVja19jbGFzc2lmaWVyc190cmFpbjwvZGl2PjxkaXY+Jm5ic3A7ICZuYnNwOyBhc3Nl
cnRfZ3JlYXRlcihhY2N1cmFjeV9zY29yZSh5LCB5X3ByZWQpLCAwLjgzKTwvZGl2PjxkaXY+QXNz
ZXJ0aW9uRXJyb3I6IDAuMzEzMzMzMzMzMzMzMzMzMzUgbm90IGdyZWF0ZXIgdGhhbiAwLjgzPC9k
aXY+PC9kaXY+PGRpdj5gYGA8YnI+PC9kaXY+PGRpdj48YnI+PC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