Skip to content

Commit

Permalink
Added method in Covariance Function to block all hyper parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
mandar2812 committed Dec 13, 2016
1 parent d6bee1c commit a4838d1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ abstract class CovarianceFunction[T, V, M] extends Kernel[T, V] {

var state: Map[String, Double] = Map()

def block_all_hyper_parameters: Unit = {
blocked_hyper_parameters = hyper_parameters
}

def effective_state:Map[String, Double] =
state.filterNot(h => blocked_hyper_parameters.contains(h._1))

Expand Down

0 comments on commit a4838d1

Please sign in to comment.