https://github.com/GPflow/GPflow
Revision aff62bcc29d77b740b81cbadc83656efe2adc080 authored by st-- on 30 March 2020, 09:32:58 UTC, committed by GitHub on 30 March 2020, 09:32:58 UTC
* Adds an explicit check to Scipy() that all elements of `variables` are actually tf.Variable instances (unconstrained variables) - accidentally passing `model.trainable_parameters` may work but give the wrong answers for parameters with transforms! Passing `model.trainable_variables` is the right thing to do. * Updates _compute_loss_and_gradients to only compute gradients wrt passed-in variables. * Fix mixture density network notebook, which had erroneously passed model.trainable_parameters instead of model.trainable_variables.
1 parent d41d6eb
Tip revision: aff62bcc29d77b740b81cbadc83656efe2adc080 authored by st-- on 30 March 2020, 09:32:58 UTC
Make Scipy more robust & faster (#1377)
Make Scipy more robust & faster (#1377)
Tip revision: aff62bc
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/
Computing file changes ...