Skip to content
This repository has been archived by the owner on Mar 4, 2018. It is now read-only.

Commit

Permalink
return type for cohens kappa and percentage scores
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinwyszynski committed Apr 29, 2012
1 parent 9e6ab3a commit c0a79ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/cabalist/model_additions.rb
Expand Up @@ -115,6 +115,7 @@ module ModelAdditions
# method of measurement, see the relevant article on
# Wikipedia[link:http://en.wikipedia.org/wiki/Cohen%27s_kappa].
# @scope class
# @return [Float] Cohen's kappa coefficient
define_singleton_method(
:cohens_kappa,
lambda {
Expand Down Expand Up @@ -186,6 +187,7 @@ module ModelAdditions
# the classifier and human decision-maker agree. It is one of quality
# measures of the classifier, albeit a naive one.
# @scope class
# @return [Float] percentage agreement score
define_singleton_method(
:percentage_ageement,
lambda {
Expand All @@ -201,6 +203,7 @@ module ModelAdditions
# due to sheer randomness rather than actual intelligence reperesented
# by the classifier.
# @scope class
# @return [Float] percentage random agreement
define_singleton_method(
:percentage_random_agreement,
lambda {
Expand Down

0 comments on commit c0a79ba

Please sign in to comment.