Data Science Agent: Sample Prompts and Outputs

Here are some sample prompts and outputs related to various machine learning domains on which you may have conversations with Data Science Agent.

1. Data Discovery

Discovery is semantic and goal-driven. It works best and more efficiently when the goal and domain are stated explicitly.

You can ask the agent to find data objects relevant to a business topic or analysis goal. For example, marketing response, churn, fraud, product demand. It can also help you obtain a general overview of all available objects.

Example 7-1 Discover available tables, views, and models

Sample prompts

Outputs

Here are some expected outputs for the above prompts:

2. Inspect Specific Object

You can ask for details about a specific table, view, or mining model.

Example 7-2 Ask questions related to specific tables, views and mining models

Sample prompts

Outputs

Here are some expected outputs for the above prompts:

3. Exploratory Statistical Analysis

For exploratory statistical analysis, you can ask the agent for both single-variable analysis and relationship analysis (pair).

Example 7-3 Single-variable analysis

You can request distribution and qualitative summaries for one or more individual columns.

Sample prompts

Outputs

Here are some expected outputs for the above prompts:

Example 7-4 Relationship analysis

You can request statistical analysis of the relationship between two variables, such as predictors and outcomes. Relationship analysis is performed pairwise. This means each predictor is examined individually against one outcome. Data Science Agent can scan many predictors against a single outcome; however, this process does not replace multivariate modeling.

Note: Relationship analyses are most reliable when performed on row-level (fine-grained) datasets, rather than on heavily aggregated data.

Sample prompts

Outputs

Here are some expected outputs for the above prompts:

4. View-Based Data Transformation and Preparation

The agent can transform and prepare data for modeling by creating new views. This is how it joins tables, filters populations, and derives new features from existing attributes. Here are some common view-building tasks:

The agent does not run arbitrary adhoc SQL queries and return full result sets for interactive browsing. Views are the primary mechanism for shaping data.

The agent does not directly modify base tables.

Example 7-5 View-Based Data Transformation and Preparation

Sample prompts

Outputs

Here are some expected outputs for the above prompts:

5. Feature Importance and Feature Selection

Ask which variables matter most for predicting a specific target and optionally reduce the dataset to most important features.

Example 7-6 Feature Importance and Feature Selection

Sample Prompts

Outputs

Here are some expected outputs for the above prompts:

6. Dataset Splitting for Training and Evaluation

Use the agent to split dataset as database views.

Example 7-7 Dataset Splitting for Training and Evaluation

Sample Prompts

Outputs

Here are some expected outputs for the above prompts:

7. Model Training

Use Data Science Agent for model training, automated model selection (supervised model search), and model building (unsupervised learning).

Example 7-8 Supervised learning (classification and regression)

Here are some prompts to use Data Science Agent to train models to predict a categorical outcome (classification) or a numeric value (regression).

Sample Prompts

Outputs

Here are some expected outputs for the above prompts:

Example 7-9 Automated model selection (supervised model search)

You can ask the agent to evaluate multiple supervised algorithms and pick the best model based on a metric. Note: Automated model selection requires a validation set for comparing models against the selected metric.

After automated model selection, the winning model is retrained on combined train and validation dataset. Therefore, the final model is not the same object as the one that scored best during comparison.

Sample Prompts

Outputs

Here are some expected outputs for the above prompts:

Example 7-10 Unsupervised learning (Clustering and Anomaly Detection)

You can use Data Science Agent to build models without a labeled target.

Note: For unsupervised models, only model build is supported currently. Additional scoring capabilities and interpretations for clustering will be available soon.

Sample Prompts

Outputs

Here are some expected outputs for the above prompts:

8. Compare Models and Select a Winner

When multiple models exist, either created by the agent or otherwise, you can request the agent for a comparison based on a common validation dataset.

Example 7-11 Model comparison

Sample Prompts

Outputs

Here are some expected outputs for the above prompts:

9. Evaluate Models

Use Data Science Agent for an unbiased evaluation on held-out test data. Note: Evaluation on held-out test set is intended as the most reliable estimate of generalization performance of a trained model.

Example 7-12 Model Evaluation

Sample Prompts

Outputs

Here are some expected outputs for the above prompts:

10. Inference and Scoring

Once a model exists, you can request scoring on new records. Inference requires:

Example 7-13 Inference and Scoring

Sample Prompts

Outputs

Here are some expected outputs for the above prompts:

You can also use the agent in interactive mode for suggestions and interpretations as well.

Examples: