Commit 1f946049 authored by Yan Facai (颜发才)'s avatar Yan Facai (颜发才) Committed by drpngx
Browse files

New metric: Cohen's kappa (#15443)

* ENH: implement cohen_kappa

* TST: add test cases

* DOC: add document

* DOC: revise document as suggested

* CLN: drop total prefix

* CLN: wrap lines to 80 chars in metric_ops.py

* CLN: remove unneeded dependency

* DOC: support labels datatype

* TST: add explanation for testBasic

* TST: remove testBasic2

* TST: replace all random data

* CLN: remove sklearn dependency

* TST: wrap the lines in this test to 80 chars

* DOC: clean format

* CLN: typo

* CLN: lables specifiy -1 axis

* CLN: remove float lables support

* DOC: modify document of _safe_div

* CLN: rename predictions -> predictions_idx

* TST: invalid dim case

* CLN: clean codes

* DOC: remove total_ in update_op
parent 48971070
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment