Metrics

An R package for common supervised machine learning metrics.

https://github.com/mfrasco/metrics

Science Score: 10.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 16 committers (6.3%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.9%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

An R package for common supervised machine learning metrics.

Basic Info
  • Host: GitHub
  • Owner: mfrasco
  • License: other
  • Language: R
  • Default Branch: master
  • Homepage:
  • Size: 354 KB
Statistics
  • Stars: 102
  • Watchers: 6
  • Forks: 26
  • Open Issues: 20
  • Releases: 0
Created almost 9 years ago · Last pushed almost 7 years ago
Metadata Files
Readme Contributing License Code of conduct

README.md

Metrics

Build Status CRAN_Status_Badge Downloads

How to Install this Package

This package is distributed from CRAN. From the R prompt, run install.packages("Metrics").

Metrics Repo

This repository contains code for the Metrics package in R. Metrics was created by Ben Hamner and came from this github repo. Hamner's repo contains packages for common machine learning metrics in several programming languages, not just R. On 2017-04-21, CRAN orphaned the R package. To revive the status of the R package, I cloned the original and created this repo. I have added new metrics, improved documentation, and fixed bugs. This repository will be the home of active development on the Metrics R package moving forward.

Community Feedback

If you notice anything wrong with the Metrics package or have any ideas on how to improve it, please create an issue in this github repository that describes your issue. I also welcome improvements to this package via a pull request. This is a simple R package, which makes it perfect for first time open source contributors. Here is a guide that walks you through how to make an open source contribution.

What Metrics are Included in this Package?

All functions in the Metrics package take at least two arguments: actual and predicted. In the table below, I abbreviate actual as x and predicted as y for the sake of mathematical brevity.

| Metric Type | Metric Name | Function Name | Formula | | ---- | ------------------------ | ---- | ------------------------------- | | regression | Squared Error | se | equation | | regression | Mean Squared Error | mse | equation | | regression | Root Mean Squared Error | rmse | equation | | regression | Absolute Error | ae | equation | | regression | Mean Absolute Error | mae | equation | | regression | Absolute Percent Error | ape | equation | | regression | Mean Absolute Percent Error | mape | equation | | regression | Symmetric Mean Absolute Percent Error | smape | equation | | regression | Squared Log Error | sle | equation | | regression | Mean Squared Log Error | msle | equation | | regression | Root Mean Squared Log Error | rmsle | equation | | regression | Relative Squared Error | rse | equation | | regression | Root Relative Squared Error | rrse | equation | | regression | Relative Absolute Error | rae | equation | | time series | Mean Absolute Scaled Error | mase | equation| | classification | Classification Error | ce | equation | | classification | Accuracy | accuracy | equation | | classification | F1 Score | f1 | equation | | binary classification | Area Under ROC Curve | auc | equation. help(auc) for details. | | binary classification | Log Loss | ll | equation | | binary classification | Mean Log Loss | logloss | equation | | binary classification | Precision | precision | equation | | binary classification | Recall | recall | equation | | binary classification | F-beta Score | fbeta_score | equation |

Owner

  • Name: mfrasco
  • Login: mfrasco
  • Kind: user
  • Location: Seattle, Washington, USA

Data Scientist

GitHub Events

Total
  • Issues event: 2
  • Watch event: 2
  • Issue comment event: 2
Last Year
  • Issues event: 2
  • Watch event: 2
  • Issue comment event: 2

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 275
  • Total Committers: 16
  • Avg Commits per committer: 17.188
  • Development Distribution Score (DDS): 0.247
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Ben Hamner b****n@b****m 207
Michael Frasco m****6@g****m 23
Dan Blanchard d****d@g****m 11
Michael Horrell m****l@u****m 8
Ujjwal Karn u****n@g****m 5
Fabian Hirschmann f****n@h****t 4
Marco De Nadai d****2@M****l 3
ashreekumar a****r@u****u 3
Michael Horrell m****l@m****t 3
AdvikS A****S 2
Eduardo Flores e****v@g****m 1
Wendy Kan w****n@g****m 1
ledell e****n@h****i 1
Dan Blanchard d****d@e****g 1
heidiw8 4****8 1
Simon Roth s****s 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 12 months ago

All Time
  • Total issues: 21
  • Total pull requests: 28
  • Average time to close issues: 4 months
  • Average time to close pull requests: 6 days
  • Total issue authors: 18
  • Total pull request authors: 8
  • Average comments per issue: 1.19
  • Average comments per pull request: 1.61
  • Merged pull requests: 24
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 1.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • adam-m-mcelhinney (3)
  • mfrasco (2)
  • Pentaonia (1)
  • muskuloes (1)
  • chansigit (1)
  • ghost (1)
  • plpxsk (1)
  • jiyunson (1)
  • timbook (1)
  • burakaydin (1)
  • newtiff (1)
  • bgreenwell (1)
  • iblasi (1)
  • kiganev (1)
  • jayqi (1)
Pull Request Authors
  • mfrasco (19)
  • mthorrell (2)
  • mllg (2)
  • systats (1)
  • timbook (1)
  • adviksh (1)
  • jmcastagnetto (1)
  • heidiw8 (1)
Top Labels
Issue Labels
good first issue (1) documentation (1)
Pull Request Labels

Packages

  • Total packages: 2
  • Total downloads:
    • cran 19,535 last-month
  • Total docker downloads: 44,528
  • Total dependent packages: 39
    (may contain duplicates)
  • Total dependent repositories: 68
    (may contain duplicates)
  • Total versions: 5
  • Total maintainers: 1
cran.r-project.org: Metrics

Evaluation Metrics for Machine Learning

  • Versions: 4
  • Dependent Packages: 38
  • Dependent Repositories: 67
  • Downloads: 19,535 Last month
  • Docker Downloads: 44,528
Rankings
Dependent packages count: 2.2%
Downloads: 2.9%
Dependent repos count: 2.9%
Forks count: 3.1%
Stargazers count: 3.9%
Average: 6.3%
Docker downloads count: 22.5%
Maintainers (1)
Last synced: 12 months ago
conda-forge.org: r-metrics
  • Versions: 1
  • Dependent Packages: 1
  • Dependent Repositories: 1
Rankings
Dependent repos count: 24.3%
Dependent packages count: 29.0%
Average: 30.3%
Stargazers count: 33.8%
Forks count: 34.1%
Last synced: 11 months ago

Dependencies

DESCRIPTION cran
  • testthat * suggests