reduction.ratio: Returns the reduction ratio associated with a blocking method

Description Usage Arguments Value Examples

View source: R/blocking-evaluations.R

Description

Returns the reduction ratio associated with a blocking method

Usage

1
reduction.ratio(block.labels)

Arguments

block.labels

A list of the blocks labels.

Value

The reduction ratio

Examples

1
2
3
tlsh.blocks <- block_setup_v2(r.set = RLdata500[1:50,c(-2)], b=22, save_signature=FALSE, k=2)
block.ids <- block.ids.from.blocking(tlsh.blocks)
reduction.ratio(block.ids)

Example output

Loading required package: blink
Loading required package: stringdist
sh: 1: wc: Permission denied
Could not detect number of cores, defaulting to 1.
Loading required package: plyr
Loading required package: igraph

Attaching package:igraphThe following objects are masked frompackage:stats:

    decompose, spectrum

The following object is masked frompackage:base:

    union

Loading required package: bit64
Loading required package: bit

Attaching package:bitThe following object is masked frompackage:base:

    xor

Attaching package bit64
package:bit64 (c) 2011-2017 Jens Oehlschlaegel
creators: integer64 runif64 seq :
coercion: as.integer64 as.vector as.logical as.integer as.double as.character as.bitstring
logical operator: ! & | xor != == < <= >= >
arithmetic operator: + - * / %/% %% ^
math: sign abs sqrt log log2 log10
math: floor ceiling trunc round
querying: is.integer64 is.vector [is.atomic} [length] format print str
values: is.na is.nan is.finite is.infinite
aggregation: any all min max range sum prod
cumulation: diff cummin cummax cumsum cumprod
access: length<- [ [<- [[ [[<-
combine: c rep cbind rbind as.data.frame
WARNING don't use as subscripts
WARNING semantics differ from integer
for more help type ?bit64

Attaching package:bit64The following objects are masked frompackage:base:

    :, %in%, is.double, match, order, rank

[1] "Creating the universal set of tokens"
elapsed 
  0.001 
[1] "Number of tokens in universal set"
[1] 234
[1] "Generating a vector of random hash functions"
elapsed 
  0.006 
[1] "Creating index vector and applying hash functions to first record"
   user  system elapsed 
  0.013   0.000   0.013 
   user  system elapsed 
  0.674   0.017   0.692 
[1] "Creating edgelist"
   user  system elapsed 
   0.03    0.00    0.03 
[1] 1033    2
[1] "Building graph from edgelist"
   user  system elapsed 
  0.001   0.000   0.002 
[1] "Dividing graph into communities initially"
   user  system elapsed 
  0.002   0.000   0.004 
[1] "Subdividng communities"
   user  system elapsed 
      0       0       0 
[1] 0.8367347

tlsh documentation built on Nov. 16, 2020, 9:15 a.m.