mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-27 13:56:23 +02:00
tie_param changed to tie_params in tutorials
This commit is contained in:
parent
a7e1f9218d
commit
6febbed36f
1 changed files with 2 additions and 2 deletions
|
|
@ -133,7 +133,7 @@ Various constrains can be applied to the parameters of a kernel
|
|||
* ``constrain_fixed`` to fix the value of a parameter (the value will not be modified during optimisation)
|
||||
* ``constrain_positive`` to make sure the parameter is greater than 0.
|
||||
* ``constrain_bounded`` to impose the parameter to be in a given range.
|
||||
* ``tie_param`` to impose the value of two (or more) parameters to be equal.
|
||||
* ``tie_params`` to impose the value of two (or more) parameters to be equal.
|
||||
|
||||
When calling one of these functions, the parameters to constrain can either by specified by a regular expression that matches its name or by a number that corresponds to the rank of the parameter. Here is an example ::
|
||||
|
||||
|
|
@ -146,7 +146,7 @@ When calling one of these functions, the parameters to constrain can either by s
|
|||
|
||||
k.constrain_positive('var')
|
||||
k.constrain_fixed(np.array([1]),1.75)
|
||||
k.tie_param('len')
|
||||
k.tie_params('len')
|
||||
k.unconstrain('white')
|
||||
k.constrain_bounded('white',lower=1e-5,upper=.5)
|
||||
print k
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue