diff --git a/src/shogun/machine/DistanceMachine.cpp b/src/shogun/machine/DistanceMachine.cpp index d2e2067ebc1..8fd5ae3ce80 100644 --- a/src/shogun/machine/DistanceMachine.cpp +++ b/src/shogun/machine/DistanceMachine.cpp @@ -36,6 +36,7 @@ void CDistanceMachine::init() distance=NULL; m_parameters->add((CSGObject**)&distance, "distance", "Distance to use"); + watch_param("distance", &distance, AnyParameterProperties("Distance to use")); } void CDistanceMachine::distances_lhs(SGVector& result, index_t idx_a1, index_t idx_a2, index_t idx_b) diff --git a/src/shogun/machine/KernelMachine.cpp b/src/shogun/machine/KernelMachine.cpp index b8a597b7e5e..36a58a5e762 100644 --- a/src/shogun/machine/KernelMachine.cpp +++ b/src/shogun/machine/KernelMachine.cpp @@ -634,7 +634,10 @@ void CKernelMachine::init() use_linadd=true; use_bias=true; - SG_ADD((CSGObject**) &kernel, "kernel", "", MS_AVAILABLE); + // SG_ADD((CSGObject**) &kernel, "kernel", "", MS_AVAILABLE); + m_parameters->add((CSGObject**) &kernel, "kernel", ""); + watch_param("kernel", &kernel, AnyParameterProperties("")); + SG_ADD((CSGObject**) &m_custom_kernel, "custom_kernel", "Custom kernel for" " data lock", MS_NOT_AVAILABLE); SG_ADD((CSGObject**) &m_kernel_backup, "kernel_backup",