# US 2017/0255878 A1 · Space efficient random forests implementation utilizing automata processors

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

- Number: US 2017/0255878 A1
- Document ID: US20170255878A1
- Status: Published application
- Kind: A1
- Application number: 15/214,188
- Filed: 2016-07-19
- Published: 2017-09-07
- Earliest claimed: 2016-03-07
- Assignees: Micron Technology, Inc.
- Applicants: Micron Technology, Inc.
- Inventors: Yao Fu; Paul Glendenning; Tommy Tracy, II; Eric Jonas
- Web page: https://patentgrep.com/patent/US20170255878A1

## CPC

- G06N 20/20: Ensemble learning
- G06N 5/01: Dynamic search techniques; Heuristics; Dynamic trees; Branch-and-bound
- G06N 20/00: Machine learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

An apparatus includes a processing resource configured to receive a feature vector of a data stream. The feature vector includes a set of feature values. The processing resource is further configured to calculate a set of feature labels based at least in part on the set of feature values to generate a label vector, provide the label vector to another processing resource, and to receive a plurality of classifications corresponding to each feature label of the label vector from the other processing resource. The plurality of classifications are generated based at least in part on a respective range of feature values of the set of feature values. The processing resource is configured to then combine the plurality of classifications to generate a final classification of the data stream.

## Claims

### Claim 1

An apparatus, comprising:
a processing resource configured to:
receive a feature vector of a data stream, wherein the feature vector comprises a set of feature values;
calculate a set of feature labels based at least in part on the set of feature values to generate a label vector;
provide the label vector to another processing resource;
receive a respective classification for each respective feature label of the label vector from the other processing resource, wherein the plurality of classifications are generated based at least in part on a respective range of feature values of the set of feature values; and
combine the plurality of classifications to generate a final classification of the data stream.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the processing resource is configured to compute a Random Forest model based at least in part on the range of feature values.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the processing resource is configured to combine the plurality of classifications to generate the final classification of the data stream by generating a final classification of the data stream based at least in part on a majority vote.

### Claim 4

A method of computing a Random Forest model, comprising:
receiving a feature vector of a data stream at a processing resource, wherein the feature vector comprises a set of feature values;
calculating a set of feature labels based at least in part on the set of feature values to generate a label vector;
providing the label vector to another processing resource;
receiving a plurality of classifications corresponding to each feature label of the label vector from the other processing resource, wherein the plurality of classifications are generated based at least in part on a respective range of feature values of the set of feature values; and
combining the plurality of classifications to generate a final classification of the data stream.

### Claim 5 (depends on 4)

The method of claim 4, comprising computing a Random Forest model based at least in part on the range of feature values.

### Claim 6 (depends on 4)

The method of claim 4, wherein combining the plurality of classifications to generate the final classification of the data stream comprises generating a final classification of the data stream based at least in part on a majority vote.

### Claim 7

A non-transitory computer-readable medium having computer executable code stored thereon, the code comprising instructions to:
cause a processing resource to receive a feature vector of a data stream, wherein the feature vector comprises a set of feature values;
cause the processing resource to calculate a set of feature labels based at least in part on the set of feature values to generate a label vector;
cause the processing resource to provide the label vector to another processing resource;
cause the processing resource to receive a plurality of classifications corresponding to each feature label of the label vector generated based at least in part on a respective range of feature values of the set of feature values; and
cause the processing resource to combine the plurality of classifications to generate a final classification of the data stream.

### Claim 8 (depends on 7)

The non-transitory computer-readable medium of claim 7, wherein the code comprises instructions to cause the processing resource to compute a Random Forest model based at least in part on the range of feature values.

### Claim 9 (depends on 7)

The non-transitory computer-readable medium of claim 7, wherein the code comprises instructions to cause the processing resource to combine the plurality of classifications to generate the final classification of the data stream comprises generating a final classification of the data stream based at least in part on a majority vote.

### Claim 10

An apparatus, comprising:
a processing resource configured to:
compute a Random Forest model to be executed on another processing resource, wherein the Random Forest model comprises a plurality of decision trees;
convert the plurality of decision trees of the Random Forest model, wherein converting the plurality of decision trees comprises converting each of a plurality of path-to-nodes of the plurality of decision trees into a plurality of chains of decision trees based at least in part on a range of feature values; and
provide the converted Random Forest model to the other processing resource to be executed by the other processing resource.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein the processing resource is configured to compute the range of feature values by computing a range of values between at least two segments in a decision tree of a particular feature.

### Claim 12 (depends on 10)

The apparatus of claim 10, wherein the processing resource is configured to reduce a total number of state transition elements (STEs) utilized by the other processing resource by representing each of a plurality of features based on a single STE.

### Claim 13 (depends on 10)

The apparatus of claim 10, wherein the processing resource is configured to reorder the plurality of chains of decision trees to align the plurality of chains of decision trees into numerical order.

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein the plurality of chains of decision trees in the numerical order comprises a plurality of “Don't Care” decision trees.

### Claim 15 (depends on 10)

The apparatus of claim 10, wherein the other processing resource comprises an automata processor.

### Claim 16 (depends on 10)

The apparatus of claim 10, comprising a compiler configured to convert the plurality of decision trees of the Random Forest model into a plurality of automata to be executed on the other processing resource such that each one of the plurality of decision trees corresponds to a respective one or a respective plurality of state transition elements (STEs) of the other processing resource.

### Claim 17

A method, comprising:
computing, via a first processing resource, a Random Forest model to be executed on a second processing resource, wherein the Random Forest model comprises a plurality of decision trees;
converting, via the first processing resource, the plurality of decision trees of the Random Forest model, wherein converting the plurality of decision trees comprises converting each of a plurality of path-to-nodes of the plurality of decision trees into a plurality of chains of decision trees based at least in part on a range of feature values; and
providing, via the first processing resource, the converted Random Forest model to the second processing resource to be executed by the second processing resource.

### Claim 18 (depends on 17)

The method of claim 17, wherein converting each of the plurality of path-to-nodes of the plurality of decision trees into the plurality of chains of decision trees comprises converting each of the plurality of path-to-nodes based at least in part on a range of feature values stored in a look-up table (LUT) of the first processing resource.

### Claim 19 (depends on 17)

The method of claim 17, comprising reordering the plurality of chains of decision trees to align the plurality of chains of decision trees into numerical order.

### Claim 20 (depends on 19)

The method of claim 19, wherein reordering the plurality of chains of decision trees comprises reordering a plurality of chains of decision trees comprising a plurality of feature decision trees and a plurality of “Don't Care” term decision trees.

### Claim 21

An apparatus, comprising:
an automata processor comprising a plurality of state transition elements (STEs) configured to form a plurality of decision trees of a Random Forest model implemented via the automata processor, wherein the automata processor is configured to calculate each decision of the Random Forest model based on a range of feature values.

### Claim 22 (depends on 21)

The apparatus of claim 21, wherein the plurality of STEs comprises a plurality of feature STEs and a plurality of “Don't Care” term STEs.

### Claim 23 (depends on 21)

The apparatus of claim 21, wherein each of the plurality of STEs is configured to calculate a decision based on a label vector of respective ranges of feature values.

### Claim 24 (depends on 21)

The apparatus of claim 21, wherein the plurality of decision trees comprises a plurality of chains of decision trees.

### Claim 25 (depends on 24)

The apparatus of claim 24, wherein the plurality of chains of decision trees are configured to align into a sequential order.

### Claim 26

A method of computing a Random Forest model, comprising:
computing one or more decisions in a Random Forest model comprising a plurality of decision trees executed via a plurality of state transition elements (STEs) of an automata processor, wherein each of the one or more decisions is computed based on a range of feature values.

### Claim 27 (depends on 26)

The method of claim 26, comprising receiving a label vector corresponding to the range of feature values from a processing resource, wherein the automata processor is configured to utilize the label vector to compute the one or more decisions in the Random Forest model.

### Claim 28 (depends on 27)

The method of claim 27, wherein computing the one or more decisions in the Random Forest model comprises generating a plurality of classifications corresponding to each of a plurality of feature labels of the label vector.

### Claim 29 (depends on 28)

The method of claim 28, comprising providing the plurality of classifications to the processing resource.
