GithubHelp home page GithubHelp logo

jajcayn / pygpso Goto Github PK

View Code? Open in Web Editor NEW
19.0 1.0 1.0 3.16 MB

Gaussian-Processes Surrogate Optimisation in python

License: MIT License

Python 99.89% Shell 0.11%
optimisation bayesian-optimisation gaussian-processes space-partition-tree python3 neuroscience neuroscience-methods gaussian-processes-surrogate scale-biophysical-models partition-tree

pygpso's People

Contributors

jajcayn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

ufangyang

pygpso's Issues

Add support for strongly stochastic objective functions

In some modelling cases, the objective function can be strongly stochastic (due to the nature of the model). In that case, each evaluation might introduce a non-negligible error.

One obvious solution would be to add (parallelized of course) multiple evaluations of the same point and in the end, take their mean/median/whatever as the actual evaluated score.

Requires minor edition of the source code, since some parallelisation is already done when initialising.

gcc/clang error of igraph on macOS 10.14.6

I'm having installation problems of igraph with the following error, linked to this igraph issue.

clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
    ld: library not found for -lstdc++
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    error: command 'gcc' failed with exit status 1

Solution:

brew install igraph
MACOSX_DEPLOYMENT_TARGET=10.14 pip install python-igraph

Implement user-defined callbacks

Optional user-defined functions such as _post_initialise(), _pre_iteration(), _post_iteration(), _post_update(), _pre_finalise() where user can define hers/his own callbacks. They would default at pass.

A typical use-case would be plotting ternary tree after each iteration (i.e. in _post_iteration()), special logging as per user, saving after each iteration, etc...

Middle child and parent's center are not the same

In some occasions, the assertion within the LeafNode class throws, that the centers of middle child and parents are not the same when splitting using a ternary partition.

See the traceback error send by one of the users:
image

Possible culprit: floating-point errors when the tree is really deep.
Possible solution: all-close should be enough

Better example notebooks

Especially after new features:

  • show user-defined callbacks
  • show and explain the number of evaluation repeats
  • saving / loading / checkpoints / continuing
  • maybe even stepping the algorithm for yourself, i.e. not use run method, but iteratively use tree selection, tree evaluation, and gp update steps

Installation (macOS 10.14.6): gcc/clang error of igraph on

I'm having installation problems of igraph with the following error, linked to this igraph issue.

clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
    ld: library not found for -lstdc++
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    error: command 'gcc' failed with exit status 1

Solution:

brew install igraph
MACOSX_DEPLOYMENT_TARGET=10.14 pip install python-igraph

Allow resuming the optimisation

For this, the following is needed:

  • saving of parameter space and its state (which leaves has been explored etc.)
  • saving of GPSurrogate (both - list of points and GPR model) (WIP: #40)
  • allow resuming with new conditions (i.e. number of evaluations etc.)

Support for saving full output from the objective function

This stems from the LBSM: when doing an optimisation of the biophysical model, it might be useful to save the full model output (i.e. timeseries) along with the parameter to an external file.

Probably will use hdf and tables for this.

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.