Code Monkey home page Code Monkey logo

Comments (1)

willtebbutt avatar willtebbutt commented on May 29, 2024 1

Ah interesting use-case! Glad to hear people are trying to use it for Bayesopt.

I guess I had been implicity assuming immutability throughout Stheno -- once data is passed into a GP, I wasn't expecting it to change.

Also, I don't think the shared data has any real benefit as plotting the gp fails if you change the data and don't recompute the gp. Also, shown in the example.

It's just a performance issue I guess 🤷

I would very much prefer to keep Stheno's assumptions about immutability, so I think the best solution here is for Stheno to include some proper sequential conditioning functionality so that you don't have to think about mutating your inputs. We've already got this in AbstractGPs.jl (not tested for performance yet though) and I'm going to be moving Stheno over to use AbstractGPs so I'm hoping to get that functionality for free in Stheno (no promises on the timeline for that though).

A good solution in the mean time is, as you say, either to copy the data or to just to construct a new posterior object whenever you modify your data.

from stheno.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.