# Fluid.datasetplot~ abstraction for 2D/3D visualization

**URL:** https://discourse.flucoma.org/t/fluid-datasetplot-abstraction-for-2d-3d-visualization/783
**Category:** Pre-Release Toolbox2 Code Sharing
**Created:** [February 20, 2021, 1:40am UTC](https://discourse.flucoma.org/t/fluid-datasetplot-abstraction-for-2d-3d-visualization/783 "2021-02-20T01:40:40Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![rodrigo.constanzo](https://discourse.flucoma.org/user_avatar/discourse.flucoma.org/rodrigo.constanzo/32/12_2.png) [@rodrigo.constanzo](https://discourse.flucoma.org/u/rodrigo.constanzo)
#### Post date: [February 20, 2021, 12:42pm UTC](https://discourse.flucoma.org/t/fluid-datasetplot-abstraction-for-2d-3d-visualization/783/6 "2021-02-20T12:42:57Z")

</div>

> [@tremblap](#):
>
> how did you analyse this dataset (the neighbours are quite credible)

Oh, I forgot to add that I didn’t normalize anything before going into `fluid.umap~`. So the MFCCs are in whatever weird range they are, the loudness is in dB and pitch is in MIDI.

So the data looks something like this (the rows are in [random order](https://discourse.flucoma.org/t/fluid-dataset-json-save-sorting/782/5)):

```auto
rows: 1715 cols: 21
1 7.5122 -18.776 -12.415 ... -0.27735 87.31 -53.293
10 1.5144 -18.605 -9.722 ... 0.38857 93.144 -56.418
100 1.0442 -10.104 -9.5277 ... 0.35186 77.097 -33.9
       ...
997 4.6128 0.61793 2.3301 ... -1.5062 95.02 -47.25
998 5.323 -0.35285 -2.2085 ... -0.36513 86.027 -42.957
999 3.578 -2.352 -2.4126 ... -1.4234 83.26 -47.525

```

I will have some more detailed questions about the best way to approach this in another thread, as part of me building this was to make an IQR-based rescaler, so I wanted to be able to visualize what is happening throughout the process.

On that note, and out of curiosity I plotted some variations of this dataset.

Here is the 21D space (20MFCCs (19), loudness, pitch) mapped via 3D umap (what’s displayed above essentially):

 ![21d to 3d](https://discourse.flucoma.org/uploads/default/original/2X/3/320fd66f3bfd7af7aaf2c25d197b66583e8a575c.png)

19D (20MFCCs (19)) to 3D:

 ![19d to 3d](https://discourse.flucoma.org/uploads/default/original/2X/8/877442f74abe5fe560850c456c7ff3fb92ec492e.png)

2D (loudness/pitch) to 3D (via UMAP):

 ![2d to 3d](https://discourse.flucoma.org/uploads/default/original/2X/f/fc06d12bbfc41b215c1d7ca7b5a2cab485d314ce.png)

Here’s 21D (20MFCCs (19), loudness, pitch) to 2D:

 ![21d to 2d](https://discourse.flucoma.org/uploads/default/original/2X/3/338dae18ebf370bd869cbee701c1749be708e038.png)

19D (20MFCCs (19)) to 2D:

 ![19d to 2d](https://discourse.flucoma.org/uploads/default/original/2X/5/5f9e80d0aa755153609d0bd12cd7bf4ac83cc5ce.png)

2D (loudness/pitch) to 2D (via UMAP):

 ![2d to 2d](https://discourse.flucoma.org/uploads/default/original/2X/f/fbe2180acad77d66435b01f1c6ff092404028085.png)

2D (loudness/pitch) mapped as raw (normalized) data:

 ![2d raw](https://discourse.flucoma.org/uploads/default/original/2X/8/87f0025a90b8c2db0c002146643ec127b1641617.png)

---

_[View the full topic](https://discourse.flucoma.org/t/fluid-datasetplot-abstraction-for-2d-3d-visualization/783)._
