PyCTBN.optimizers package

Submodules

PyCTBN.optimizers.constraint_based_optimizer module

class PyCTBN.optimizers.constraint_based_optimizer.ConstraintBasedOptimizer(node_id: str, structure_estimator: PyCTBN.estimators.structure_estimator.StructureEstimator, tot_vars_count: int)

Bases: PyCTBN.optimizers.optimizer.Optimizer

Optimizer class that implement a CTPC Algorithm

Parameters
  • node_id (string) – current node’s id

  • structure_estimator (class:'StructureEstimator') – a structure estimator object with the information about the net

  • tot_vars_count (int) – number of variables in the dataset

optimize_structure()

Compute Optimization process for a structure_estimator by using a CTPC Algorithm

Returns

the estimated structure for the node

Return type

List

PyCTBN.optimizers.optimizer module

class PyCTBN.optimizers.optimizer.Optimizer(node_id: str, structure_estimator: PyCTBN.estimators.structure_estimator.StructureEstimator)

Bases: abc.ABC

Interface class for all the optimizer’s child PyCTBN

Parameters
  • node_id (string) – the node label

  • structure_estimator (class:'StructureEstimator') – A structureEstimator Object to predict the structure

abstract optimize_structure() → List

Compute Optimization process for a structure_estimator

Returns

the estimated structure for the node

Return type

List

Module contents


© Copyright 2021, Bregoli Alessandro, Martini Filippo, Moretti Luca.

Built with Sphinx using a theme provided by Porão do Juca.