Liking cljdoc? Tell your friends :D

clj-psl.core

Functions for using PSL.

Functions for using PSL.
raw docstring

add-pred-constraintcljmacro

(add-pred-constraint model predicate constraint-type cname)

Add a predicate constraint to the model.

Add a predicate constraint to the model.
raw docstring

add-predicatecljmacro

(add-predicate model pred-name argmap)

Add the specified predicate to the model.

Add the specified predicate to the model.
raw docstring

add-ruleclj

(add-rule model formula weight squared name)

ANDclj

(AND & args)

Return a PSL conjunction formula over given formulas.

Return a PSL conjunction formula over given formulas.
raw docstring

close-dbclj

(close-db database)

Close Database, catching an IllegalStateException if it is already closed.

Close Database, catching an IllegalStateException if it is already closed.
raw docstring

close-open-dbsclj

(close-open-dbs datastore)

Close all open databases and returns their count.

Close all open databases and returns their count.
raw docstring

default-inferenceclj

(default-inference model database config-bundle)

Return an app for MPE inference using the configuration.

Return an app for MPE inference using the configuration.
raw docstring

default-reasonerclj

(default-reasoner config-bundle)

Return a reasoner for MPE inference using the configuration.

Return a reasoner for MPE inference using the configuration.
raw docstring

ground-kernels-by-nameclj

(ground-kernels-by-name ground-kernels kernel-name)

Return all ground kernels from a given collection with the given name.

Return all ground kernels from a given collection with the given name.
raw docstring

ground-kernels-by-name-sortclj

(ground-kernels-by-name-sort ground-kernels)

Return a list of ground kernels sorted by kernel name.

Return a list of ground kernels sorted by kernel name.
raw docstring

ground-kernels-print-summaryclj

(ground-kernels-print-summary ground-kernels)
(ground-kernels-print-summary ground-kernels kernel-name)

Print a summary of ground kernels.

Print a summary of ground kernels.
raw docstring

IMPLclj

(IMPL body head)

Return a PSL rule formula for the given body and head formulas.

Return a PSL rule formula for the given body and head formulas.
raw docstring

model-newclj

(model-new data-store)

Return a new PSLModel associated with the given DataStore.

Return a new PSLModel associated with the given DataStore.
raw docstring

mpe-inferenceclj

(mpe-inference inference-app reasoner)

Call mpeInference on the inference app, providing the reasoner.

Call mpeInference on the inference app, providing the reasoner.
raw docstring

NOTclj

(NOT formula)

Return a PSL negation formula over the given formula.

Return a PSL negation formula over the given formula.
raw docstring

open-dbclj

(open-db datastore model parts-to-read)
(open-db datastore model parts-to-read part-to-write)
(open-db datastore model parts-to-read part-to-write preds-to-close)

Return an open PSL database.

Return an open PSL database.
raw docstring

ORclj

(OR & args)

Return a PSL disjunction formula over given formulas.

Return a PSL disjunction formula over given formulas.
raw docstring

pclj

(p model pred-name)

Get a predicate object from the PSL model

Get a predicate object from the PSL model
raw docstring

partition-copy-atomsclj

(partition-copy-atoms datastore model part-from part-to preds)

Copy atoms of given predicates from one partition to another

Copy atoms of given predicates from one partition to another
raw docstring

partition-deleteclj

(partition-delete datastore partition)

Delete the contents of the partition in the datastore.

Delete the contents of the partition in the datastore.
raw docstring

partition-id-newclj

(partition-id-new)

Return an integer that is (probably!) unique within this session.

Return an integer that is (probably!) unique within this session.
raw docstring

partition-id-nextclj


partition-newclj

(partition-new)

Return a unique partition within this session.

Return a unique partition within this session.
raw docstring

partitions-deleteclj

(partitions-delete datastore)
(partitions-delete datastore partitions)

Delete the contents of the partitions in the datastore.

Delete the contents of the partitions in the datastore.
raw docstring

psl-pred-appendclj

(psl-pred-append database predicate dataset)
(psl-pred-append datastore write-partition predicate dataset)

Add ground atoms to PSL from a dataset. The dataset's columns must be ordered according to the order of arguments of the predicate. See psl-pred-col-ordered-dataset.

Add ground atoms to PSL from a dataset. The dataset's columns must
be ordered according to the order of arguments of the predicate.
See psl-pred-col-ordered-dataset.
raw docstring

psl-pred-col-namesclj

(psl-pred-col-names model pred-name)

Get column names for a given predicate as a list of keywords

Get column names for a given predicate as a list of keywords
raw docstring

psl-pred-col-ordered-datasetclj

(psl-pred-col-ordered-dataset dataset model predicate-name)

Reorder columns of a dataset according to the predicate's arguments.

Reorder columns of a dataset according to the predicate's arguments.
raw docstring

psl-pred-col-sort-datasetclj

(psl-pred-col-sort-dataset dataset model predicate-name)

Sort the rows of a dataset by the first argument of the predicate, then the second, etc.

Sort the rows of a dataset by the first argument of the predicate,
then the second, etc.
raw docstring

psl-pred-readclj

(psl-pred-read model db pred-name include-value)
(psl-pred-read model datastore parts-read pred-name include-value)

Read a table from the PSL DB

Read a table from the PSL DB
raw docstring

round-atomsclj

(round-atoms database model open-predicates)

Round atoms of open predicates using conditional probabilities, per Bach et al, 2015 and Goemans and D. P. Williamson., 1994.

Round atoms of open predicates using conditional probabilities, per
Bach et al, 2015 and Goemans and D. P. Williamson., 1994.
raw docstring

to-variablesclj

(to-variables args)

Wrap a list as a list of Variables.

Wrap a list as a list of Variables.
raw docstring

uidclj

(uid datastore string)

Return a Unique ID from the provided DataStore.

Return a Unique ID from the provided DataStore. 
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close