> For the complete documentation index, see [llms.txt](https://docs.graphite-note.com/graphite-note-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.graphite-note.com/graphite-note-documentation/demo-datasets/demo-datasets/ads.md).

# Ads

Create a Regression model on Demo Ads dataset

1\. If you want to use Graphite Note demo datasets click "Import DEMO Dataset".

<figure><img src="https://3727300098-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgnR78y9L7FDWeb4jdvdW%2Fuploads%2FwYioZyEwAzcpYekISCkr%2FGraphite-note%20Workflow%20-%20Step%202.png?alt=media&amp;token=dcd5f80b-0ba1-45b5-aa14-3fec5407c232" alt="" width="563"><figcaption></figcaption></figure>

2\. Select the dataset you want to use to create a machine learning model. In this case we will select "Ads" dataset to create a Regression Analysis on marketing ads data.

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-04-29/a8975257-095b-409b-a177-58a1760470e8/ascreenshot.jpeg?tl_px=0,0&#x26;br_px=859,480&#x26;force_format=png&#x26;width=860&#x26;wat_scale=76&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/EAB308_standard.png&#x26;wat_pad=36,200" alt="" width="560">

3\. Once selected, the demo dataset will load directly to your account. The dataset view will automatically open.

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-04-29/a902a772-917c-46a3-b14e-a44699457592/ascreenshot.jpeg?tl_px=0,0&#x26;br_px=1146,640&#x26;force_format=png&#x26;width=1120.0&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/EAB308_standard.png&#x26;wat_pad=412,174" alt="" width="560">

4\. Adjust your dataset options on the Settings tab. Click Columns tab to view list of available columns with their corresponding data types. Explore dataset details on Summary tab.

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-04-29/26bbba22-b210-4cad-ac99-b14d8b3ebac2/ascreenshot.jpeg?tl_px=113,0&#x26;br_px=973,480&#x26;force_format=png&#x26;width=860&#x26;wat_scale=76&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/EAB308_standard.png&#x26;wat_pad=402,196" alt="" width="560">

5\. To create a new model in the Graphite Note main menu click on "Models".

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-04-29/a6c71072-741d-4517-8250-e0fe63cf0a70/ascreenshot.jpeg?tl_px=307,0&#x26;br_px=1167,480&#x26;force_format=png&#x26;width=860&#x26;wat_scale=76&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/EAB308_standard.png&#x26;wat_pad=402,2" alt="" width="560">

6\. You will get list of available models. Click on "New Model" to create a new one.

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-04-29/2ab42f3d-58b5-44dc-ae22-7153976e3a47/ascreenshot.jpeg?tl_px=1025,0&#x26;br_px=1885,480&#x26;force_format=png&#x26;width=860&#x26;wat_scale=76&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/EAB308_standard.png&#x26;wat_pad=402,94" alt="" width="560">

7\. Select model type from our templates. In our case, we will select "Regression" by double clicking on its name.

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-04-29/8ac068a6-25c0-4cfc-8a69-adef3b3a1bb0/ascreenshot.jpeg?tl_px=605,99&#x26;br_px=1465,580&#x26;force_format=png&#x26;width=860&#x26;wat_scale=76&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/EAB308_standard.png&#x26;wat_pad=402,212" alt="" width="560">

8\. Select dataset you want to use to produce a model. We will use "Demo-Ads.csv."

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-04-29/5cf783c2-128e-44e8-a6b9-34ab3911f84c/ascreenshot.jpeg?tl_px=0,240&#x26;br_px=859,721&#x26;force_format=png&#x26;width=860&#x26;wat_scale=76&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/EAB308_standard.png&#x26;wat_pad=200,212" alt="" width="560">

9\. Name your new model. We will call it "Regression on Demo-Ads".

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-04-29/a32f54a4-c24e-4cc3-bc90-6f6efe68daab/ascreenshot.jpeg?tl_px=0,41&#x26;br_px=859,522&#x26;force_format=png&#x26;width=860&#x26;wat_scale=76&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/EAB308_standard.png&#x26;wat_pad=314,212" alt="" width="560">

10\. Write the description of the model and select tag. If you want you can also create a new tag from pop-up "Tags" window that will appear on the screen.

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-04-29/a0ba1179-46fc-4f17-bead-34f7d422ecc6/ascreenshot.jpeg?tl_px=0,285&#x26;br_px=859,766&#x26;force_format=png&#x26;width=860&#x26;wat_scale=76&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/EAB308_standard.png&#x26;wat_pad=107,212" alt="" width="560">

11\. Click "Create" to create your demo model environment.

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-04-29/1de77f95-d81d-4d43-af67-fa090886a7a7/ascreenshot.jpeg?tl_px=1060,0&#x26;br_px=1920,480&#x26;force_format=png&#x26;width=860&#x26;wat_scale=76&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/EAB308_standard.png&#x26;wat_pad=724,117" alt="" width="560">

12\. To set up a "Regression Model", first you will need to define the "Target Feature". That is a numeric column from your dataset that you'd like to make predictions about. In the case of Regression on Ads dataset, target feature is "Clicks" column.

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-04-30/27fa3568-d3c8-4d68-a2d4-bd082c1a70d5/user_cropped_screenshot.jpeg?tl_px=0,183&#x26;br_px=1376,953&#x26;force_format=png&#x26;width=1120.0&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/EAB308_standard.png&#x26;wat_pad=220,541" alt="" width="560">

13\. Click "Next" to get the list of model features that will be included in the scenario. Model relies upon each column (feature) to make accurate predictions. When training the model, we will calculate which of the features are most important and behave as Key Drivers.

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-04-30/a9805b90-eb4e-4e14-a52f-91045190a059/user_cropped_screenshot.jpeg?tl_px=0,312&#x26;br_px=1146,953&#x26;force_format=png&#x26;width=1120.0&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/EAB308_standard.png&#x26;wat_pad=377,526" alt="" width="560">

14\. To start training the model, click "Run scenario". This will take a sample of 80% of your data and train several machine learning models.

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-04-29/c3c07372-3a18-4a41-8a0a-3fa0934d156c/ascreenshot.jpeg?tl_px=90,472&#x26;br_px=950,953&#x26;force_format=png&#x26;width=860&#x26;wat_scale=76&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/EAB308_standard.png&#x26;wat_pad=402,360" alt="" width="560">

15\. Wait for few moments and Voilà! Your Regression model is trained. Click on "Performance" tab to get model insights and view Key Drivers.

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-04-29/db9bb67d-4ff8-4796-9a2a-8692f2b98391/ascreenshot.jpeg?tl_px=0,0&#x26;br_px=1376,769&#x26;force_format=png&#x26;width=1120.0&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/EAB308_standard.png&#x26;wat_pad=471,200" alt="" width="560">

16\. Explore the Regression Model by clicking on Impact Analysis, Model Fit and Training Results to get more insights on how the model is trained and set up.

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-04-29/c266bbbc-2dab-4e96-b17a-aa661f6c4faf/ascreenshot.jpeg?tl_px=162,0&#x26;br_px=1538,769&#x26;force_format=png&#x26;width=1120.0&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/EAB308_standard.png&#x26;wat_pad=524,38" alt="" width="560">

17\. If you want to take turn model into action click on "Predict" tab in the main model menu.

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-04-29/05bdc2fd-3fbb-4947-8dc3-f36a1ee56af2/ascreenshot.jpeg?tl_px=429,0&#x26;br_px=1289,480&#x26;force_format=png&#x26;width=860&#x26;wat_scale=76&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/EAB308_standard.png&#x26;wat_pad=402,156" alt="" width="560">

18\. You can produce your own "What-If" analysis based on existing training results. You can also import a fresh CSV dataset into the data model, to make predictions on target column. In our case that is "Clicks". Keep in mind, the dataset you are uploading needs to contain same feature columns as your model.

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-04-29/f5a532b7-700a-49b8-a88e-1b67540b6321/user_cropped_screenshot.jpeg?tl_px=26,300&#x26;br_px=1009,849&#x26;force_format=png&#x26;width=983&#x26;wat_scale=87&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/EAB308_standard.png&#x26;wat_pad=459,243" alt="" width="560">

19\. Use your model often to predict future behaviour, and to learn which key drivers are impacting the outcomes. The more you use and retrain your model, the smarter it becomes!

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-04-30/395f0f9c-c53f-4e33-8cbc-86ff966dd85a/user_cropped_screenshot.jpeg?tl_px=0,472&#x26;br_px=859,953&#x26;force_format=png&#x26;width=860&#x26;wat_scale=76&#x26;wat=1&#x26;wat_opacity=1&#x26;wat_gravity=northwest&#x26;wat_url=https://colony-recorder.s3.amazonaws.com/images/watermarks/EAB308_standard.png&#x26;wat_pad=326,324" alt="" width="560">

\ <br>

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.graphite-note.com/graphite-note-documentation/demo-datasets/demo-datasets/ads.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
