File: profile.py

package info (click to toggle)
python-pycm 4.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,044 kB
  • sloc: python: 5,361; sh: 8; makefile: 6
file content (12 lines) | stat: -rw-r--r-- 296 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
# -*- coding: utf-8 -*-
"""Profile file."""
from pycm import *
import numpy as np

np.random.seed(123)

x1 = np.random.randint(low=0, high=400, size=2000000)
x2 = np.random.randint(low=0, high=400, size=2000000)

cm = ConfusionMatrix(x1, x2)
cp = Compare({"cm" + str(i): cm for i in range(100)})