climb.tool.impl.data_suite.third_party.uq360.models.bayesian_neural_networks.bnn_models package¶
Submodules¶
climb.tool.impl.data_suite.third_party.uq360.models.bayesian_neural_networks.bnn_models.bayesian_mlp module¶
- class climb.tool.impl.data_suite.third_party.uq360.models.bayesian_neural_networks.bnn_models.bayesian_mlp.BayesianClassificationNet(layer=<class 'climb.tool.impl.data_suite.third_party.uq360.models.bayesian_neural_networks.layers.BayesianLinearLayer'>, ip_dim=1, op_dim=1, num_nodes=50, activation_type='relu', num_layers=1)[source]¶
Bases:
BayesianNN,ABCBayesian neural net with Categorical(y_true | f(x, w)) likelihoods. Use for classification.
- class climb.tool.impl.data_suite.third_party.uq360.models.bayesian_neural_networks.bnn_models.bayesian_mlp.BayesianNN(layer=<class 'climb.tool.impl.data_suite.third_party.uq360.models.bayesian_neural_networks.layers.BayesianLinearLayer'>, ip_dim=1, op_dim=1, num_nodes=50, activation_type='relu', num_layers=1)[source]¶
Bases:
Module,ABCBayesian neural network with zero mean Gaussian priors over weights.
- forward(x, do_sample=True)[source]¶
Define the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Moduleinstance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
- class climb.tool.impl.data_suite.third_party.uq360.models.bayesian_neural_networks.bnn_models.bayesian_mlp.BayesianRegressionNet(layer=<class 'climb.tool.impl.data_suite.third_party.uq360.models.bayesian_neural_networks.layers.BayesianLinearLayer'>, ip_dim=1, op_dim=1, num_nodes=50, activation_type='relu', num_layers=1)[source]¶
Bases:
BayesianNN,ABCBayesian neural net with N(y_true | f(x, w), lambda^-1); lambda ~ Gamma(a, b) likelihoods.
climb.tool.impl.data_suite.third_party.uq360.models.bayesian_neural_networks.bnn_models.horseshoe_mlp module¶
- class climb.tool.impl.data_suite.third_party.uq360.models.bayesian_neural_networks.bnn_models.horseshoe_mlp.HshoeBNN(ip_dim=1, op_dim=1, num_nodes=50, activation_type='relu', num_layers=1, hshoe_scale=0.1, use_reg_hshoe=False)[source]¶
Bases:
Module,ABCBayesian neural network with Horseshoe layers.
- forward(x, do_sample=True)[source]¶
Define the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Moduleinstance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
- class climb.tool.impl.data_suite.third_party.uq360.models.bayesian_neural_networks.bnn_models.horseshoe_mlp.HshoeClassificationNet(ip_dim=1, op_dim=1, num_nodes=50, activation_type='relu', num_layers=1, hshoe_scale=1e-05, use_reg_hshoe=False)[source]¶
-
Horseshoe net with Categorical(y_true | f(x, w)) likelihoods. Use for classification.
- class climb.tool.impl.data_suite.third_party.uq360.models.bayesian_neural_networks.bnn_models.horseshoe_mlp.HshoeRegressionNet(ip_dim=1, op_dim=1, num_nodes=50, activation_type='relu', num_layers=1, hshoe_scale=1e-05, use_reg_hshoe=False)[source]¶
-
Horseshoe net with N(y_true | f(x, w), lambda^-1); lambda ~ Gamma(a, b) likelihoods.