Function
This package is used to evaluate fitness values for backdoors.
Guess-and-determine
from function.impl import GuessAndDetermine
function = GuessAndDetermine(
budget: Budget
measure: Measure
)
Inverse Backdoor Sets
budget – An instance of the Budget module.
measure – An instance of the Measure module.
min_solved – The proportion of tasks in from the random sample for which a resolving substitution of values must be found. Default: 0.
Note
For this evaluation function to work correctly, you must specify the value of the budget parameter for the Measure module.
from function.impl import InverseBackdoorSets
function = InverseBackdoorSets(
budget: Budget
measure: Measure
min_solved: float
)
Rho Function
measure – An instance of the Measure module.
penalty_power – The multiplier for the penalty component in fitness value.
from function.impl import RhoFunction
function = RhoFunction(
measure: Measure
penalty_power: float
only_propagate: bool
)
Inverse Polynomial Sets
This implementation is based on Inverse Backdoor Sets function, …. The behavior of this implementation is controlled by the following parameters:
measure – An instance of the Measure module.
min_solved – The proportion of tasks in from the random sample for which a resolving substitution of values must be found. Default: 0.
from function.impl import InversePolynomialSets
function = InversePolynomialSets(
measure: Measure
min_solved: float
only_propagate: bool
)