From 6defbec3768abca67ae2063b3595e775d366430b Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Mon, 1 Jan 2024 01:17:03 +0330 Subject: [PATCH] fix : minor import bug in plot_error_test.py fixed --- Test/plot_error_test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Test/plot_error_test.py b/Test/plot_error_test.py index b14fcecd..590d7d94 100644 --- a/Test/plot_error_test.py +++ b/Test/plot_error_test.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- """ >>> from pycm import * +>>> import numpy as np >>> y_act = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2] >>> y_pre = [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 2, 0, 1, 2, 2, 2, 2] >>> cm = ConfusionMatrix(y_act, y_pre)