# US 2026/0065136 A1 · Classification with automated model selection, tuning, and training

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

- Number: US 2026/0065136 A1
- Document ID: US20260065136A1
- Status: Published application
- Kind: A1
- Application number: 18/823,502
- Filed: 2024-09-03
- Published: 2026-03-05
- Earliest claimed: 2024-09-03
- Applicants: Snowflake Inc.
- Inventors: Paritosh Aggarwal; Boxin Jiang; Dmytro Krasnoshtan; Abishek Sridhar; Jay S. Tayade; Artiom Zayats
- Web page: https://patentgrep.com/patent/US20260065136A1

## CPC

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

## Abstract

Embodiments of the present disclosure provide techniques for classification with automated model selection, tuning, and training. A processing device receives, from a client, a data query referencing an input data set of a database associated with a virtual warehouse. The processing device allocates an amount of memory of the virtual warehouse to be used to train a machine learning (ML) model based on the input data set and a peak memory estimate, where the peak memory estimate is based on a heuristic. The processing device trains, based on the input data set and the data query, the ML model in the virtual warehouse using the amount of memory.

## Claims

### Claim 1

A system, comprising:
a memory; and
a processing device operatively coupled to the memory, the processing device to:
receive, from a client, a data query referencing an input data set of a database associated with a virtual warehouse;
allocate an amount of memory of the virtual warehouse to be used to train a machine learning (ML) model based on the input data set and a peak memory estimate, wherein the peak memory estimate is based on a heuristic; and
train, based on the input data set and the data query, the ML model in the virtual warehouse using the amount of memory.

### Claim 2 (depends on 1)

The system of claim 1, wherein the data query is a structured query language (SQL) query, wherein to allocate the amount of memory, the processing device is to allocate the amount of memory based on the SQL query, and wherein to train the ML model, the processing device is to train the ML model based on the SQL query.

### Claim 3 (depends on 1)

The system of claim 1, wherein the ML model is a classification model trained to classify a data set.

### Claim 4 (depends on 1)

The system of claim 1, wherein the processing device is further to:
validate, based on the data query, the input data set, wherein to train the ML model, the processing device is to train the ML model based on the validated input data set.

### Claim 5 (depends on 4)

The system of claim 4, wherein to validate the input data set, the processing device is to perform a set of validation steps on the input data set, and wherein the processing device is further to:
determine that a validation step in the set of validation step has failed;
transmit, to the client, an indication of the failed validation step;
receive, from the client, an indication of a correction to the input data set based on the indication of the failed validation step; and
reperform the validation step on the corrected input data set.

### Claim 6 (depends on 4)

The system of claim 4, wherein to validate the input data set, the processing device is to validate at least one of: column types of the input data set, a size of the input data set, or an entirety of the input data set.

### Claim 7 (depends on 1)

The system of claim 1, wherein the processing device is further to:
generate the peak memory estimate based on the heuristic, wherein the heuristic comprises:
a first set of factors comprising a number of rows of the input data set,
a second set of factors comprising the number of rows of the input data set, a number of columns of the input data set, and an amount of input memory, and
a third set of factors comprising the number of rows of the input data set, the number of columns of the input data set, the amount of the input memory, and a number of classes of the input data set.

### Claim 8 (depends on 7)

The system of claim 7, wherein to generate the peak memory estimate, the processing device is to generate the peak memory estimate based on a combination of the first set of factors, the second set of factors, and the third set of factors.

### Claim 9 (depends on 1)

The system of claim 1, wherein the processing device is further to:
determine that the peak memory estimate is greater than a threshold associated with the virtual warehouse; and
identify a subset of the input data set based on the determination, wherein to train the ML model, the processing device is to train the ML model based on the subset of the input data set.

### Claim 10 (depends on 1)

The system of claim 1, wherein the processing device is further to:
featurize, based on the data query, the input data set, wherein to train the ML model, the processing device is to train the ML model based on the featurized input data set.

### Claim 11 (depends on 1)

The system of claim 1, wherein the processing device is further to:
partition, based on the data query, the input data set into first subset of the input data set and a second subset of the input data set;
train, based on the first subset of the input data set, a second ML model in the virtual warehouse;
evaluate performance of the second ML model based on the second subset of the input data set; and
transmit, to the client, an indication of the performance of the second ML model.

### Claim 12 (depends on 1)

The system of claim 1, wherein the processing device is further to:
receive, from the client, a second data query referencing a data set of the database associated with the virtual warehouse; and
assign, based on the second data query, a label to each item in the data set using the ML model.

### Claim 13

A method, comprising:
receiving, from a client, a data query referencing an input data set of a database associated with a virtual warehouse;
allocating, by a processing device, an amount of memory of the virtual warehouse to be used to train a machine learning (ML) model based on the input data set and a peak memory estimate, wherein the peak memory estimate is based on a heuristic; and
training, based on the input data set and the data query, the ML model in the virtual warehouse using the amount of memory.

### Claim 14 (depends on 13)

The method of claim 13, wherein the data query is a structured query language (SQL) query, wherein allocating the amount of memory is based on the SQL query, and wherein training the ML model is based on the SQL query.

### Claim 15 (depends on 13)

The method of claim 13, further comprising:
generating the peak memory estimate based on the heuristic, wherein the heuristic comprises:
a first set of factors comprising a number of rows of the input data set,
a second set of factors comprising the number of rows of the input data set, a number of columns of the input data set, and an amount of input memory, and
a third set of factors comprising the number of rows of the input data set, the number of columns of the input data set, the amount of the input memory, and a number of classes of the input data set.

### Claim 16 (depends on 15)

The method of claim 15, wherein generating the peak memory estimate based on the heuristic comprises generating the peak memory estimate based on a combination of the first set of factors, the second set of factors, and the third set of factors.

### Claim 17

A non-transitory computer-readable medium having instructions stored thereon which, when executed by a processing device, cause the processing device to:
receive, from a client, a data query referencing an input data set of a database associated with a virtual warehouse;
allocate, by the processing device, an amount of memory of the virtual warehouse to be used to train a machine learning (ML) model based on the input data set and a peak memory estimate, wherein the peak memory estimate is based on a heuristic; and
train, based on the input data set and the data query, the ML model in the virtual warehouse using the amount of memory.

### Claim 18 (depends on 17)

The non-transitory computer-readable medium of claim 17, wherein the data query is a structured query language (SQL) query, and wherein to allocate the amount of memory, the instructions, when executed by the processing device, cause the processing device to allocate the amount of memory based on the SQL query, and wherein to train the ML model, the instructions, when executed by the processing device, cause the processing device to train the ML model based on SQL query.

### Claim 19 (depends on 17)

The non-transitory computer-readable medium of claim 17, wherein the instructions, when executed by the processing device, cause the processing device further to:
generate the peak memory estimate based on the heuristic, wherein the heuristic comprises:
a first set of factors comprising a number of rows of the input data set,
a second set of factors comprising the number of rows of the input data set, a number of columns of the input data set, and an amount of input memory, and
a third set of factors comprising the number of rows of the input data set, the number of columns of the input data set, the amount of the input memory, and a number of classes of the input data set.

### Claim 20 (depends on 19)

The non-transitory computer-readable medium of claim 19, wherein to generate the peak memory estimate based on the heuristic, the instructions, when executed by the processing device, cause the processing device to generate the peak memory estimate based on a combination of the first set of factors, the second set of factors, and the third set of factors.
