> 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/diamonds.md).

# Diamonds

Create Multi-Class Classification model on Demo Diamonds 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 machine learning model. In this case we will select a Diamonds dataset to create Multi Class Analysis on diamond characteristics data.

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-04-30/a2aaf416-d33a-42a2-a7d0-f3382701f778/ascreenshot.jpeg?tl_px=0,88&#x26;br_px=764,515&#x26;force_format=png&#x26;width=764&#x26;wat_scale=68&#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=28,188" alt="" width="560">

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

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-04-30/a6ba4663-1d74-4684-9009-e3c9655c5501/ascreenshot.jpeg?tl_px=112,0&#x26;br_px=885,432&#x26;force_format=png&#x26;width=774&#x26;wat_scale=69&#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=362,183" alt="" width="560">

4\. Adjust your dataset options on 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-30/75d5acbd-2b44-4370-937b-f6c4061322fc/ascreenshot.jpeg?tl_px=358,0&#x26;br_px=1131,432&#x26;force_format=png&#x26;width=774&#x26;wat_scale=69&#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=362,184" alt="" width="560">

5\. To create 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-30/a2461614-ff59-4452-a2ab-66614588a740/ascreenshot.jpeg?tl_px=365,0&#x26;br_px=1138,432&#x26;force_format=png&#x26;width=774&#x26;wat_scale=69&#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=362,6" 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-30/eb1b89d1-618d-4e7e-8c72-73080af3c9d7/ascreenshot.jpeg?tl_px=1033,0&#x26;br_px=1806,432&#x26;force_format=png&#x26;width=774&#x26;wat_scale=69&#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=362,86" alt="" width="560">

7\. Select a model type from our templates. In our case we will select "Multi-Class Classification" by double clicking on its name.

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-04-30/5e9f5ce8-1959-4d43-afc4-bf485b2a02cf/ascreenshot.jpeg?tl_px=311,115&#x26;br_px=1084,548&#x26;force_format=png&#x26;width=774&#x26;wat_scale=69&#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=362,191" alt="" width="560">

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

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-04-30/424c27a3-3b6a-467c-9f65-3fcbff4c1137/ascreenshot.jpeg?tl_px=0,226&#x26;br_px=773,659&#x26;force_format=png&#x26;width=774&#x26;wat_scale=69&#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=201,191" alt="" width="560">

9\. Name your new model. We will call it "Multi-Class Classification on Demo-Diamonds"

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-04-30/9e7714c6-7c6d-4b26-97af-bc81d24d3604/ascreenshot.jpeg?tl_px=0,32&#x26;br_px=773,465&#x26;force_format=png&#x26;width=774&#x26;wat_scale=69&#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=340,191" alt="" width="560">

10\. Write description of the model and select tag. If you want you can also create 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-30/6ed613f2-f9ab-47ec-84e0-19d69cee451c/ascreenshot.jpeg?tl_px=0,105&#x26;br_px=773,538&#x26;force_format=png&#x26;width=774&#x26;wat_scale=69&#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=207,191" 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-30/6bed8acc-163d-49b6-af66-b094f12909af/ascreenshot.jpeg?tl_px=1146,0&#x26;br_px=1920,432&#x26;force_format=png&#x26;width=774&#x26;wat_scale=69&#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=622,104" alt="" width="560">

12\. To set up a Multi Class model first you need to define "Target Feature". That is text column from your dataset you'd like to make predictions about. In case of Multi Class on Diamonds dataset target feature is "Cut" column.

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-04-30/94a5ee4d-ee31-4a0e-989b-ff2e60309029/ascreenshot.jpeg?tl_px=94,338&#x26;br_px=953,819&#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">

13\. Click "Next" to get the list of model features that will be included under the scenario. Model relies on 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/e6f163e6-f4d3-4782-a608-267859d7dfa6/ascreenshot.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=498,481" alt="" width="560">

14\. To start training 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-30/3cc32d93-24dc-4be9-9d07-a21a786b763c/ascreenshot.jpeg?tl_px=194,520&#x26;br_px=967,953&#x26;force_format=png&#x26;width=774&#x26;wat_scale=69&#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=362,242" 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-30/a607ff4e-3cb7-4c6a-aed8-c8e9d72f0d56/ascreenshot.jpeg?tl_px=69,0&#x26;br_px=1216,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=524,273" alt="" width="560">

16\. Explore Multi Class model by clicking on Impact Analysis, Model Fit, Accuracy Overview or Training Results to get more insights on how model is trained and set up.

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-04-30/825c6885-6602-452d-8936-b4c0fe0f0502/ascreenshot.jpeg?tl_px=263,0&#x26;br_px=1036,432&#x26;force_format=png&#x26;width=774&#x26;wat_scale=69&#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=362,68" alt="" width="560">

17\. If you want to take your 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-30/dc312a9f-6deb-49a4-a2c3-d747a217de64/ascreenshot.jpeg?tl_px=505,0&#x26;br_px=1278,432&#x26;force_format=png&#x26;width=774&#x26;wat_scale=69&#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=362,184" 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 to make predictions on target column. In our case that is "Cut". Keep in mind, the dataset you are uploading needs to contain the same feature columns as your model.

<img src="https://ajeuwbhvhr.cloudimg.io/colony-recorder.s3.amazonaws.com/files/2024-04-30/170dbcb6-b83b-4747-b1b8-a77600b9b8c7/ascreenshot.jpeg?tl_px=111,520&#x26;br_px=884,953&#x26;force_format=png&#x26;width=774&#x26;wat_scale=69&#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=362,250" 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/3e37bd55-5075-4e81-bbde-f2d2028194a2/ascreenshot.jpeg?tl_px=6,197&#x26;br_px=989,746&#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">

<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/diamonds.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.
