Confusion Matrix Library

publish-master

⚠️ This library only works in angular applications! ⚠️

If you find out any bug, issue or you just want to give suggestions, please, submit it here

✌️ Introduction

This library aims to help programers integrate confusion matrix tools in their websites, giving a boost of productivity to all data sciences and data engineers.

👨‍🏫 Examples

In the library official website, there is a confusion matrix editor which uses this library there.

Also, here you can check the official website source code and you can find the editor component which implements the library here.

🔨 How to install

In the command line, run the following command npm install @fullexpression/confusion-matrix.

You can find all npm package versions here.

Important Note: This library has dependencies to @fullexpression/confusion-matrix-stats, html2canvas and angular2-draggable. Make sure these packages are install as well (you can check on node_modules/@fullexpression/confusion-matrix-stats, node_modules/html2canvas and node_modules/@fullexpression/angular2-draggable).

👩‍💻 How to use it

  1. Import the ConfusionMatrixModule angular module in your application:
@NgModule({
    declarations: [...],
    imports: [...],
    providers: [...],
    bootstrap: [...]
})
export class YourApplicationModule { }
  1. Create a new ConfusionMatrix object:
import { ConfusionMatrix } from '@fullexpression/confusion-matrix-stats';

@Component(...)
export class MyComponent {
    confusionMatrix = new ConfusionMatrix({
        labels: ["Happiness", "Sadness"], 
        matrix: [[50, 2],
                [8, 50]]
    });
}
  1. Import ConfusionMatrix component to your html and pass the confusion confusionMatrix object created in the step before:
<confusion-matrix [confusionMatrix]="confusionMatrix"></confusion-matrix>

🗂 Documentation

The documentation is generated automatically by compodoc and can be found here.

Nevertheless:

  1. For basic confusion matrix manipulation and calculations, check out the api here.
  2. To setup and show confusion matrix in your website, check out the api here.

result-matching ""

    No results matching ""