pykliep icon indicating copy to clipboard operation
pykliep copied to clipboard

A density ratio estimator package for python using the KLIEP algorithm.

Results 8 pykliep issues
Sort by recently updated
recently updated
newest added

Traceback (most recent call last): File "challenge.py", line 187, in weights = kliep.predict(X) File "challenge.py", line 180, in predict return np.dot(self._phi(X, sigma=sigma), self._alpha).reshape((X.shape[0],)) File "challenge.py", line 150, in _phi sigma...

I am trying to follow the example and fit the model but keep getting the below error My code looks like below ``` kliep = DensityRatioEstimator() kliep.fit(X_train.values, X_test.values) # keyword...

Add compatibility with Python3 for iteritems() to fix #4 This change adds compatibility for both Python2.6/2.7 and Python3.x, as recommended [here]( http://docs.buildbot.net/0.9.4/developer/py3-compat.html)

a. Increasing the value of cv=7 gave me better performance on many of my datasets. b. shuffle posed an error, so it is changed by a similar function 'permutation'. c....

This function returns a zero matrix def _phi(self, X, sigma=None): if sigma is None: sigma = self._sigma print(sigma , "****** sigma"); print(X.shape) print((X-self._test_vectors).shape) #exit(-1) if self._phi_fitted: #print(np.exp(-np.sum((X-self._test_vectors)**2, axis=-1)/(2*sigma**2))) return np.exp(-np.sum((X-self._test_vectors)**2,...

I am getting keyerror while running the code. What could be the issue ? > `KeyError Traceback (most recent call last) > /Application/DataScience/Anaconda/anaconda3/lib/python3.6/site-packages/pandas/core/indexes/base.py in get_loc(self, key, method, tolerance) > 3077...

Thanks for your implementation. I run the code in a training set of ~ 150k rows and a test set of ~ 80k rows with ~24 features and get Memory...