https://github.com/GPflow/GPflow
Revision 4a132712259277f3a312ebe81359cc687aeab6fd authored by st-- on 30 April 2018, 16:35:23 UTC, committed by Mark van der Wilk on 30 April 2018, 16:35:23 UTC
* Support exponential distribution as prior.

The exponential distribution here is parametrized using the rate
parameter lambda and always has its mode at 0.

* Reuse exponential density for prior distribution

Add transformation to test of exponential prior
This ensures that it is only evaluated on the positive domain

* Add sample method

* fix test

* fix test again

* more fixes

* add pragma: no cover to make codecov happy

* add sample tests

* sample test

* revert change to densities.exponential()

* fix

* pr comments

* fix test

* removing commented code
1 parent e59ff2f
Raw File
Tip revision: 4a132712259277f3a312ebe81359cc687aeab6fd authored by st-- on 30 April 2018, 16:35:23 UTC
Add Exponential distribution as prior (#717)
Tip revision: 4a13271
Dockerfile
# Copyright 2016 The GPflow authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

#USAGE:
#To run from prebuilt version use:
#docker run -it -p 8888:8888 gpflow/gpflow

#To replicate build use:
#docker build -t gpflow/gpflow .
#Assumes you are running from within cloned repo.

#Uses official Tensorflow docker for cpu only.
FROM tensorflow/tensorflow:1.0.0
COPY ./ /usr/local/GPflow/
RUN cd /usr/local/GPflow && \
    python setup.py develop && \
    rm /notebooks/*  && \
    apt-get clean  && \
    rm -rf /var/lib/apt/lists/*
COPY doc/source/notebooks/ LICENSE README.md /notebooks/
back to top