https://github.com/GPflow/GPflow
Revision 6388133f7bf8f290661bc1a5db917f2a71762bab authored by st-- on 08 April 2020, 13:52:11 UTC, committed by GitHub on 08 April 2020, 13:52:11 UTC
Addresses #1407.

* attempt to improve the error message in the gpflow.Parameter check on assigning a new value that is incompatible with the parameter's transform (e.g. a non-positive value to a parameter with a positive() transform)

* Gaussian likelihood: add explicit `__init__`-time check that variance > variance_lower_bound, add `__init__` docstring, move "default variance lower bound" magic number into class-level constant

* change gpflow.config's positive_minimum to always be a float (initialized to 0.0 by default)
1 parent 92f914d
Raw File
Tip revision: 6388133f7bf8f290661bc1a5db917f2a71762bab authored by st-- on 08 April 2020, 13:52:11 UTC
Improve user experience on invalid assignments to constrained Parameters (#1408)
Tip revision: 6388133
Makefile
.PHONY: help clean dev-install install package format test

help:
	@echo "The following make targets are available:"
	@echo "	dev-install		install all dependencies for dev environment and sets a egg link to the project sources"
	@echo "	install			install all dependencies and the project in the current environment"
	@echo "	package			build pip package"
	@echo "	test			run all tests in parallel"
	@echo "	clean			removes package, build files and egg info"

clean:
	rm -rf dist *.egg-info build

dev-install:
	pip install -e .

install:
	pip install .

package:
	python setup.py bdist

format:
	black -t py36 -l 100 gpflow tests doc setup.py

test:
	pytest -v --durations=10 tests/
back to top