Triplet constraint selection (skquery.triplet
)¶
This module regroups methods that query triplet constraints.
- class skquery.triplet.RandomTriplet[source]¶
Random sampling of triplet constraints.
- csts_to_file(constraints, filename='constraints')¶
Write the contents of a constraint dictionary into a text file.
Parameters¶
- constraintsdict of list
Constraints to write.
- filenamestring, default=”constraints”
Name of the output file.
- fit(X, oracle, partition=None, n_clusters=None)[source]¶
Selects triplet constraints randomly.
Parameters¶
- Xarray-like
Instances to use for query.
- oraclecallable
Source of background knowledge able to answer the queries.
- partitionIgnored
Not used, present for API consistency.
- n_clustersIgnored
Not used, present for API consistency.