# US 2021/0286703 A1 · Model comparison with unknown metric importance

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

- Number: US 2021/0286703 A1
- Document ID: US20210286703A1
- Status: Published application
- Kind: A1
- Application number: 16/816,344
- Filed: 2020-03-12
- Published: 2021-09-16
- Earliest claimed: 2020-03-12
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: LUKASZ G. CMIELOWSKI; WOJCIECH SOBALA; RAFAL BIGAJ; MAKSYMILIAN ERAZMUS
- Web page: https://patentgrep.com/patent/US20210286703A1

## CPC

- G06F 11/3608: {using formal methods, e.g. model checking, abstract interpretation (theorem proving G06N5/013)}
- G06F 11/3616: {using software metrics}
- G06F 11/368: {for test version control, e.g. updating test cases to a new software version}
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06N 5/04: Inference or reasoning models
- G06N 20/00: Machine learning
- G06N 20/10: using kernel methods, e.g. support vector machines [SVM]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method includes generating first metric data by executing a test suite on a first version of a software model; generating second metric data by executing the test suite on a second version of the software model; generating first and second version principal components that represent the first and second metric data by executing a dimension reduction technique on the first and second metric data; determining at least one control limit based on at least one of the first version principal components; determining a mean value of one of the second version principal components; determining whether the second version of the software model performs within at least one control limit by comparing the mean value to the at least one control limit; and notifying a user of the results of the determining whether the second version of the software model performs within the at least one control limit.

## Claims

### Claim 1

A method, comprising:
generating, by a computing device, first metric data by executing a test suite on a first version of a software model;
generating, by the computing device, second metric data by executing the test suite on a second version of the software model;
generating, by the computing device, first version principal components that represent the first metric data by executing a dimension reduction technique on the first metric data;
generating, by the computing device, second version principal components that represent the second metric data by executing the dimension reduction technique on the second metric data, an importance of each metric datum of the second metric data being unknown;
determining, by the computing device, at least one control limit based on at least one of the first version principal components;
determining, by the computing device, a mean value of one of the second version principal components;
determining, by the computing device, whether the second version of the software model performs within the at least one control limit by comparing the mean value to the at least one control limit; and
notifying, by the computer device, a user of the results of the determining whether the second version of the software model performs within the at least one control limit.

### Claim 2 (depends on 1)

The method of claim 1, wherein the dimension reduction technique is principal component analysis (PCA).

### Claim 3 (depends on 2)

The method of claim 2, wherein the one of the second version principal components is the first principal component of the second version principal components in the PCA.

### Claim 4 (depends on 3)

The method of claim 3, wherein the test suite obtains, by the computing device, values for a plurality of metrics.

### Claim 5 (depends on 4)

The method of claim 4, wherein the plurality of metrics comprises accuracy, precision, and recall.

### Claim 6 (depends on 4)

The method of claim 4, further comprising determining, by the computing device, a variance value of the one of the second version principal components, the variance value indicating a level of similarity between the one of the second version principal components and the plurality of metrics.

### Claim 7 (depends on 3)

The method of claim 3, wherein the executing the test suite on the first version of the software model comprises producing the first metric data by running the first version of the software model using test data, and
the executing the test suite on the second version of the software model comprises producing the second metric data by running the second version of the software model using the test data.

### Claim 8 (depends on 7)

The method of claim 7, wherein the first version of the software model is a currently used version of the software model, and
the second version of the software model is a new version of the software model.

### Claim 9 (depends on 4)

The method of claim 4, wherein the at least one control limit comprises an upper control limit and a lower control limit.

### Claim 10 (depends on 9)

The method of claim 9, wherein the computing device determines that the second version of the software model performs within the at least one control limit as a result of the mean value being between the upper control limit and the lower control limit.

### Claim 11

(canceled)

### Claim 12

A computer program product comprising one or more computer readable storage media having program instructions collectively stored on the one or more computer readable storage media, the program instructions executable to:
generate second metric data by executing a test suite on a second version of a software model;
generate first version principal components that represent first metric data by executing a dimension reduction technique on first metric data, the first metric data corresponding to a first version of the software model;
generate second version principal components that represent the second metric data by executing the dimension reduction technique on the second metric data;
determine at least one control limit based on at least one of the first version principal components;
determine a mean value of one of the second version principal components; and
determine whether the second version of the software model performs within the at least one control limit by comparing the mean value to the at least one control limit.

### Claim 13 (depends on 12)

The computer program product of claim 12, wherein the program instructions are further executable to generate the first metric data by executing the test suite on the first version of the software model.

### Claim 14 (depends on 12)

The computer program product of claim 12, wherein the program instructions are further executable to receive the first metric data.

### Claim 15 (depends on 12)

The computer program product of claim 12, wherein the dimension reduction technique is principal component analysis (PCA).

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the one of the second version principal components is the first principal component of the second version principal components in the PCA.

### Claim 17

A system comprising:
a processor, one or more computer readable storage media, and program instructions collectively stored on the one or more computer readable storage media, the program instructions executable to:
generate second metric data by executing a test suite on a second version of a software model;
generate first version principal components that represent first metric data by executing a dimension reduction technique on the first metric data, the first metric data corresponding to a first version of the software model;
generate second version principal components that represent the second metric data by executing the dimension reduction technique on the second metric data;
determine at least one control limit based on at least one of the first version principal components; and
determine a mean value of one of the second version principal components.

### Claim 18 (depends on 17)

The system of claim 17, further comprising program instructions executable to determine whether the second version of the software model performs within at the least one control limit by comparing the mean value to the at least one control limit.

### Claim 19 (depends on 18)

The system of claim 18, wherein the dimension reduction technique is principal component analysis (PCA), and the one of the second version principal components is the first principal component of the second version principal components in the PCA.

### Claim 20 (depends on 17)

The system of claim 17, further comprising program instructions executable to generate the first metric data by executing the test suite on the first version of the software model.

### Claim 21 (depends on 1)

The method of claim 1, further comprising producing, through further processing using PCA, a variance array that shows an importance of each of a plurality of principal components of the second version principal components,
wherein a dimension of the variance array is a number of the plurality of principal components of the second version principal components, and
a value of an element of the variance array indicates what percentage of the second metric data is explained by the corresponding principal component of the plurality of principal components.
