Skip to content

Commit 69476ba

Browse files
committed
Fix minor formatting issues in README
1 parent d04d140 commit 69476ba

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

README.Rmd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ knitr::opts_chunk$set(
2121
clevr implements functions for evaluating link prediction and clustering
2222
algorithms in R. It includes efficient implementations of common performance
2323
measures, such as:
24+
2425
* pairwise precision, recall, F-measure;
2526
* homogeneity, completeness and V-measure;
2627
* (adjusted) Rand index;
2728
* variation of information; and
2829
* mutual information.
30+
2931
While the current focus is on supervised (a.k.a. external) performance
3032
measures, unsupervised (internal) measures are also in scope for future
3133
releases.
@@ -54,7 +56,7 @@ representations.
5456
```{r example}
5557
library(clevr)
5658
# A clustering of four records represented as a membership vector
57-
pred_membership <- c("Record1" = 1, "Record2" = 1, "Record3" = 1, "Record 4" = 2)
59+
pred_membership <- c("Record1" = 1, "Record2" = 1, "Record3" = 1, "Record4" = 2)
5860
5961
# Represent as a set of record pairs that appear in the same cluster
6062
pred_pairs <- membership_to_pairs(pred_membership)
@@ -80,7 +82,7 @@ print(re)
8082
and for evaluating clusterings:
8183

8284
```{r clust-measures}
83-
true_membership <- c("Record1" = 1, "Record2" = 1, "Record3" = 2, "Record 4" = 2)
85+
true_membership <- c("Record1" = 1, "Record2" = 1, "Record3" = 2, "Record4" = 2)
8486
8587
ari <- adj_rand_index(true_membership, pred_membership)
8688
print(ari)

README.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,17 @@
99

1010
clevr implements functions for evaluating link prediction and clustering
1111
algorithms in R. It includes efficient implementations of common
12-
performance measures, such as: \* pairwise precision, recall, F-measure;
13-
\* homogeneity, completeness and V-measure; \* (adjusted) Rand index; \*
14-
variation of information; and \* mutual information. While the current
15-
focus is on supervised (a.k.a. external) performance measures,
16-
unsupervised (internal) measures are also in scope for future releases.
12+
performance measures, such as:
13+
14+
- pairwise precision, recall, F-measure;
15+
- homogeneity, completeness and V-measure;
16+
- (adjusted) Rand index;
17+
- variation of information; and
18+
- mutual information.
19+
20+
While the current focus is on supervised (a.k.a. external) performance
21+
measures, unsupervised (internal) measures are also in scope for future
22+
releases.
1723

1824
## Installation
1925

@@ -39,7 +45,7 @@ clustering representations.
3945
``` r
4046
library(clevr)
4147
# A clustering of four records represented as a membership vector
42-
pred_membership <- c("Record1" = 1, "Record2" = 1, "Record3" = 1, "Record 4" = 2)
48+
pred_membership <- c("Record1" = 1, "Record2" = 1, "Record3" = 1, "Record4" = 2)
4349

4450
# Represent as a set of record pairs that appear in the same cluster
4551
pred_pairs <- membership_to_pairs(pred_membership)
@@ -56,7 +62,7 @@ print(pred_clusters)
5662
#> [1] "Record1" "Record2" "Record3"
5763
#>
5864
#> $`2`
59-
#> [1] "Record 4"
65+
#> [1] "Record4"
6066
```
6167

6268
Performance measures are available for evaluating linked pairs:
@@ -76,7 +82,7 @@ print(re)
7682
and for evaluating clusterings:
7783

7884
``` r
79-
true_membership <- c("Record1" = 1, "Record2" = 1, "Record3" = 2, "Record 4" = 2)
85+
true_membership <- c("Record1" = 1, "Record2" = 1, "Record3" = 2, "Record4" = 2)
8086

8187
ari <- adj_rand_index(true_membership, pred_membership)
8288
print(ari)

0 commit comments

Comments
 (0)