Comments (3)
Can you explain what you think weights
does differently? That's exactly what it was for!
from corner.py.
Indeed weights parameter of np.histogram or plt.hist is the way to apply a prior to the histogram. However from reading your code, the same weight/prior is applied to each parameter the same way.
e.g. for a 3 parameters triangle plot, the input data will be shape(N, 3). If I have different weights/priors for each parameter, I would like to have my weight data to be shape(N, 3). But for now the weights parameter must be shape(N).
Or maybe I just missed something too obvious!
from corner.py.
I'm trying to catch up on old issues here:
Each weight corresponds to a specific sample with different parameter values in each case. In your case, I think what you would want is for the weight to be the product of priors evaluated at the parameter values of that sample.
from corner.py.
Related Issues (20)
- Memory leak with corner.corner()
- How can I control the binning and plot limits, and to do so independently? HOT 2
- Feature request: silent keyword for suppressing "too few points to create valid contours" warning HOT 1
- How do I pass an array of alpha values to vary opacity of points according to weights? HOT 2
- module 'corner' has no attribute 'corner' HOT 3
- Top and bottom of the corner plot seem clipped HOT 13
- Setting the title_quantiles does nothing? HOT 2
- multiple line style for quantiles HOT 2
- Problems with installation HOT 3
- [BUG] Docs for the custom plot are broken HOT 1
- Misplaced **hist_kwargs? HOT 4
- Documentation errantly suggests labels are inferred from pandas.DataFrame columns HOT 4
- axes_scale argument does not work? HOT 2
- range doesn't work, or am I making a mistake? HOT 4
- ValueError: Axis limits cannot be NaN or Inf HOT 3
- Feature add request: interactive plotting using bokeh
- title_quantiles not working? HOT 2
- Matplotlib version [Urgent, maybe] HOT 13
- Having title_quantiles=None when quantiles is passed without having exactly 3 elements raises a ValueError HOT 4
- change colormap HOT 3
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 corner.py.