---
title: AI_PREDICT_INSUFFICIENT_TRAINING_DATA error condition
description: Documentation for the AI\_PREDICT\_INSUFFICIENT\_TRAINING\_DATA error condition on Databricks
canonical_url: https://docs.databricks.com/aws/en/error-messages/ai-predict-insufficient-training-data-error-class
---

# AI\_PREDICT\_INSUFFICIENT\_TRAINING\_DATA error condition

[SQLSTATE: 22023](https://docs.databricks.com/aws/en/error-messages/sqlstates.md#class-22-data-exception)

The function `<funcName>` does not have adequate training data to fit a model.

## CALIBRATION\_SET\_TOO\_SMALL

The calibration set has `<numRows>` rows, which is too small to produce a prediction interval at the requested confidence level.

## SINGLE\_CLASS\_LABEL

The target column `<targetColumn>` has only a single distinct class label; at least two are required to train a classifier.

## TOO\_FEW\_ROWS

The input has `<numRows>` usable training rows, but at least `<minRows>` are required.
