---
schema_version: "1"
id: 7372d922fbb2ef7448eac1eb1d13cc49144f0c0fd68b2e818654b7ff9a7de941
title: Datasets and Models
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/einstein-vision-language/einstein/guides/Learning-Map/datasets-and-models.md
canonical_url: https://developer.salesforce.com/docs/analytics/einstein-vision-language/guide/datasets-and-models.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: c27f8473aa92ccc76ef08a8777974bb589d5fd30b7d19822854cac94ac0a0ef8
products:
  - Einstein Vision and Language
  - Einstein Vision and Language Repo
---
# Datasets and Models

A dataset contains the source text data. A model is created after a dataset is trained. The model is the construct that returns predictions.

Here are some key points about datasets and models:

- A dataset is the structure that contains your data, whether that data.

- The training process uses the dataset to create a model. You train a dataset multiple times to create multiple models. So a single dataset can create many models.

- The relationship between a dataset and a model is complete after the model is created. After a model is created, the model doesn’t reference the source dataset again unless you retrain the dataset.

- You use APIs to edit a dataset. There’s no visual way to edit a dataset. If you have new data that you want to include in a model, you call the API to create a new dataset.

## Data Collection Tips

- For Einstein Language, target 200–500 examples per dataset label.

## Training vs. Retraining a Dataset

See [Dataset Training and Retraining](https://developer.salesforce.com/docs/analytics/einstein-vision-language/guide/dataset-training-and-retraining.md) for more information on when to train a dataset vs. retrain a dataset.

## Training Data and Test Data

When you train or retrain a dataset, the training process sets aside some of the training data to test the model for accuracy.

- Training data—Examples used by the training process to create the model.
- Test data—Examples set aside by the training process to test the model accuracy.
- Einstein Language uses 80% of the data to create the model, and 20% is used to test the model’s accuracy.

You can change this ratio, also called the split, by using the `trainSplitRatio` parameter.

You specify the amount of training and test data, but the actual data that the training process holds out for testing is randomly selected. This means you can see differences in models and model metrics even when those models are created from the same dataset.

## Resources

- [Train a Dataset (Language)](/docs/analytics/einstein-vision-language/references)
- [Retrain a Dataset (Language)](/docs/analytics/einstein-vision-language/references)
