Comments (2)
Hi, in principle it seems like this should be possible, but I've never explored negative weights. There will be some points in the code that need modification, for example, how does one calculate covariances using negative weights?
You're welcome to try implementing this in the code. If you disable the error message you're getting, it will allow negative weights, but then I think some numpy functions will probably throw errors.
from kalepy.
Hi, just to let you know. I didn't find a way to handle negative weights because of the errors numpy throws when trying to calculate the covariances. So what I did is to split my sample into positive and negative weights, apply the KDE to both samples, and then rest the weights from "negative" sample renormalizing them by the sum of the sWeights. This seems to work but there are some downsides. If someone could find a way for handling negative weights it would be better.
Regards!
from kalepy.
Related Issues (14)
- carpet plot offsets
- BUG: normalization/number of samples problem in sample_outliers HOT 1
- readthedocs does seem to display the full API HOT 1
- Multithreading HOT 1
- In plotting methods, make sure sigmas/quantiles are all being passed through appropriately
- Reflective boundaries implementation HOT 4
- FT: add "median" (i.e. target) values to be passed in, so that those are plotted instead of the measured median values HOT 1
- Try kdtree for large datasets to avoid iterating over all points
- Move CI to github 'Actions', refine/rewrite tests and notebooks
- Epanechnikov/parabola kernel's _sample() method does not account for bandwidth HOT 1
- Move from nosetests to pytest
- improve API for plotting methods
- speedup/optimize corner plotting routines
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kalepy.