Re: [scikit-learn] Fwd: Custom transformer failing check_estimator test

2017-07-25 Thread Sam Barnett
ted): 118 # let unexpected exceptions pass through AssertionError: ValueError not raised On Tue, Jul 25, 2017 at 12:54 AM, Joel Nothman wrote: > what is the failing test? please provide the full traceback. > > On 24 Jul 2017 10:58 pm, "Sam Barnett" wrote: > >

Re: [scikit-learn] Fwd: Custom transformer failing check_estimator test

2017-07-25 Thread Sam Barnett
7;Shape of input is different from what was seen' 'in `fit`') On Tue, Jul 25, 2017 at 9:41 AM, Sam Barnett wrote: > This is the Traceback I get: > > > AssertionErrorTraceback (most recent call last) > in () > > 1 check_es

Re: [scikit-learn] Problems with running GridSearchCV on a pipeline with a custom transformer

2017-08-02 Thread Sam Barnett
would be to compute the full kernel matrix in > advance and pass that to GridSearchCV. > > You probably don't need it here, but you should also checkout what the > _pairwise attribute does in cross-validation, > because that it likely to come up when playing with kernels. > >

Re: [scikit-learn] Problems with running GridSearchCV on a pipeline with a custom transformer

2017-08-04 Thread Sam Barnett
as Mueller wrote: > Hi Sam. > You need to put these into a reachable namespace (possibly as private > functions) so that they can be pickled. > Please stay on the sklearn mailing list, I might not have time to reply. > > Andy > > > On 08/03/2017 01:24 PM, Sam Barnett wrote

[scikit-learn] Overflow Error with Cross-Validation (but not normally fitting the data)

2017-08-11 Thread Sam Barnett
To all, I am working on a scikit-learn estimator that performs a version of SVC with a custom kernel. Unfortunately, I have been presented with a problem: when running a grid search (or even using the cross_val_score function), my estimator encounters an overflow error when evaluating my kernel (s

[scikit-learn] Malformed input for SVC(kernel='precomputed').predict()

2017-08-17 Thread Sam Barnett
I am rolling classifier based on SVC which computes a custom Gram matrix and runs this through the SVC classifier with kernel = 'precomputed'. While this works fine with the fit method, I face a dilemma with the predict method, shown here: def predict(self, X): """Run the predict meth

Re: [scikit-learn] Malformed input for SVC(kernel='precomputed').predict()

2017-08-17 Thread Sam Barnett
quot;precomputed" kernels. > > Thanks > > Andy > > > On 08/17/2017 05:22 AM, Sam Barnett wrote: > > I am rolling classifier based on SVC which computes a custom Gram matrix > and runs this through the SVC classifier with kernel = 'precomputed'. While >