jubiotech / calibr8 Goto Github PK
View Code? Open in Web Editor NEWToolbox for non-linear calibration modeling.
Home Page: https://calibr8.readthedocs.io
License: GNU Affero General Public License v3.0
Toolbox for non-linear calibration modeling.
Home Page: https://calibr8.readthedocs.io
License: GNU Affero General Public License v3.0
Should we implement a warning if scale_degree > 2 (or even starting with 2) is used? We could at least help the user question the choice this way.
Here, the plot_model
function tries to use plot_t_band
irrespective of the actual noise model:
https://github.com/JuBiotech/calibr8/blob/master/calibr8/utils.py#L326-L365
Instead of hard-coding a plot_xyz_band
, we can probabily generalize over al continuous distributions by using the DistributionMixin.scipy_dist
class attribute that comes with each model.
@lhelleckes would you like to take a look at this?
The function is used by, for example, fit_scipy
to check for and mask out NaN or infinity values in the data.
On multivariate independent
inputs we should either skip that check or make it compatible.
When printed on paper, the contrast between the green areas is hard to see.
A thin gray or dark-green edgeline could help.
Working on #12 I started changing the broadcasting behavior of CalibrationModel.likelihood
and CalibrationModel.loglikelihood
, but it's not as simple and deserves it's very own issue & PR.
What needs to be done:
shape_indep, shape_obs, model_ndim, scan_x
combinations and precisely define the shape_expected
.shape_indep
may be higher-dimensional, for example when broadcasting with a 5-dimensional tensor..scan_x
if the broadcasting behavior is clearly defined?CalibrationModel.loglikelihood
and CalibrationModel.likelihood
We have contrib-models with StudentTNoise
, but models with normally distributed noise are much more common.
I have these implementations already, just need to write docstrings and tests.
ToDo:
NormalNoise
models for all three.All this code uses only self.likelihood
, so it can be easily extracted into a function.
This makes it a little easier to test, or to re-use in other contexts.
Thanks to @maxsiska for starting this discussion. @michaelosthege Should we discuss this soon?
... or at least partically, because the build is actually current, but the HTML page title is outdated.
The following line should be replaced by a RegEx or some other mechanism to fetch the version number:
Line 25 in 02728c2
We have such regular expressions in other projects!!!
While working on #12 I added tests and came up with one to check if calibr8.core._get_hdi
is doing a good job.
It does not.
I believe the scipy.optimize.fmin
doesn't cope well with the switching inside the hdi_objective
, or at least not in combination with the step-function like area calculation by _interval_prob
.
Some starting points to fix this:
x_cdf
and cdf
input. (Hypothesis: It's not smooth, but has step functions in one dimension.)test_interval_prob
to an interpolation that should give much more accurate results compared to the step-function. (Also nicer conceptually!)test_get_hdi
as a starting point, because it's HDI is easy to determine analytically (centerline of the triangle to its right flank).The example notebooks and the documentation are not up to date.
We should make some changes to ensure that the code runs as advertised.
In this line the BaseLogIndependentAsymmetricLogisticN.predict_dependent
slices away the last parameter, thereby rendering sigma_degree=1
ineffective.
I'll open a PR to fix this right away.
This line errors, because None
is not a valid option:
ax.set(
xlabel=model.independent_key,
xscale="log" if logscale else None,
)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.