-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from ARGOeu/devel
Version 1.0.2
- Loading branch information
Showing
39 changed files
with
50,651 additions
and
275 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Metric Descriptions folder | ||
|
||
This folder is meant to contained detailed yaml files defining in structure the implementation details of each metric | ||
To add a new detailed description in this folder please consult the first file added here: diversity.yml and structure | ||
the information accordingly | ||
|
||
### Important Note on filenames | ||
The filename should correspond to the name of the metric used in `metrics.json` output and the extension `.yml` | ||
So for the metric Shannon Diversity the short name used in `metrics.json` is `diversity` thus the filename is `diversity.yml` | ||
|
||
### Multiline values | ||
In yaml fields that you need to support multiline string content please use the `>` operator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Catalog Coverage | ||
|
||
summary: > | ||
The percentage (%) of the division of the unique services found in recommendations to the total number of published services | ||
description: > | ||
The Catalog Coverage is described by the formula $$\frac{unique\_rec\_services}{services}$$ | ||
output: | ||
type: float | ||
min: 0 | ||
max: 100 | ||
comment: Catalog Coverage is 0 when none of the services is being recommended, and 100 when all of them are being recommended. | ||
|
||
prerequisites: | ||
- all available recommendations | ||
- all available services | ||
|
||
process: | ||
- step: Retrieve recommendations | ||
details: > | ||
Retrieve all available recommendations found in source | ||
- step: Gather all unique services | ||
details: > | ||
Gather all unique services found in all available recommendations | ||
- step: Retrieve services | ||
details: > | ||
Retrieve all available published services found in source | ||
- step: Calculate ratio | ||
details: > | ||
Calculate the percentage (%) of the division of the unique services found in recommendations to the total number of published services | ||
# This is optional for visual stylization of the metric when displayed on the report | ||
style: | ||
icon: pe-7s-box2 | ||
color: bg-malibu-beach |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Click-Through Rate | ||
|
||
summary: > | ||
The number of user clicks through recommendations panels divided by the total times recommendation panels were presented to users. | ||
description: > | ||
The number of user clicks through recommendations panels divided by the total times recommendation panels were presented to users. Takes into account all historical data of user actions. The metric is expressed by the formula: $$Click-Through Rate=\frac{clicks}{views}$$ | ||
output: | ||
type: float | ||
min: 0 | ||
max: +inf | ||
comment: A value of 0 indicates that no clicks through recommendations panels occurred | ||
|
||
prerequisites: | ||
- all available user actions | ||
|
||
process: | ||
- step: Retrieve user actions with recommendation panel | ||
details: > | ||
Get only the user actions that present a recommendation panel to the user in the source page. Those are actions with the following source paths: (i) /services, (ii) /services/, (iii) /services/c/{any category name} | ||
- step: Count user actions with recommendation panel | ||
details: > | ||
Count the items in the above list as they represent the times recommendations panels were presented to the users of the portal | ||
- step: Filter list | ||
details: > | ||
Narrow the above list into a new subset by selecting only user actions that originate from a recommendation panel. Those are actions that have the 'recommendation' string in the Action column | ||
- step: Count user actions with clicks through recommendation panel | ||
details: > | ||
Count the items in the subset as they represent the times users clicked through recommendations | ||
- step: Calculate ratio | ||
details: > | ||
Divide the items of the subset with the items of the first list to get the click-through rate | ||
# This is optional for visual stylization of the metric when displayed on the report | ||
style: | ||
icon: pe-7s-mouse | ||
color: bg-grow-early |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Diversity Gini Index | ||
|
||
summary: > | ||
Measures Recommendations' diversity. The index is 0 when all items are chosen equally often, and 1 when a single item is always chosen. | ||
description: > | ||
The diversity (\(G\)) of the recommendations according to Gini Index. The index is 0 when all items are chosen equally often, | ||
and 1 when a single item is always chosen | ||
(see book \(\href{https://link.springer.com/10.1007/978-1-4939-7131-2_110158}{https://link.springer.com/10.1007/978-1-4939-7131-2_110158}\)). Generally, the Gini Index mathematical expression is defined as: | ||
$$G=\frac{1}{n-1}\sum_{j=1}^{n}(2j-n-1)p(i_j)$$where \(i_1,\ldots,i_n\) is the list of items ordered according to increasing \(p(i)\) and each item \(i\) accounts for a proportion \(p(i)\) of user recommendations. In RS Metrics the computation is determined by the following forumla: | ||
$$Diversity=\frac{1}{n-1}\sum_{j=1}^{n}(2j-n-1)\left(\frac{count(j)}{recommendations}\right)$$ | ||
output: | ||
type: float | ||
min: 0 | ||
max: 1 | ||
comment: The index is 0 when all items are chosen equally often, and 1 when a single item is always chosen. | ||
|
||
prerequisites: | ||
- recommendations without anonymous users | ||
- all available services | ||
|
||
process: | ||
- step: Clean up | ||
details: > | ||
Recommendations clean up; entries removal where users or services are not found in "users" or "services" files accordingly | ||
- step: Services Impact | ||
details: > | ||
Calculation of the impact of the services, by counting how many times each service i was suggested to all possible users: count(j) | ||
- step: Sort Services Impact from low to high | ||
details: > | ||
Sort the number of how many times each service (i.e. i) was suggested from the lower to the higher value, in order to apply the respective weight (j). The computation includes services with 0 recommendation occurrence | ||
- step: Recommended Probability of the Services | ||
details: > | ||
For each service calculate its recommended probability by dividing the number of service's occurrence found in the recommendations to the total number of recommendations | ||
- step: Service-based product computation | ||
details: > | ||
Calculation of the product of the recommended probability from previous step and services' respective index j, for each service individually | ||
- step: Gini Index computation | ||
details: > | ||
Computation of the overall value by summing all values from previous step | ||
# This is optional for visual stylization of the metric when displayed on the report | ||
style: | ||
icon: pe-7s-shuffle | ||
color: bg-plum-plate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Diversity Shannon Entropy | ||
|
||
summary: > | ||
Measures Recommendations' diversity. The entropy is 0 when a single item is always chosen or recommended, | ||
and log n when n items are chosen or recommended equally often. | ||
description: > | ||
The diversity (\(H\)) of the recommendations according to Shannon Entropy. The entropy is 0 when a single item | ||
is always chosen or recommended, and log(n) when n items are chosen or recommended equally often | ||
(see book \(\href{https://link.springer.com/10.1007/978-1-4939-7131-2_110158}{https://link.springer.com/10.1007/978-1-4939-7131-2_110158}\)). Generally, the Shannon Entropy mathematical expression is defined as: | ||
$$H=-\sum_{i=1}^{n}p(i)\log_2 p(i) $$In RS Metrics the computation is determined by the following forumla: | ||
$$Diversity=-\sum_{i=1}^{services}\left(\frac{count(i)}{recommendations}\right)\log_2 \left(\frac{count(i)}{recommendations}\right)$$ | ||
output: | ||
type: float | ||
min: 0 | ||
max: +\(\infty\) | ||
comment: The entropy is 0 when a single item is always chosen or recommended, and log n when n items are chosen or recommended equally often. | ||
|
||
prerequisites: | ||
- recommendations without anonymous users | ||
- all available services | ||
|
||
process: | ||
- step: Clean up | ||
details: > | ||
Recommendations clean up; entries removal where users or services are not found in "users" or "services" files accordingly | ||
- step: Services Impact | ||
details: > | ||
Calculation of the impact of the services, by counting how many times each service i was suggested to all possible users: count(i) | ||
- step: Recommended Probability of the Services | ||
details: > | ||
For each service calculate its recommended probability by dividing the number of service's occurrences found in the recommendations to the total number of recommendations | ||
- step: Service-based product computation | ||
details: > | ||
Calculation of the product of the recommended probability from previous step and the logarithmic value of it, for each service individually | ||
- step: Shannon Entropy computation | ||
details: > | ||
Computation of the overall value by summing all values from previous step | ||
# This is optional for visual stylization of the metric when displayed on the report | ||
style: | ||
icon: pe-7s-way | ||
color: bg-sunny-morning |
Oops, something went wrong.