Skip to content

Commit bf84838

Browse files
committed
genacq docstrings
1 parent 171ddd5 commit bf84838

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pycona/active_algorithms/genacq.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
class GenAcq(AlgorithmCAInteractive):
1313

1414
"""
15-
GenAcq algorithm, using mine&Ask to detect types of variables and ask genralization queries. From:
15+
GenAcq algorithm, using generalization queries on given types of variables. From:
1616
17-
"Detecting Types of Variables for Generalization in Constraint Acquisition", ICTAI 2015.
17+
"Boosting Constraint Acquisition with Generalization Queries", ECAI 2014.
1818
"""
1919

2020
def __init__(self, ca_env: ActiveCAEnv = None, types=None, qg_max=3):
2121
"""
22-
Initialize the PQuAcq algorithm with an optional constraint acquisition environment.
22+
Initialize the GenAcq algorithm with an optional constraint acquisition environment.
2323
2424
:param ca_env: An instance of ActiveCAEnv, default is None.
2525
: param types: list of types of variables given by the user
@@ -32,7 +32,7 @@ def __init__(self, ca_env: ActiveCAEnv = None, types=None, qg_max=3):
3232

3333
def learn(self, instance: ProblemInstance, oracle: Oracle = UserOracle(), verbose=0, metrics: Metrics = None, X=None):
3434
"""
35-
Learn constraints using the QuAcq algorithm by generating queries and analyzing the results.
35+
Learn constraints using the GenAcq algorithm by generating queries and analyzing the results.
3636
3737
:param instance: the problem instance to acquire the constraints for
3838
:param oracle: An instance of Oracle, default is to use the user as the oracle.

0 commit comments

Comments
 (0)