官术网_书友最值得收藏!

Data visualization with machine learning

Let's get started with data visualization. We will plot histograms for each variable. The steps in the preceding section are important, because we need to understand these datasets if we want to accurately and effectively use machine learning. Otherwise, we're shooting in the dark, and we might spend time on a method that doesn't need to be investigated. We will use the plt method and make a plot, in which we will add the histograms of our dataset and edit the figure sizes, to make them easier to see.

We can see the output in the following screenshot:

As you can see, most of the preceding histograms have the majority of their data at around 1, with some data at a slightly higher value. Each histogram, apart from class, has at least one case where the value is 10. The histogram for clump thickness is pretty evenly distributed, while the histogram for chromatin is skewed to the left.

主站蜘蛛池模板: 彰化市| 绍兴市| 葵青区| 外汇| 巴塘县| 连江县| 布拖县| 盐边县| 禄丰县| 长海县| 青冈县| 修水县| 徐州市| 林口县| 枝江市| 项城市| 宁德市| 丰宁| 蓬溪县| 淮南市| 搜索| 盐边县| 灵武市| 襄垣县| 双峰县| 华亭县| 宣城市| 昌都县| 鱼台县| 正蓝旗| 靖江市| 封丘县| 射洪县| 道孚县| 大荔县| 娄烦县| 乐清市| 宿松县| 东台市| 蓝田县| 山阳县|