Comments (4)
Which distance function are you using? By definition, a distance function should return a non-negative value for any pair of arguments. That's what the default (euclidean
) does. If using a custom distance function, please make sure that it indeed defines a distance.
from gpabc.jl.
I used the default distance function:
emul_abcsmc_res = @time EmulatedABCSMC( reference_data, simulator_function, priors, threshold_schedule, n_particles, n_design_points; write_progress = false, emulator_retraining = NoopRetraining(), emulated_particle_selection = PosteriorSampledEmulatedParticleSelection() );
from gpabc.jl.
Ok, this makes sense now: in emulation mode the distances are predicted by the GP. Predictions can indeed turn out negative, for example when the mean is very close to zero, and the variance is high. This could be exacerbated by using the full covariance matrix (use_diagonal_covariance = false
). The root causes behind this could be problem-specific; I am afraid I do not have time to debug this now.
Does this work with default particle selection criterion (MeanEmulatedParticleSelection
)? Please feel free to provide your own subtype of AbstractEmulatedParticleSelection
and override abc_select_emulated_particles
for it to use the absolute value of predicted distance.
from gpabc.jl.
It does work with default particle selection criterion (MeanEmulatedParticleSelection). Thank you!
Since I don't necessarily insist on using PosteriorSampledEmulatedParticleSelection() and since I'm afraid I don't have time to debug this right now either, I'm leaving it open :/, sorry.
from gpabc.jl.
Related Issues (20)
- Plot recipes
- LNA and support for SDE
- 3 gene example in the manual HOT 1
- Linear regresision adjustment
- Quantile distance to set threshold
- Distinguish between distance and summary statistics; provide summary statistics
- Sparse GPs HOT 1
- Requirement for summary statistics to return a 1D array causes unnecessary reshaping
- Win10, failed to build GpABC? HOT 2
- distributed/parallel simulation HOT 1
- Replace GP implementation with AbstractGPs interface?
- How to define the summary statistics and the distance function?
- Version compatibility with KernelDensity.jl HOT 1
- Incompatibility with Flux.jl HOT 1
- Make sure the code is pre-compiled when the package is loaded
- Failing to install HOT 2
- 3 genes example in the manual: SimulatedABCRejection() fails HOT 2
- Parallel (multi-core) model simulations HOT 2
- Continue inference process from latest results HOT 1
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 gpabc.jl.