SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-AI-ConfusionMatrix rpm build for : openSUSE Tumbleweed. For other distributions click perl-AI-ConfusionMatrix.

Name : perl-AI-ConfusionMatrix
Version : 0.010 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : 1.47 Date : 2024-08-05 17:28:00
Group : Development/Libraries/Perl Source RPM : perl-AI-ConfusionMatrix-0.010-1.47.src.rpm
Size : 0.04 MB
Packager : (none)
Summary : Make a Confusion Matrix
Description :
This module prints a at https://en.wikipedia.org/wiki/Confusion_matrix from
a hash reference. This module tries to be generic enough to be used within
a lot of machine learning projects.

Functions:
\'makeConfusionMatrix($hash_ref, $file [, $delimiter ])\'
This function makes a confusion matrix from \'$hash_ref\' and writes
it to \'$file\'. \'$file\' can be a filename or a file handle opened
with the \'w+\' mode. If \'$delimiter\' is present, it is used as a
custom separator for the fields in the confusion matrix.

Examples:

makeConfusionMatrix(\\%matrix, \'output.csv\');
makeConfusionMatrix(\\%matrix, \'output.csv\', \';\');
makeConfusionMatrix(\\%matrix, *$fh);

The hash reference must look like this :

$VAR1 = {
\'value_expected1\' => {
\'value_predicted1\' => number_of_predictions
},
\'value_expected2\' => {
\'value_predicted1\' => number_of_predictions,
\'value_predicted2\' => number_of_predictions
},
\'value_expected3\' => {
\'value_predicted3\' => number_of_predictions
}
};

The output will be in CSV. Here is an example:

,1974,1978,2002,2003,2005,TOTAL,TP,FP,FN,SENS,ACC
1974,3,1,,,2,6,3,4,3,42.86%,50.00%
1978,1,5,,,,6,5,4,1,55.56%,83.33%
2002,2,2,8,,,12,8,1,4,88.89%,66.67%
2003,1,,,7,2,10,7,0,3,100.00%,70.00%
2005,,1,1,,6,8,6,4,2,60.00%,75.00%
TOTAL,7,9,9,7,10,42,29,13,13,69.05%,69.05%

Prettified:

| | 1974 | 1978 | 2002 | 2003 | 2005 | TOTAL | TP | FP | FN | SENS | ACC |
|-------|------|------|------|------|------|-------|----|----|----|---------|--------|
| 1974 | 3 | 1 | | | 2 | 6 | 3 | 4 | 3 | 42.86% | 50.00% |
| 1978 | 1 | 5 | | | | 6 | 5 | 4 | 1 | 55.56% | 83.33% |
| 2002 | 2 | 2 | 8 | | | 12 | 8 | 1 | 4 | 88.89% | 66.67% |
| 2003 | 1 | | | 7 | 2 | 10 | 7 | 0 | 3 | 100.00% | 70.00% |
| 2005 | | 1 | 1 | | 6 | 8 | 6 | 4 | 2 | 60.00% | 75.00% |
| TOTAL | 7 | 9 | 9 | 7 | 10 | 42 | 29 | 13 | 13 | 69.05% | 69.05% |

* TP:

True Positive

* FP:

False Positive

* FN:

False Negative

* SENS

Sensitivity. Number of true positives divided by the number of
positives.

* ACC:

Accuracy

\'getConfusionMatrix($hash_ref)\'
Get the data used to compute the table above.

Example:

my %cm = getConfusionMatrix(\\%matrix);

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-A/openSUSE_Tumbleweed/noarch

Content of RPM  Provides Requires

Download
ftp.icm.edu.pl  perl-AI-ConfusionMatrix-0.010-1.47.noarch.rpm
     

Provides :
perl(AI::ConfusionMatrix)
perl-AI-ConfusionMatrix

Requires :
perl(:MODULE_COMPAT_5.40.0)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsZstd) <= 5.4.18-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.40.0/AI
/usr/lib/perl5/vendor_perl/5.40.0/AI/ConfusionMatrix.pm
/usr/share/doc/packages/perl-AI-ConfusionMatrix
/usr/share/doc/packages/perl-AI-ConfusionMatrix/Changes
/usr/share/doc/packages/perl-AI-ConfusionMatrix/README.md
/usr/share/licenses/perl-AI-ConfusionMatrix
/usr/share/licenses/perl-AI-ConfusionMatrix/LICENSE
/usr/share/man/man3/AI::ConfusionMatrix.3pm.gz

 
ICM