classes.optimizers package

Submodules

classes.optimizers.constraint_based_optimizer module

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

Bases: classes.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

classes.optimizers.optimizer module

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

Bases: abc.ABC

Interface class for all the optimizer’s child classes

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.