# 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&#x26;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&#x26;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&#x26;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&#x26;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&#x26;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&#x26;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&#x26;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&#x26;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 %}
