# US 2021/0287089 A1 · Automated and adaptive design and training of neural networks

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

- Number: US 2021/0287089 A1
- Document ID: US20210287089A1
- Status: Published application
- Kind: A1
- Application number: 17/198,841
- Filed: 2021-03-11
- Published: 2021-09-16
- Earliest claimed: 2020-03-14
- Assignees: DataRobot, Inc.
- Applicants: DataRobot, Inc.
- Inventors: Zachary Albert Mayer; Jason McGhee; Jesse Bannon; Joshua Matthew Weiner
- Web page: https://patentgrep.com/patent/US20210287089A1

## CPC

- G06N 3/08: Learning methods
- G06F 17/18: for evaluating statistical data {, e.g. average values, frequency distributions, probability functions, regression analysis (forecasting specially adapted for a specific administrative, business or logistic context G06Q10/04)}
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/0499: Feedforward networks
- G06N 3/09: Supervised learning
- G06N 3/0985: Hyperparameter optimisation; Meta-learning; Learning-to-learn
- G06N 5/01: Dynamic search techniques; Heuristics; Dynamic trees; Branch-and-bound
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods are described for developing and using neural network models. An example method of training a neural network includes: oscillating a learning rate while performing a preliminary training of a neural network; determining, based on the preliminary training, a number of training epochs to perform for a subsequent training session; and training the neural network using the determined number of training epochs. The systems and methods can be used to build neural network models that efficiently and accurately handle heterogeneous data.

## Claims

### Claim 1

A computer-implemented method of designing a neural network, the method comprising:
providing training data for a neural network;
choosing, based on (i) a type of predictive modeling problem to be solved using the neural network and (ii) a distribution of a target variable in the training data, a loss function for the neural network; and
choosing, based on the loss function, an output activation function for the neural network.

### Claim 2 (depends on 1)

The method of claim 1, wherein the type of predictive modeling problem is regression, and wherein choosing the loss function comprises: (i) choosing a Tweedie loss function when the target variable is zero-inflated; (ii) choosing a Poisson loss function when the distribution is or approximates a Poisson distribution; (iii) choosing a gamma loss function or a root mean squared log error (RMSLE) loss function when the distribution is or approximates an exponential distribution; or (iv) otherwise choosing a root mean squared error (RMSE) loss function.

### Claim 3 (depends on 1)

The method of claim 1, wherein the type of predictive modeling problem is classification, and wherein choosing the loss function comprises: (i) choosing a sparse categorical cross entropy loss function when the type of predictive modeling problem is a mutually exclusive multiclass classification problem or (ii) choosing a binary cross entropy loss function when the type of predictive modeling problem is a binary classification problem or an independent multiclass problem.

### Claim 4 (depends on 1)

The method of claim 1, wherein choosing the loss function comprises displaying at least one recommended loss function on a client device of a user.

### Claim 5 (depends on 1)

The method of claim 1, wherein choosing the output activation function comprises (i) choosing an exponential output activation function when the loss function is logarithmic or (ii) otherwise choosing a linear output activation function.

### Claim 6 (depends on 5)

The method of claim 5, wherein the loss function is logarithmic when the loss function comprises one of a Tweedie loss function, a gamma loss function, a Poisson loss function, or a root mean squared log error (RMSLE) loss function.

### Claim 7 (depends on 1)

The method of claim 1, wherein choosing the output activation function comprises displaying at least one recommended output activation function on a client device of a user.

### Claim 8 (depends on 1)

The method of claim 1, wherein the neural network comprises an input layer, at least one hidden layer, and an output layer, the method further comprising:
configuring the neural network to include a residual connection between the input layer and the output layer, the residual connection bypassing the at least one hidden layer and comprising a linear activation function.

### Claim 9 (depends on 1)

The method of claim 1, wherein the neural network comprises an output layer having an output activation function, the method further comprising:
initializing a bias for the output layer to be (i) equal to a mean of the target variable when the output activation function is linear or (ii) equal to a mean of an inverse of the output activation function.

### Claim 10 (depends on 1)

The method of claim 1, further comprising automatically scaling an output of the neural network based on a range of the target variable.

### Claim 11

A computer-implemented method of training and using a neural network, the method comprising:
providing training data for a neural network, the training data comprising a column of numerical values;
transforming the column of numerical values to obtain a column of transformed numerical values;
creating a plurality of bins for the numerical values, each bin comprising a column of identifiers indicating whether respective values from the column of numerical values belong in the bin; and
training the neural network using the column of transformed numerical values and the bins.

### Claim 12

A computer-implemented method of training a neural network, the method comprising:
providing a neural network and training data;
determining, based on a size of the training data, one or more first hyperparameters comprising at least one of a mini-batch size or a dropout rate;
determining, based on a type of predictive modeling problem to be solved using the neural network, one or more second hyperparameters comprising at least one of a learning rate, a batch normalization, a number of epochs, or an output activation function; and
training the neural network using the training data, the one or more first hyperparameters, and the one or more second hyperparameters.

### Claim 13

A computer-implemented method of training a neural network, the method comprising:
oscillating a learning rate while performing a preliminary training of a neural network;
determining, based on the preliminary training, a number of training epochs to perform for a subsequent training session; and
training the neural network using the determined number of training epochs.
