Encoding
neps.optimizers.bayesian_optimization.kernels.encoding
#
NASBOTDistance
#
NASBOTDistance(
node_name="op_name",
include_op_list=None,
exclude_op_list=None,
lengthscale=3.0,
normalize=True,
max_size=None,
**kwargs
)
Bases: GraphKernels
NASBOT OATMANN distance according to BANANAS paper
Source code in neps/optimizers/bayesian_optimization/kernels/encoding.py
PathDistance
#
PathDistance(
node_name="op_name",
include_op_list=None,
exclude_op_list=None,
lengthscale=3.0,
normalize=True,
max_size=None,
**kwargs
)
Bases: NASBOTDistance
Source code in neps/optimizers/bayesian_optimization/kernels/encoding.py
encode_paths
#
output one-hot encoding of paths
Source code in neps/optimizers/bayesian_optimization/kernels/encoding.py
forward_t
#
forward_t(gr2, gr1: list = None)
Compute the derivative of the kernel function k(phi, phi) with respect to phi (the training point)
Source code in neps/optimizers/bayesian_optimization/kernels/graph_kernel.py
get_path_indices
#
compute the index of each path There are 3^0 + ... + 3^5 paths total. (Paths can be length 0 to 5, and for each path, for each node, there are three choices for the operation.)
Source code in neps/optimizers/bayesian_optimization/kernels/encoding.py
get_path_indices_201
#
compute the index of each path
Source code in neps/optimizers/bayesian_optimization/kernels/encoding.py
get_paths
#
return all paths from input to output
Source code in neps/optimizers/bayesian_optimization/kernels/encoding.py
get_paths_201
staticmethod
#
return all paths from input to output