How a data scientist…. decorates his newborn’s nursery?

0
54

A data-driven way

Almost 3 years in the past, my spouse requested me to brighten a wall of my child’s bed room. So after looking out a bunch of websites, we decided on a vinyl piece composed of 117 “unperfect” circles of four colours.

Problem

Immediately, my head idea at the following query:

How to distribute them on a wall of 290cmx210cm? That’s simple…. Using R 😎

https://medium.com/media/0a0f705d2a88979fdab410a1c4d0e335/href

Getting Data

Extracting the correct colours

Beforehand, I had to get the HEX codes from the symbol.

How?

My first try was once to make use of this website for that:

  • #A8C6C4
  • #32312F
  • #BDBFBE
  • #D6C245

However, I used to be no longer pleased with that answer. So I attempted to routinely clutch the colours from the picture. 🚀

https://medium.com/media/b202ec43c6ad0f315214c4c4bf55e488/href

Firstly, I plotted the unique image.

Then, I cropped the picture maintaining most effective the highest left nook in an effort to extract the hex codes of the circles in that image.

Now, it was once time to select the HEX codes.

Preparing the dataset

With the choice completed, I used to be able to challenge the circles at the wall, and a short time later…voilá. For that, I determined to make use of a uniform distribution.

https://medium.com/media/1592817b9604f189a47e5af64a8c8273/href

Finally, it was once time for the “actual” paintings.👌

I do know, I do know….however I don’t bear in mind the seed used on the time.


How a data scientist…. decorates his newborn’s nursery? was once at the beginning printed in Towards Data Science on Medium, the place persons are proceeding the dialog via highlighting and responding to this tale.

LEAVE A REPLY

Please enter your comment!
Please enter your name here