# US 2021/0287115 A1 · Decomposed machine learning model evaluation system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0287115 A1
- Document ID: US20210287115A1
- Status: Published application
- Kind: A1
- Application number: 16/818,628
- Filed: 2020-03-13
- Published: 2021-09-16
- Earliest claimed: 2020-03-13
- Assignees: Cisco Technology, Inc.
- Applicants: Cisco Technology, Inc.
- Inventors: Bronwyn Lewisia Woods; Stefano Meschiari
- Web page: https://patentgrep.com/patent/US20210287115A1

## CPC

- G06N 20/00: Machine learning
- G06N 5/04: Inference or reasoning models
- H04L 41/147: for predicting network behaviour
- H04L 41/149: for prediction of maintenance
- H04L 41/5019: Ensuring fulfilment of SLA
- H04L 43/0888: Throughput
- H04L 43/50: Testing arrangements
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

In one embodiment, a machine learning model evaluation system may define standardized, extensible class hierarchies for evaluating performance of a given machine learning model. The class hierarchies may include a plurality of target classes that formalize an expected output of the given machine learning model based on a given dataset, a plurality of output classes that formalize an actual output of the given machine learning model based on the given dataset, a plurality of metric classes that formalize a comparison of the expected output of the given machine learning model with the actual output of the given machine learning model, and a plurality of datasets. When a machine learning model is received for evaluation, the system may identify a target class, an output class, and a metric class that are applicable to the machine learning model. The system may also retrieve a dataset applicable to the machine learning model.

## Claims

### Claim 1

A method comprising:
defining, by a machine learning model evaluation system, standardized, extensible class hierarchies for evaluating performance of a given machine learning model, wherein the standardized, extensible class hierarchies include:
a.) a plurality of target classes, each of which formalizing an expected output of the given machine learning model based on a given dataset,
b.) a plurality of output classes, each of which formalizing an actual output of the given machine learning model based on the given dataset,
c.) a plurality of metric classes, each of which formalizing a comparison of the expected output of the given machine learning model with the actual output of the given machine learning model, and
d.) a plurality of datasets, each of which including training data for training the given machine learning model and testing data for testing the given machine learning model;
receiving, at the machine learning model evaluation system, a machine learning model;
identifying, by the machine learning model evaluation system, a target class applicable to the machine learning model among the plurality of target classes, an output class applicable to the machine learning model among the plurality of output classes, and a metric class applicable to the machine learning model among the plurality of metric classes;
retrieving, by the machine learning model evaluation system, a dataset among the plurality of datasets applicable to the machine learning model;
determining, by the machine learning model evaluation system, an actual output of the machine learning model based on the identified output class;
determining, by the machine learning model evaluation system, an expected output of the machine learning model based on the identified target class; and
computing, by the machine learning model evaluation system, one or more metrics of the machine learning model based on the identified metric class using the actual and expected outputs of the machine learning model as inputs.

### Claim 2 (depends on 1)

A method as in claim 1, further comprising:
defining an evaluation layer, which includes the retrieved dataset, the identified target class, output class, and metric class, and a modeling logic layer, which includes the machine learning model, wherein the evaluation layer and the modeling logic layer are connected to each other via an application programming interface (API).

### Claim 3 (depends on 2)

A method as in claim 2, further comprising:
sharing, by the machine learning model evaluation system, the evaluation layer such that the retrieved dataset, the identified target class, the identified output class, and the identified metric class are accessible to a plurality of users during evaluation of the machine learning model.

### Claim 4 (depends on 3)

A method as in claim 3, further comprising:
restricting, by the machine learning model evaluation system, the evaluation layer such that the retrieved dataset, the identified target class, the identified output class, and the identified metric class are unalterable by the plurality of users during evaluation of the machine learning model.

### Claim 5 (depends on 1)

A method as in claim 1, further comprising:
executing, by the machine learning model evaluation system, the identified output class to determine the actual output of the machine learning model;
executing, by the machine learning model evaluation system, the identified target class to determine the expected output of the machine learning model; and
executing, by the machine learning model evaluation system, the identified metric class to compute the one or more metrics of the machine learning model using the actual and expected outputs of the machine learning model as inputs.

### Claim 6 (depends on 1)

A method as in claim 1, further comprising, when the machine learning model is received for a subsequent evaluation:
automatically retrieving, by the machine learning model evaluation system, the identified target class, the identified output class, the identified metric class, and the retrieved dataset for the subsequent evaluation of the machine learning model.

### Claim 7 (depends on 1)

A method as in claim 1, further comprising:
generating, by the machine learning model evaluation system, metadata linking the machine learning model to each of the retrieved dataset, the identified target class, the identified output class, and the identified metric class.

### Claim 8 (depends on 1)

A method as in claim 1, wherein the dataset includes exactly one set of the training data and a plurality of sets of the testing data.

### Claim 9 (depends on 1)

A method as in claim 1, wherein the plurality of target classes are configured to transform the testing data into one or more prediction targets.

### Claim 10 (depends on 1)

A method as in claim 1, wherein the plurality of output classes are configured to verify whether or not the actual output of the machine learning model satisfies one or more requirements for a type of output associated with the machine learning model.

### Claim 11 (depends on 1)

A method as in claim 1, wherein, when the machine learning model evaluation system has previously evaluated the machine learning model, the retrieving of the dataset comprises:
retrieving, by the machine learning model evaluation system, a dataset used in the previous evaluation of the machine learning model.

### Claim 12 (depends on 1)

A method as in claim 1, wherein, when the machine learning model evaluation system has not previously evaluated the machine learning model, the retrieving of the dataset comprises:
creating, by the machine learning model evaluation system, a new dataset by identifying data in a master dataset that is applicable to the machine learning model, wherein the new dataset is a subset of the master dataset.

### Claim 13 (depends on 1)

A method as in claim 1, further comprising:
generating, by a dashboard of the machine learning model evaluation system, one or more visualizations characterizing the one or more metrics of the machine learning model.

### Claim 14 (depends on 1)

A method as in claim 1, wherein the retrieving of the dataset comprises:
identifying, by the machine learning model evaluation system, data in a master dataset that is applicable to the machine learning model, wherein the retrieved dataset is a subset of the master dataset.

### Claim 15 (depends on 1)

A method as in claim 1, wherein the plurality of target classes, the plurality of output classes, and the plurality of metric classes are implemented as extensible Python classes.

### Claim 16

An apparatus, comprising:
one or more network interfaces to communicate with a network;
a processor of a machine learning model evaluation system coupled to the network interfaces and configured to execute one or more processes; and
a memory configured to store a process executable by the processor, wherein the process, when executed, is configured to:
define standardized, extensible class hierarchies for evaluating performance of a given machine learning model, wherein the standardized, extensible class hierarchies include:
a.) a plurality of target classes, each of which formalizing an expected output of the given machine learning model based on a given dataset,
b.) a plurality of output classes, each of which formalizing an actual output of the given machine learning model based on the given dataset,
c.) a plurality of metric classes, each of which formalizing a comparison of the expected output of the given machine learning model with the actual output of the given machine learning model, and
d.) a plurality of datasets, each of which including training data for training the given machine learning model and testing data for testing the given machine learning model;
receive a machine learning model for evaluation;
identify a target class applicable to the machine learning model among the plurality of target classes, an output class applicable to the machine learning model among the plurality of output classes, and a metric class applicable to the machine learning model among the plurality of metric classes;
retrieve a dataset among the plurality of datasets applicable to the machine learning model;
determine an actual output of the machine learning model based on the identified output class;
determine an expected output of the machine learning model based on the identified target class; and
compute one or more metrics of the machine learning model based on the identified metric class using the actual and expected outputs of the machine learning model as inputs.

### Claim 17 (depends on 16)

The apparatus as in claim 16, wherein the process, when executed, is further configured to:
define an evaluation layer, which includes the retrieved dataset, the identified target class, the identified output class, and the identified metric class, and a modeling logic layer, which includes the machine learning model, wherein the evaluation layer and the modeling logic layer are connected to each other via an application programming interface (API);
share the evaluation layer such that the retrieved dataset, the identified target class, the identified output class, and the identified metric class are accessible to a plurality of users during evaluation of the machine learning model; and
restrict the evaluation layer such that the retrieved dataset, the identified target class, the identified output class, and the identified metric class are unalterable by the plurality of users during evaluation of the machine learning model.

### Claim 18 (depends on 16)

The apparatus as in claim 16, wherein the process, when executed, is further configured to:
execute the identified output class to determine the actual output of the machine learning model;
execute the identified target class to determine the expected output of the machine learning model; and
execute the identified metric class to compute the one or more metrics of the machine learning model using the actual and expected outputs of the machine learning model as inputs.

### Claim 19 (depends on 16)

The apparatus as in claim 16, wherein the process, when executed, is further configured to:
automatically retrieve the identified target class, the identified output class, the identified metric class, and the retrieved dataset when the machine learning model is received for a subsequent evaluation.

### Claim 20

A tangible, non-transitory, computer-readable medium having computer-executable instructions stored thereon that, when executed by a processor on a computer, cause the computer to perform a method comprising:
defining standardized, extensible class hierarchies for evaluating performance of a given machine learning model, wherein the standardized, extensible class hierarchies include:
a.) a plurality of target classes, each of which formalizing an expected output of the given machine learning model based on a given dataset,
b.) a plurality of output classes, each of which formalizing an actual output of the given machine learning model based on the given dataset,
c.) a plurality of metric classes, each of which formalizing a comparison of the expected output of the given machine learning model with the actual output of the given machine learning model, and
d.) a plurality of datasets, each of which including training data for training the given machine learning model and testing data for testing the given machine learning model;
receiving a machine learning model for evaluation;
identifying a target class applicable to the machine learning model among the plurality of target classes, an output class applicable to the machine learning model among the plurality of output classes, and a metric class applicable to the machine learning model among the plurality of metric classes;
retrieving a dataset among the plurality of datasets applicable to the machine learning model;
determining an actual output of the machine learning model based on the identified output class;
determining an expected output of the machine learning model based on the identified target class; and
computing one or more metrics of the machine learning model based on the identified metric class using the actual and expected outputs of the machine learning model as inputs.
