Comments (2)
check that there are no duplicated parameters present in the varying parameters.
the covariance matrix is only estimated for unique varying parameters.
check that step sizes are correct
scipy.optimize._numdiff.approx_derivative
calculates the scaled step sizes correctly. In any case the derivatives (to obtain the Jacobian matrix) are calculated on parameters scaled to unity. This scaling is unwound in the final calculation of the covariance matrix.
A test is run against scipy.optimize.least_squares
to check that the Jacobian/Hessian/covariance matrices estimated by objective.covar
are correct.
check that it's falling back to the scale calculation when required
The parameters are by default scaled to unity.
is the correct matrix inverse being used?
np.linalg.inv
should be applicable to this situation. QR decomposition may provide additional precision if the Hessian is close to being singular.
from refnx.
If there are zero values in the parameters then unscaled parameters are used in the calculation of the Jacobian. approx_derivative
can deal with zero parameters, and uses an absolute step instead.
objective.covar
now uses a pseudo inverse and removes, and identifies singular parameters.
from refnx.
Related Issues (20)
- pip install refnx leads to error with missing "_open_mp_helpers" HOT 3
- Drag and drop datasets doesn't work on windows HOT 1
- Save/reload doesn't work for mixed area models HOT 1
- curvefitter.fit does not accept kwargs for ‘L-BFGS-B’ HOT 2
- progress bar for fitting? HOT 6
- Saving and loading models from code HOT 4
- pyopencl does not play well with multiprocessing.
- Spawning of multiple windows when fitting with refnx HOT 1
- Using specified peak_pos (position, FWHM) in ReductionOptions is applied to both reflected and direct beam HOT 2
- Suggestion: add the option to ignore zeros in ReflectDataset? HOT 9
- Can't use non-Slab object as fronting or backing HOT 5
- Frequent Collapse HOT 5
- Inability to reduce older PNR data as the spin channels were not automatically identified HOT 4
- R increase at the beginning of the curve HOT 7
- Minor error in PolarizationEfficiency class matrix HOT 2
- Link equivalent parameters doesn't work for a MixedArea model
- refnx doesn't accept pathlib.Path objects as filenames HOT 2
- search not working on readthedocs HOT 2
- Jax backend HOT 7
- No access to emcee sampler arguements? HOT 5
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 refnx.