Coder Social home page Coder Social logo

Comments (4)

tanhevg avatar tanhevg commented on September 27, 2024

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.

EvaJanouskova avatar EvaJanouskova commented on September 27, 2024

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.

tanhevg avatar tanhevg commented on September 27, 2024

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.

EvaJanouskova avatar EvaJanouskova commented on September 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.