Description Usage Arguments Value Examples
View source: R/blocking-evaluations.R
Returns the reduction ratio associated with a blocking method
1 | reduction.ratio(block.labels)
|
block.labels |
A list of the blocks labels. |
The reduction ratio
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)
|
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: ‘igraph’
The following objects are masked from ‘package:stats’:
decompose, spectrum
The following object is masked from ‘package:base’:
union
Loading required package: bit64
Loading required package: bit
Attaching package: ‘bit’
The following object is masked from ‘package: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: ‘bit64’
The following objects are masked from ‘package: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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.