Learn R Programming

⚠️There's a newer version (2.2.5) of this package.Take me there.

BayesMallows (version 0.3.0)

Bayesian Preference Learning with the Mallows Rank Model

Description

An implementation of the Bayesian version of the Mallows rank model (Vitelli et al., Journal of Machine Learning Research, 2018 ; Crispino et al., to appear in Annals of Applied Statistics). Both Cayley, footrule, Hamming, Kendall, Spearman, and Ulam distances are supported in the models. The rank data to be analyzed can be in the form of complete rankings, top-k rankings, partially missing rankings, as well as consistent and inconsistent pairwise preferences. Several functions for plotting and studying the posterior distributions of parameters are provided. The package also provides functions for estimating the partition function (normalizing constant) of the Mallows rank model, both with the importance sampling algorithm of Vitelli et al. and asymptotic approximation with the IPFP algorithm (Mukherjee, Annals of Statistics, 2016 ).

Copy Link

Version

Install

install.packages('BayesMallows')

Monthly Downloads

944

Version

0.3.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Oystein Sorensen

Last Published

January 30th, 2019

Functions in BayesMallows (0.3.0)

generate_transitive_closure

Generate Transitive Closure
rank_conversion

Convert between ranking and ordering.
get_partition_function

Compute the logarithm of the partition function for a Mallows rank model.
rmallows

Sample from the Mallows distribution.
plot_elbow

Plot Within-Cluster Sum of Distances
.generate_transitive_closure

Internal function for generating transitive closure
compute_posterior_intervals

Compute Posterior Intervals
print.BayesMallows

Print Method for BayesMallows Objects
generate_constraints

Generate Constraint Set from Pairwise Comparisons
print.BayesMallowsMixtures

Print Method for BayesMallowsMixtures Objects
generate_initial_ranking

Generate Initial Ranking
get_rank_distance

Compute the distance between two rank vectors.
plot_top_k

Plot Top-k Rankings with Pairwise Preferences
plot.BayesMallows

Plot Posterior Distributions
potato_weighing

Result of ranking potatoes by weight, where the assessors were allowed to lift the potatoes. 12 assessors ranked 20 potatoes.
estimate_partition_function

Estimate Partition Function
predict_top_k

Predict Top-k Rankings with Pairwise Preferences
potato_true_ranking

True ranking of the weights of 20 potatoes.
potato_visual

Result of ranking potatoes by weight, where the assessors were only allowed to inspected the potatoes visually. 12 assessors ranked 20 potatoes.
sushi_rankings

Sushi Rankings
run_mcmc

Worker function for computing the posterior distribution.
validate_permutation

Check if a vector is a permutation
sample_mallows

Random Samples from the Mallows Rank Model
compute_importance_sampling_estimate

Compute importance sampling estimates of log partition function for footrule and Spearman distances.
BayesMallows

BayesMallows: Bayesian Preference Learning with the Mallows Rank Model.
compute_mallows

Preference Learning with the Mallows Rank Model
assess_convergence

Trace Plots from Metropolis-Hastings Algorithm
beach_preferences

Beach Preferences
compute_mallows_mixtures

Compute Mixtures of Mallows Models
compute_consensus

Compute Consensus Ranking
assign_cluster

Assign Assessors to Clusters
asymptotic_partition_function

Asymptotic Approximation of Partition Function