⚠️ 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
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.
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.
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
).
ConfusionMatrixModule
angular module in your application:@NgModule({
declarations: [...],
imports: [...],
providers: [...],
bootstrap: [...]
})
export class YourApplicationModule { }
ConfusionMatrix
object:import { ConfusionMatrix } from '@fullexpression/confusion-matrix-stats';
@Component(...)
export class MyComponent {
confusionMatrix = new ConfusionMatrix({
labels: ["Happiness", "Sadness"],
matrix: [[50, 2],
[8, 50]]
});
}
ConfusionMatrix
component to your html and pass the confusion confusionMatrix
object created in the step before:<confusion-matrix [confusionMatrix]="confusionMatrix"></confusion-matrix>
The documentation is generated automatically by compodoc and can be found here.
Nevertheless: