View source: R/predict_problink_em.R
predict.problink_em | R Documentation |
Calculate weights and probabilities for pairs
## S3 method for class 'problink_em'
predict(
object,
pairs = newdata,
newdata = NULL,
type = c("weights", "mpost", "probs", "all"),
binary = FALSE,
add = FALSE,
comparators,
inplace = FALSE,
new_name = NULL,
...
)
object |
an object of type |
pairs |
a object with pairs for which to calculate weights. |
newdata |
an alternative name for the |
type |
a character vector of length one specifying what to calculate. See results for more information. |
binary |
convert comparison vectors to binary vectors using the comparison function in comparators. |
add |
add the predictions to the original pairs object. |
comparators |
a list of comparison functions (see |
inplace |
logical indicating whether |
new_name |
name of new object to assign the pairs to on the cluster
nodes (only relevant when pairs is of type |
... |
unused. |
When pairs
is of type pairs
, returns a data.table with either
the .x
and .y
columns from pairs
(when add = FALSE
)
or all columns of pairs
. To these columns are added:
In case of type = "weights"
a column weights
with the calculated
weights.
In case of type = "mpost"
a column mpost
with the calculated
posterior probabilities (probability that pair is a match given comparison vector.
In case of type = "prob"
the columns mprob
and uprob
with the
m and u-probabilites and mpost
and upost
with the posterior m- and
u-probabilities.
In case of type = "all"
all of the above.
In case of compare_pairs.cluster_pairs
, compare_pair.pairs
is called on
each cluster node and the resulting pairs are assigned to new_name
in
the environment reclin_env
. When new_name
is not given (or
equal to NULL) the original pairs on the nodes are overwritten.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.