> For the complete documentation index, see [llms.txt](https://docs.bdb.ai/self-service-visualization-4/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bdb.ai/self-service-visualization-4/report-final-screen/create-new-ml-view.md).

# Create New ML View

The ML View creation provided under the self-service visualization report helps the user to instantly generate Views based on any ML task. The user needs to provide feature or target column based on the selected ML Task  to avail conclusive insights into their chosen dataset.&#x20;

The supported ML tasks are ***Segmentation**, **Anomaly Detection**, **Time Series*****,** and ***Sentiment.***

Refer the following description to select proper ML task for your dataset:

1. **Segmentation:** Explore data intricacies using K-means clustering. Identify hidden patterns and groups within your dataset to pinpoint customer segments, market groups, or other clusters. Tailor strategies to specific audience needs and enhance your understanding of diverse dynamics. Visualize segmentation results through clear graphs in the final Report.
2. &#x20;**Anomaly Detection**: Utilize robust detection methods like Isolation Forest for outlier detection. Identify data errors, deviations, and outliers signaling potential issues or opportunities. Maintain data quality and make informed decisions with a visually summarized presentation of anomalies in the final Report.
3. **Time Series Forecasting:** Experience precise forecasting with methods like ARIMA and SARIMA. Uncover short-term and long-term trends in your time-stamped data, offering invaluable foresight for predicting sales figures, stock prices, and more. Make informed decisions based on accurate forecasts, visually summarized in the final Report.
4. **Sentiment Analysis**: Leverage natural language processing to discern sentiments in your data, categorizing them into positive or negative tones. Ideal for customer reviews, social media comments, or surveys, this feature provides valuable insights into the subjective nature of your data. Visualize overall sentiments in your data through intuitive graphs in the final Report.

Find the compatible column types for each task described below:

<table><thead><tr><th width="163.33333333333331">TASK</th><th width="194">Column Types</th><th>Description</th></tr></thead><tbody><tr><td>Time Series Forecasting</td><td>1 Date/Time column, 1 measure column (e.g., sales, salary)</td><td>Predicts future values based on historical trends. Requires equally spaced dates (weekly, monthly, yearly).</td></tr><tr><td>Sentiment Analysis</td><td>Text/Dimension column required</td><td>Analyzes sentiment (positive, negative) using BERT Language Model.</td></tr><tr><td>Segmentation</td><td>Numerical features and measures</td><td>Groups data points based on similarities.</td></tr><tr><td>Anomaly Detection</td><td>Numerical features and measures</td><td>Identifies unusual data points that deviate from patterns.</td></tr></tbody></table>

## Steps to Create a New ML View

* Navigate to the ***Report*** final screen.
* Click the ***Create New ML View*** icon.

<figure><img src="https://2350624874-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvIDgRfkRB1bQpGtEDFfQ%2Fuploads%2Fwt2uuY4Ed1p30YVfpI6c%2Fimage.png?alt=media&amp;token=b6372825-e2cc-4099-b16c-b137bb1d2a6a" alt=""><figcaption></figcaption></figure>

* The ***Design View*** canvas opens to design a View.
* Select or drag-drop required Dimensions and Measures.
* Click the GO option to generate the View.
* Once the View gets created, the user will get ***ML Properties*** icon to perform ML function.
* Click the ***ML*** ***Properties*** icon.

<figure><img src="https://2350624874-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvIDgRfkRB1bQpGtEDFfQ%2Fuploads%2FHRCgjGSjTzZQQxotCsOS%2Fimage.png?alt=media&amp;token=2157c8e6-473d-4d71-8c83-3f62dd12069e" alt=""><figcaption></figcaption></figure>

* The ***Machine Learning Properties*** window appears.
* Select an ***ML Task*** from the given context menu.

<figure><img src="https://2350624874-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvIDgRfkRB1bQpGtEDFfQ%2Fuploads%2F5znJSivCfx3XmbWM64m1%2Fimage.png?alt=media&amp;token=68546ee7-420f-472a-a4fa-2182419cf4ad" alt=""><figcaption></figcaption></figure>

* Fields specific to the selected ML Task will appear to apply it. In this case, select the ***Feature Columns*** by using the checkboxes.

<figure><img src="https://2350624874-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvIDgRfkRB1bQpGtEDFfQ%2Fuploads%2FPzXrCDKHjbwLZmzqYzAi%2Fimage.png?alt=media&amp;token=06ccf645-050d-4e8b-8afb-c18c4588bcba" alt=""><figcaption></figcaption></figure>

* Provide a number to specify the **Cluster Count**.
* Some Cluster Colors will be provided based on the selected count of the Cluster. The user can modify the pre-selected colors by using the color pallet that appears by clicking the existing cluster color field.
* Select ***Operator*** using the context menu.
* Click the ***Predict*** option.

<figure><img src="https://2350624874-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvIDgRfkRB1bQpGtEDFfQ%2Fuploads%2FdsRaAjXwOD2GgVx6AqT4%2Fimage.png?alt=media&amp;token=a5f85398-6716-43ea-a9bd-edf7549eef9e" alt=""><figcaption></figcaption></figure>

* &#x20;Based on the selected ML task the View gets displayed.
* Click the ***Chart List*** icon.
* Click on the other chart option. In this case, it is scatter plot chart.

<figure><img src="https://2350624874-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvIDgRfkRB1bQpGtEDFfQ%2Fuploads%2F3oddoNn9BqRABbRbpJbj%2Fimage.png?alt=media&amp;token=19f15935-9bd5-4063-98ee-30bf57eee071" alt=""><figcaption></figcaption></figure>

* The ***View*** appears in the selected (scatter plot) chart option.
* Click the ***Save View*** icon to save the View to the report.

<figure><img src="https://2350624874-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvIDgRfkRB1bQpGtEDFfQ%2Fuploads%2FzJsYrxuABhhxOcScZ6mw%2Fimage.png?alt=media&amp;token=40676ec5-2ccd-4e58-867b-f5eda174ae2a" alt=""><figcaption></figcaption></figure>

* A notification message appears.
* The ML task based ***View*** gets added to the final screen of the Report.

<figure><img src="https://2350624874-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvIDgRfkRB1bQpGtEDFfQ%2Fuploads%2FY9TGwSqBLHTXaieAnUN5%2Fimage.png?alt=media&amp;token=0ed6d8f3-9876-419d-a78d-da169f6b89d3" alt=""><figcaption></figcaption></figure>

## Segmentation

* Group your data based on similarities in measures and numeric features.
* View results:
  * Table: Up to two measures visualized together for easy comparison.
  * Scatter Plot (2 measures): Visually explore relationships between two measures for each segment.

{% hint style="success" %}
*Check out the given video to know the details on ML View creation based on the Segmentation Task.*
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvIDgRfkRB1bQpGtEDFfQ%2Fuploads%2FXBMmTDN5VXuGEJ1DjpZI%2FML%20Views_Segmentation.mp4?alt=media&token=941a99ca-36e0-49c3-b643-ab2b6886542d>" %}
***View with Segmentation ML Task***
{% endembed %}

## Anomaly Detection

* Identify unusual data points that deviate from patterns in your measures.
* View results:
  * &#x20;Line Chart: Track anomalies highlighted as points diverging from the overall trend.
  * Table: See individual rows flagged as anomalies, allowing for further investigation.

{% hint style="success" %}
*Check out the given video to know the details on ML View creation based on the Anomaly Detection Task.*
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvIDgRfkRB1bQpGtEDFfQ%2Fuploads%2F6OqryP7JhOkpQ2Nz8lP6%2FML%20Views_Anomaly%20Detection.mp4?alt=media&token=94d7576b-12a5-4034-b9d5-2ccd497a9849>" %}
***View with Anomaly Detection ML Task***
{% endembed %}

## Time Series Forecasting

* Select the column you want to predict. The Auto-ARIMA model will automatically train and choose the best parameters.
* View results:
  * Table: See predicted values highlighted at the end of the model.
  * Line chart: Visualize historical data with predicted values as dotted lines.

{% hint style="success" %}
*Check out the given video to know the details on ML View creation based on the Time Series Forecasting Task.*
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvIDgRfkRB1bQpGtEDFfQ%2Fuploads%2Foc4vfcvIeav0OpKLO2js%2FML%20View%20_Timeline.mp4?alt=media&token=f250776a-a2dd-4792-8078-af76ac5e1c1b>" %}
***View with Time Series Forecasting ML Task***
{% endembed %}

## Sentiment Analysis

* The analysis will process your text column and analyze sentiment.
* The analysis is performed in the browser; the processing time varies based on the availability of client browser resources.&#x20;
* View results:
  * Pie Chart/ Mixed chart: Get a quick overview of overall sentiment distribution (Positive and Negative).
  * Positive and negative sentiments count will be shown in tiles.

{% hint style="success" %}
*Check out the given video to know the details on ML View creation based on the Sentiment Analysis Task.*
{% endhint %}

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvIDgRfkRB1bQpGtEDFfQ%2Fuploads%2FX0Q7VB5yMfuJAX68NOYe%2FML%20Views_Sentiment.mp4?alt=media&token=52448172-b5aa-4860-b89e-5716c40ac3b0>" %}
***View with the Sentiment Analysis ML Task***
{% endembed %}

{% hint style="info" %}
*<mark style="color:green;">**Please Note:**</mark> The maximum supported word count for Sentiment Analysis is 2000.*&#x20;
{% endhint %}
