> For the complete documentation index, see [llms.txt](https://visual-python.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://visual-python.gitbook.io/docs/machine-learning/8.-dimension.md).

# 8. Dimension

<figure><img src="https://2909106259-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl07NBXgl5MbkBetObqPW%2Fuploads%2F1wN6LMSJQPMSjnIsBFv4%2Fimage.png?alt=media&amp;token=7df26cd6-0cb1-4710-8e35-a55c42021069" alt="" width="342"><figcaption></figcaption></figure>

1. Click on ***Dimension*** under the ***Machine Learning*** category.

<figure><img src="https://2909106259-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl07NBXgl5MbkBetObqPW%2Fuploads%2FCK8bwddeF1NEGsyCxuQm%2Fimage.png?alt=media&amp;token=5ac79156-7538-4f9a-8f1f-522e9f28bdd4" alt="" width="563"><figcaption></figcaption></figure>

2. ***Model type***: Select the type of model.
3. ***N components***: Specify the desired number of dimensions to reduce the data to.
4. ***Learning rate (TSNE)***: Learning rate determines how much the TSNE algorithm reflects the distances between data points. Too large values may cause data to be excessively dense, while too small values may lead to convergence issues. Typically, values between 0.1 and 0.3 are used.
5. ***Random state*** - Set the seed value for the random number generator.
6. ***Allocate to***: Specify the variable name to assign to the model.
7. ***Code view***: Preview the generated code.
8. ***Run***: Execute the code.
