{"id":224,"date":"2020-06-10T14:06:30","date_gmt":"2020-06-10T06:06:30","guid":{"rendered":"https:\/\/www.juemeis.xyz\/wordpress\/?p=224"},"modified":"2020-06-10T14:06:30","modified_gmt":"2020-06-10T06:06:30","slug":"%e4%bb%8e1%e7%bb%b4%e5%88%b06%e7%bb%b4-%e5%a4%9a%e7%bb%b4%e6%95%b0%e6%8d%ae%e5%8f%af%e8%a7%86%e5%8c%96%e7%ad%96%e7%95%a5","status":"publish","type":"post","link":"https:\/\/www.urbin.top\/?p=224","title":{"rendered":"\u4ece1\u7ef4\u52306\u7ef4-\u591a\u7ef4\u6570\u636e\u53ef\u89c6\u5316\u7b56\u7565"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"javascript:;\"><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6570\u636e\u805a\u5408\u3001\u6c47\u603b\u548c\u53ef\u89c6\u5316\u662f\u652f\u6491\u6570\u636e\u5206\u6790\u9886\u57df\u7684\u4e09\u5927\u652f\u67f1\u3002\u957f\u4e45\u4ee5\u6765\uff0c\u6570\u636e\u53ef\u89c6\u5316\u90fd\u662f\u4e00\u4e2a\u5f3a\u6709\u529b\u7684\u5de5\u5177\uff0c\u88ab\u4e1a\u754c\u5e7f\u6cdb\u4f7f\u7528\uff0c\u5374\u53d7\u9650\u4e8e 2 \u7ef4\u3002\u5728\u672c\u6587\u4e2d\uff0c\u4f5c\u8005\u5c06\u63a2\u7d22\u4e00\u4e9b\u6709\u6548\u7684\u591a\u7ef4\u6570\u636e\u53ef\u89c6\u5316\u7b56\u7565\uff08\u8303\u56f4\u4ece 1 \u7ef4\u5230 6 \u7ef4\uff09\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u4ecb\u7ecd<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u63cf\u8ff0\u6027\u5206\u6790\uff08descriptive analytics\uff09\u662f\u4efb\u4f55\u5206\u6790\u751f\u547d\u5468\u671f\u7684\u6570\u636e\u79d1\u5b66\u9879\u76ee\u6216\u7279\u5b9a\u7814\u7a76\u7684\u6838\u5fc3\u7ec4\u6210\u90e8\u5206\u4e4b\u4e00\u3002\u6570\u636e\u805a\u5408\uff08aggregation\uff09\u3001\u6c47\u603b\uff08summarization\uff09\u548c\u53ef\u89c6\u5316\uff08visualization\uff09\u662f\u652f\u6491\u6570\u636e\u5206\u6790\u9886\u57df\u7684\u4e3b\u8981\u652f\u67f1\u3002\u4ece\u4f20\u7edf\u5546\u4e1a\u667a\u80fd\uff08Business Intelligence\uff09\u5f00\u59cb\uff0c\u751a\u81f3\u5230\u5982\u4eca\u4eba\u5de5\u667a\u80fd\u65f6\u4ee3\uff0c\u6570\u636e\u53ef\u89c6\u5316\u90fd\u662f\u4e00\u4e2a\u5f3a\u6709\u529b\u7684\u5de5\u5177\uff1b\u7531\u4e8e\u5176\u80fd\u6709\u6548\u62bd\u53d6\u6b63\u786e\u7684\u4fe1\u606f\uff0c\u540c\u65f6\u6e05\u695a\u5bb9\u6613\u5730\u7406\u89e3\u548c\u89e3\u91ca\u7ed3\u679c\uff0c\u53ef\u89c6\u5316\u88ab\u4e1a\u754c\u7ec4\u7ec7\u5e7f\u6cdb\u4f7f\u7528\u3002\u7136\u800c\uff0c\u5904\u7406\u591a\u7ef4\u6570\u636e\u96c6\uff08\u901a\u5e38\u5177\u6709 2 \u4e2a\u4ee5\u4e0a\u5c5e\u6027\uff09\u5f00\u59cb\u5f15\u8d77\u95ee\u9898\uff0c\u56e0\u4e3a\u6211\u4eec\u7684\u6570\u636e\u5206\u6790\u548c\u901a\u4fe1\u7684\u5a92\u4ecb\u901a\u5e38\u9650\u4e8e 2 \u4e2a\u7ef4\u5ea6\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u63a2\u7d22\u4e00\u4e9b\u6709\u6548\u7684\u591a\u7ef4\u6570\u636e\u53ef\u89c6\u5316\u7b56\u7565\uff08\u8303\u56f4\u4ece 1 \u7ef4\u5230 6 \u7ef4\uff09\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u52a8\u673a<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u300c\u4e00\u56fe\u80dc\u5343\u8a00\u300d<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u662f\u4e00\u53e5\u6211\u4eec\u719f\u6089\u7684\u975e\u5e38\u6d41\u884c\u7684\u82f1\u8bed\u4e60\u8bed\uff0c\u53ef\u4ee5\u5145\u5f53\u5c06\u6570\u636e\u53ef\u89c6\u5316\u4f5c\u4e3a\u5206\u6790\u7684\u6709\u6548\u5de5\u5177\u7684\u7075\u611f\u548c\u52a8\u529b\u3002\u6c38\u8fdc\u8bb0\u4f4f\uff1a\u300c\u6709\u6548\u7684\u6570\u636e\u53ef\u89c6\u5316\u65e2\u662f\u4e00\u95e8\u827a\u672f\uff0c\u4e5f\u662f\u4e00\u95e8\u79d1\u5b66\u3002\u300d\u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u6211\u8fd8\u8981\u63d0\u53ca\u4e0b\u9762\u4e00\u53e5\u975e\u5e38\u76f8\u5173\u7684\u5f15\u8a00\uff0c\u5b83\u5f3a\u8c03\u4e86\u6570\u636e\u53ef\u89c6\u5316\u7684\u5fc5\u8981\u6027\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u300c\u4e00\u5f20\u56fe\u7247\u7684\u6700\u5927\u4ef7\u503c\u5728\u4e8e\uff0c\u5b83\u8feb\u4f7f\u6211\u4eec\u6ce8\u610f\u5230\u6211\u4eec\u4ece\u672a\u671f\u671b\u770b\u5230\u7684\u4e1c\u897f\u3002\u300d<\/p><p>\u2014\u2014John Tukey<\/p><\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u5feb\u901f\u56de\u987e\u53ef\u89c6\u5316<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u6587\u5047\u8bbe\u4e00\u822c\u8bfb\u8005\u77e5\u9053\u7528\u4e8e\u7ed8\u56fe\u548c\u53ef\u89c6\u5316\u6570\u636e\u7684\u57fa\u672c\u56fe\u8868\u7c7b\u578b\uff0c\u56e0\u6b64\u8fd9\u91cc\u4e0d\u518d\u8d58\u8ff0\uff0c\u4f46\u5728\u672c\u6587\u968f\u540e\u7684\u5b9e\u8df5\u4e2d\uff0c\u6211\u4eec\u5c06\u4f1a\u6d89\u53ca\u5927\u90e8\u5206\u56fe\u8868\u7c7b\u578b\u3002\u8457\u540d\u7684\u53ef\u89c6\u5316\u5148\u9a71\u548c\u7edf\u8ba1\u5b66\u5bb6 Edward Tufte \u8bf4\u8fc7\uff0c\u6570\u636e\u53ef\u89c6\u5316\u5e94\u8be5\u5728\u6570\u636e\u7684\u57fa\u7840\u4e0a\uff0c\u4ee5\u6e05\u6670\u3001\u7cbe\u786e\u548c\u9ad8\u6548\u7684\u65b9\u5f0f\u4f20\u8fbe\u6570\u636e\u6a21\u5f0f\u548c\u6d1e\u5bdf\u4fe1\u606f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7ed3\u6784\u5316\u6570\u636e\u901a\u5e38\u5305\u62ec\u7531\u884c\u548c\u7279\u5f81\u8868\u5f81\u7684\u6570\u636e\u89c2\u6d4b\u503c\u6216\u7531\u5217\u8868\u5f81\u7684\u6570\u636e\u5c5e\u6027\u3002\u6bcf\u5217\u4e5f\u53ef\u4ee5\u88ab\u79f0\u4e3a\u6570\u636e\u96c6\u7684\u67d0\u7279\u5b9a\u7ef4\u5ea6\u3002\u6700\u5e38\u89c1\u7684\u6570\u636e\u7c7b\u578b\u5305\u62ec\u8fde\u7eed\u578b\u6570\u503c\u6570\u636e\u548c\u79bb\u6563\u578b\u5206\u7c7b\u6570\u636e\u3002\u56e0\u6b64\uff0c\u4efb\u4f55\u6570\u636e\u53ef\u89c6\u5316\u5c06\u57fa\u672c\u4e0a\u4ee5\u6563\u70b9\u56fe\u3001\u76f4\u65b9\u56fe\u3001\u7bb1\u7ebf\u56fe\u7b49\u7b80\u5355\u6613\u61c2\u7684\u5f62\u5f0f\u63cf\u8ff0\u4e00\u4e2a\u6216\u591a\u4e2a\u6570\u636e\u5c5e\u6027\u3002\u672c\u6587\u5c06\u6db5\u76d6\u5355\u53d8\u91cf\uff081 \u7ef4\uff09\u548c\u591a\u53d8\u91cf\uff08\u591a\u7ef4\uff09\u6570\u636e\u53ef\u89c6\u5316\u7b56\u7565\u3002\u8fd9\u91cc\u5c06\u4f7f\u7528 Python \u673a\u5668\u5b66\u4e60\u751f\u6001\u7cfb\u7edf\uff0c\u6211\u4eec\u5efa\u8bae\u5148\u68c0\u67e5\u7528\u4e8e\u6570\u636e\u5206\u6790\u548c\u53ef\u89c6\u5316\u7684\u6846\u67b6\uff0c\u5305\u62ec pandas\u3001matplotlib\u3001seaborn\u3001plotly \u548c bokeh\u3002\u9664\u6b64\u4e4b\u5916\uff0c\u5982\u679c\u4f60\u6709\u5174\u8da3\u7528\u6570\u636e\u5236\u4f5c\u7cbe\u7f8e\u800c\u6709\u610f\u4e49\u7684\u53ef\u89c6\u5316\u6587\u4ef6\uff0c\u90a3\u4e48\u4e86\u89e3 D3.js\uff08https:\/\/d3js.org\/\uff09\u4e5f\u662f\u5fc5\u987b\u7684\u3002\u6709\u5174\u8da3\u7684\u8bfb\u8005\u53ef\u4ee5\u9605\u8bfb Edward Tufte \u7684\u300cThe Visual Display of Quantitative Information\u300d\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u95f2\u8bdd\u81f3\u6b64\uff0c\u8ba9\u6211\u4eec\u6765\u770b\u770b\u53ef\u89c6\u5316\uff08\u548c\u4ee3\u7801\uff09\u5427\uff01<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u522b\u5728\u8fd9\u513f\u8c08\u8bba\u7406\u8bba\u548c\u6982\u5ff5\u4e86\uff0c\u8ba9\u6211\u4eec\u5f00\u59cb\u8fdb\u5165\u6b63\u9898\u5427\u3002\u6211\u4eec\u5c06\u4f7f\u7528 UCI \u673a\u5668\u5b66\u4e60\u5e93\uff08https:\/\/archive.ics.uci.edu\/ml\/index.php\uff09\u4e2d\u7684 Wine Quality Data Set\u3002\u8fd9\u4e9b\u6570\u636e\u5b9e\u9645\u4e0a\u662f\u7531\u4e24\u4e2a\u6570\u636e\u96c6\u7ec4\u6210\u7684\uff0c\u8fd9\u4e24\u4e2a\u6570\u636e\u96c6\u63cf\u8ff0\u4e86\u8461\u8404\u7259\u300cVinho Verde\u300d\u8461\u8404\u9152\u4e2d\u7ea2\u8272\u548c\u767d\u8272\u9152\u7684\u5404\u79cd\u6210\u5206\u3002\u672c\u6587\u4e2d\u7684\u6240\u6709\u5206\u6790\u90fd\u5728\u6211\u7684 GitHub \u5b58\u50a8\u5e93\u4e2d\uff0c\u4f60\u53ef\u4ee5\u7528 Jupyter Notebook \u4e2d\u7684\u4ee3\u7801\u6765\u5c1d\u8bd5\u4e00\u4e0b\uff01<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u4eec\u5c06\u9996\u5148\u52a0\u8f7d\u4ee5\u4e0b\u5fc5\u8981\u7684\u4f9d\u8d56\u5305\u8fdb\u884c\u5206\u6790\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import pandas as pd\nimport matplotlib.pyplot as plt\nfrom mpl_toolkits.mplot3d import Axes3D\nimport matplotlib as mpl\nimport numpy as np\nimport seaborn as sns\n%matplotlib inline<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u4eec\u5c06\u4e3b\u8981\u4f7f\u7528 matplotlib \u548c seaborn \u4f5c\u4e3a\u6211\u4eec\u7684\u53ef\u89c6\u5316\u6846\u67b6\uff0c\u4f46\u4f60\u53ef\u4ee5\u81ea\u7531\u9009\u62e9\u5e76\u5c1d\u8bd5\u4efb\u4f55\u5176\u5b83\u6846\u67b6\u3002\u9996\u5148\u8fdb\u884c\u57fa\u672c\u7684\u6570\u636e\u9884\u5904\u7406\u6b65\u9aa4\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>white_wine = pd.read_csv('winequality-white.csv', sep=';')\nred_wine = pd.read_csv('winequality-red.csv', sep=';')\n\n# store wine type as an attribute\nred_wine&#91;'wine_type'] = 'red' &nbsp; \nwhite_wine&#91;'wine_type'] = 'white'\n\n# bucket wine quality scores into qualitative quality labels\nred_wine&#91;'quality_label'] = red_wine&#91;'quality'].apply(lambda value: 'low' \n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if value &lt;= 5 else 'medium' \n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if value &lt;= 7 else 'high')\nred_wine&#91;'quality_label'] = pd.Categorical(red_wine&#91;'quality_label'], \n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; categories=&#91;'low', 'medium', 'high'])\nwhite_wine&#91;'quality_label'] = white_wine&#91;'quality'].apply(lambda value: 'low' \n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if value &lt;= 5 else 'medium' \n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if value &lt;= 7 else 'high')\nwhite_wine&#91;'quality_label'] = pd.Categorical(white_wine&#91;'quality_label'], \n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; categories=&#91;'low', 'medium', 'high'])\n\n# merge red and white wine datasets\nwines = pd.concat(&#91;red_wine, white_wine])\n\n# re-shuffle records just to randomize data points\nwines = wines.sample(frac=1, random_state=42).reset_index(drop=True)\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u4eec\u901a\u8fc7\u5408\u5e76\u6709\u5173\u7ea2\u3001\u767d\u8461\u8404\u9152\u6837\u672c\u7684\u6570\u636e\u96c6\u6765\u521b\u5efa\u5355\u4e2a\u8461\u8404\u9152\u6570\u636e\u6846\u67b6\u3002\u6211\u4eec\u8fd8\u6839\u636e\u8461\u8404\u9152\u6837\u54c1\u7684\u8d28\u91cf\u5c5e\u6027\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5206\u7c7b\u53d8\u91cf quality_label\u3002\u73b0\u5728\u6211\u4eec\u6765\u770b\u770b\u6570\u636e\u524d\u51e0\u884c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wines.head()<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"140\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/1.png\" alt=\"\" class=\"wp-image-225\" srcset=\"https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/1.png 800w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/1-300x53.png 300w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/1-768x134.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f88\u660e\u663e\uff0c\u6211\u4eec\u6709\u51e0\u4e2a\u8461\u8404\u9152\u6837\u672c\u7684\u6570\u503c\u548c\u5206\u7c7b\u5c5e\u6027\u3002\u6bcf\u4e2a\u89c2\u6d4b\u6837\u672c\u5c5e\u4e8e\u7ea2\u8461\u8404\u9152\u6216\u767d\u8461\u8404\u9152\u6837\u54c1\uff0c\u5c5e\u6027\u662f\u4ece\u7269\u7406\u5316\u5b66\u6d4b\u8bd5\u4e2d\u6d4b\u91cf\u548c\u83b7\u5f97\u7684\u7279\u5b9a\u5c5e\u6027\u6216\u6027\u8d28\u3002\u5982\u679c\u4f60\u60f3\u4e86\u89e3\u6bcf\u4e2a\u5c5e\u6027\uff08\u5c5e\u6027\u5bf9\u5e94\u7684\u53d8\u91cf\u540d\u79f0\u4e00\u76ee\u4e86\u7136\uff09\u8be6\u7ec6\u7684\u89e3\u91ca\uff0c\u4f60\u53ef\u4ee5\u67e5\u770b Jupyter Notebook\u3002\u8ba9\u6211\u4eec\u5feb\u901f\u5bf9\u8fd9\u4e9b\u611f\u5174\u8da3\u7684\u5c5e\u6027\u8fdb\u884c\u57fa\u672c\u7684\u63cf\u8ff0\u6027\u6982\u62ec\u7edf\u8ba1\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>subset_attributes = &#91;'residual sugar', 'total sulfur dioxide', 'sulphates', \n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'alcohol', 'volatile acidity', 'quality']\nrs = round(red_wine&#91;subset_attributes].describe(),2)\nws = round(white_wine&#91;subset_attributes].describe(),2)\n\npd.concat(&#91;rs, ws], axis=1, keys=&#91;'Red Wine Statistics', 'White Wine Statistics'])\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"271\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/2.png\" alt=\"\" class=\"wp-image-226\" srcset=\"https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/2.png 1000w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/2-300x81.png 300w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/2-768x208.png 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6bd4\u8f83\u8fd9\u4e9b\u4e0d\u540c\u7c7b\u578b\u7684\u8461\u8404\u9152\u6837\u672c\u7684\u7edf\u8ba1\u65b9\u6cd5\u76f8\u5f53\u5bb9\u6613\u3002\u6ce8\u610f\u4e00\u4e9b\u5c5e\u6027\u7684\u660e\u663e\u5dee\u5f02\u3002\u7a0d\u540e\u6211\u4eec\u5c06\u5728\u4e00\u4e9b\u53ef\u89c6\u5316\u4e2d\u5f3a\u8c03\u8fd9\u4e9b\u5185\u5bb9\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u5355\u53d8\u91cf\u5206\u6790<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5355\u53d8\u91cf\u5206\u6790\u57fa\u672c\u4e0a\u662f\u6570\u636e\u5206\u6790\u6216\u53ef\u89c6\u5316\u7684\u6700\u7b80\u5355\u5f62\u5f0f\uff0c\u56e0\u4e3a\u53ea\u5173\u5fc3\u5206\u6790\u4e00\u4e2a\u6570\u636e\u5c5e\u6027\u6216\u53d8\u91cf\u5e76\u5c06\u5176\u53ef\u89c6\u5316\uff081 \u7ef4\uff09\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u53ef\u89c6\u5316 1 \u7ef4\u6570\u636e\uff081-D\uff09<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f7f\u6240\u6709\u6570\u503c\u6570\u636e\u53ca\u5176\u5206\u5e03\u53ef\u89c6\u5316\u7684\u6700\u5feb\u3001\u6700\u6709\u6548\u7684\u65b9\u6cd5\u4e4b\u4e00\u662f\u5229\u7528 pandas \u753b\u76f4\u65b9\u56fe\uff08histogram\uff09\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wines.hist(bins=15, color='steelblue', edgecolor='black', linewidth=1.0,\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xlabelsize=8, ylabelsize=8, grid=False) &nbsp; &nbsp;\nplt.tight_layout(rect=(0, 0, 1.2, 1.2)) &nbsp; \n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"503\" height=\"339\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/3.png\" alt=\"\" class=\"wp-image-227\" srcset=\"https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/3.png 503w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/3-300x202.png 300w\" sizes=\"auto, (max-width: 503px) 100vw, 503px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0a\u56fe\u7ed9\u51fa\u4e86\u53ef\u89c6\u5316\u4efb\u4f55\u5c5e\u6027\u7684\u57fa\u672c\u6570\u636e\u5206\u5e03\u7684\u4e00\u4e2a\u597d\u4e3b\u610f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8ba9\u6211\u4eec\u8fdb\u4e00\u6b65\u53ef\u89c6\u5316\u5176\u4e2d\u4e00\u4e2a\u8fde\u7eed\u578b\u6570\u503c\u5c5e\u6027\u3002\u76f4\u65b9\u56fe\u6216\u6838\u5bc6\u5ea6\u56fe\u80fd\u591f\u5f88\u597d\u5730\u5e2e\u52a9\u7406\u89e3\u8be5\u5c5e\u6027\u6570\u636e\u7684\u5206\u5e03\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Histogram\nfig = plt.figure(figsize = (6,4))\ntitle = fig.suptitle(\"Sulphates Content in Wine\", fontsize=14)\nfig.subplots_adjust(top=0.85, wspace=0.3)\n\nax = fig.add_subplot(1,1, 1)\nax.set_xlabel(\"Sulphates\")\nax.set_ylabel(\"Frequency\") \nax.text(1.2, 800, r'$\\mu$='+str(round(wines&#91;'sulphates'].mean(),2)), \n &nbsp; &nbsp; &nbsp; &nbsp; fontsize=12)\nfreq, bins, patches = ax.hist(wines&#91;'sulphates'], color='steelblue', bins=15,\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;edgecolor='black', linewidth=1)\n\n\n# Density Plot\nfig = plt.figure(figsize = (6, 4))\ntitle = fig.suptitle(\"Sulphates Content in Wine\", fontsize=14)\nfig.subplots_adjust(top=0.85, wspace=0.3)\n\nax1 = fig.add_subplot(1,1, 1)\nax1.set_xlabel(\"Sulphates\")\nax1.set_ylabel(\"Frequency\") \nsns.kdeplot(wines&#91;'sulphates'], ax=ax1, shade=True, color='steelblue')\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"287\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/4-1.png\" alt=\"\" class=\"wp-image-229\" srcset=\"https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/4-1.png 800w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/4-1-300x108.png 300w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/4-1-768x276.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ece\u4e0a\u9762\u7684\u56fe\u8868\u4e2d\u53ef\u4ee5\u770b\u51fa\uff0c\u8461\u8404\u9152\u4e2d\u786b\u9178\u76d0\u7684\u5206\u5e03\u5b58\u5728\u660e\u663e\u7684\u53f3\u504f\uff08right skew\uff09\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u53ef\u89c6\u5316\u4e00\u4e2a\u79bb\u6563\u5206\u7c7b\u578b\u6570\u636e\u5c5e\u6027\u7a0d\u6709\u4e0d\u540c\uff0c\u6761\u5f62\u56fe\u662f\uff08bar plot\uff09\u6700\u6709\u6548\u7684\u65b9\u6cd5\u4e4b\u4e00\u3002\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528\u997c\u56fe\uff08pie-chart\uff09\uff0c\u4f46\u4e00\u822c\u6765\u8bf4\u8981\u5c3d\u91cf\u907f\u514d\uff0c\u5c24\u5176\u662f\u5f53\u4e0d\u540c\u7c7b\u522b\u7684\u6570\u91cf\u8d85\u8fc7 3 \u4e2a\u65f6\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Histogram\nfig = plt.figure(figsize = (6,4))\ntitle = fig.suptitle(\"Sulphates Content in Wine\", fontsize=14)\nfig.subplots_adjust(top=0.85, wspace=0.3)\n\nax = fig.add_subplot(1,1, 1)\nax.set_xlabel(\"Sulphates\")\nax.set_ylabel(\"Frequency\") \nax.text(1.2, 800, r'$\\mu$='+str(round(wines&#91;'sulphates'].mean(),2)), \n &nbsp; &nbsp; &nbsp; &nbsp; fontsize=12)\nfreq, bins, patches = ax.hist(wines&#91;'sulphates'], color='steelblue', bins=15,\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;edgecolor='black', linewidth=1)\n\n\n# Density Plot\nfig = plt.figure(figsize = (6, 4))\ntitle = fig.suptitle(\"Sulphates Content in Wine\", fontsize=14)\nfig.subplots_adjust(top=0.85, wspace=0.3)\n\nax1 = fig.add_subplot(1,1, 1)\nax1.set_xlabel(\"Sulphates\")\nax1.set_ylabel(\"Frequency\") \nsns.kdeplot(wines&#91;'sulphates'], ax=ax1, shade=True, color='steelblue')\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"410\" height=\"288\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/5.png\" alt=\"\" class=\"wp-image-230\" srcset=\"https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/5.png 410w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/5-300x211.png 300w\" sizes=\"auto, (max-width: 410px) 100vw, 410px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u73b0\u5728\u6211\u4eec\u7ee7\u7eed\u5206\u6790\u66f4\u9ad8\u7ef4\u7684\u6570\u636e\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u591a\u53d8\u91cf\u5206\u6790<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u591a\u5143\u5206\u6790\u624d\u662f\u771f\u6b63\u6709\u610f\u601d\u5e76\u4e14\u6709\u590d\u6742\u6027\u7684\u9886\u57df\u3002\u8fd9\u91cc\u6211\u4eec\u5206\u6790\u591a\u4e2a\u6570\u636e\u7ef4\u5ea6\u6216\u5c5e\u6027\uff082 \u4e2a\u6216\u66f4\u591a\uff09\u3002\u591a\u53d8\u91cf\u5206\u6790\u4e0d\u4ec5\u5305\u62ec\u68c0\u67e5\u5206\u5e03\uff0c\u8fd8\u5305\u62ec\u8fd9\u4e9b\u5c5e\u6027\u4e4b\u95f4\u7684\u6f5c\u5728\u5173\u7cfb\u3001\u6a21\u5f0f\u548c\u76f8\u5173\u6027\u3002\u4f60\u4e5f\u53ef\u4ee5\u6839\u636e\u9700\u8981\u89e3\u51b3\u7684\u95ee\u9898\uff0c\u5229\u7528\u63a8\u65ad\u7edf\u8ba1\uff08inferential statistics\uff09\u548c\u5047\u8bbe\u68c0\u9a8c\uff0c\u68c0\u67e5\u4e0d\u540c\u5c5e\u6027\u3001\u7fa4\u4f53\u7b49\u7684\u7edf\u8ba1\u663e\u8457\u6027\uff08significance\uff09\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u53ef\u89c6\u5316 2 \u7ef4\u6570\u636e\uff082-D\uff09<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u68c0\u67e5\u4e0d\u540c\u6570\u636e\u5c5e\u6027\u4e4b\u95f4\u7684\u6f5c\u5728\u5173\u7cfb\u6216\u76f8\u5173\u6027\u7684\u6700\u4f73\u65b9\u6cd5\u4e4b\u4e00\u662f\u5229\u7528\u914d\u5bf9\u76f8\u5173\u6027\u77e9\u9635\uff08pair-wise correlation matrix\uff09\u5e76\u5c06\u5176\u53ef\u89c6\u5316\u4e3a\u70ed\u529b\u56fe\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Correlation Matrix Heatmap\nf, ax = plt.subplots(figsize=(10, 6))\ncorr = wines.corr()\nhm = sns.heatmap(round(corr,2), annot=True, ax=ax, cmap=\"coolwarm\",fmt='.2f',\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; linewidths=.05)\nf.subplots_adjust(top=0.93)\nt= f.suptitle('Wine Attributes Correlation Heatmap', fontsize=14)\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/6.png\" alt=\"\" class=\"wp-image-231\" width=\"645\" height=\"488\" srcset=\"https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/6.png 638w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/6-300x227.png 300w\" sizes=\"auto, (max-width: 645px) 100vw, 645px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u70ed\u529b\u56fe\u4e2d\u7684\u68af\u5ea6\u6839\u636e\u76f8\u5173\u6027\u7684\u5f3a\u5ea6\u800c\u53d8\u5316\uff0c\u4f60\u53ef\u4ee5\u5f88\u5bb9\u6613\u53d1\u73b0\u5f7c\u6b64\u4e4b\u95f4\u5177\u6709\u5f3a\u76f8\u5173\u6027\u7684\u6f5c\u5728\u5c5e\u6027\u3002\u53e6\u4e00\u79cd\u53ef\u89c6\u5316\u7684\u65b9\u6cd5\u662f\u5728\u611f\u5174\u8da3\u7684\u5c5e\u6027\u4e4b\u95f4\u4f7f\u7528\u914d\u5bf9\u6563\u70b9\u56fe\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Correlation Matrix Heatmap\nf, ax = plt.subplots(figsize=(10, 6))\ncorr = wines.corr()\nhm = sns.heatmap(round(corr,2), annot=True, ax=ax, cmap=\"coolwarm\",fmt='.2f',\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; linewidths=.05)\nf.subplots_adjust(top=0.93)\nt= f.suptitle('Wine Attributes Correlation Heatmap', fontsize=14)\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/7.png\" alt=\"\" class=\"wp-image-232\" width=\"629\" height=\"346\" srcset=\"https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/7.png 800w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/7-300x165.png 300w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/7-768x422.png 768w\" sizes=\"auto, (max-width: 629px) 100vw, 629px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6839\u636e\u4e0a\u56fe\uff0c\u53ef\u4ee5\u770b\u5230\u6563\u70b9\u56fe\u4e5f\u662f\u89c2\u5bdf\u6570\u636e\u5c5e\u6027\u7684 2 \u7ef4\u6f5c\u5728\u5173\u7cfb\u6216\u6a21\u5f0f\u7684\u6709\u6548\u65b9\u5f0f\u3002\u53e6\u4e00\u79cd\u5c06\u591a\u5143\u6570\u636e\u53ef\u89c6\u5316\u4e3a\u591a\u4e2a\u5c5e\u6027\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u5e73\u884c\u5750\u6807\u56fe\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Correlation Matrix Heatmap\nf, ax = plt.subplots(figsize=(10, 6))\ncorr = wines.corr()\nhm = sns.heatmap(round(corr,2), annot=True, ax=ax, cmap=\"coolwarm\",fmt='.2f',\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; linewidths=.05)\nf.subplots_adjust(top=0.93)\nt= f.suptitle('Wine Attributes Correlation Heatmap', fontsize=14)\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/8.png\" alt=\"\" class=\"wp-image-233\" width=\"526\" height=\"331\" srcset=\"https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/8.png 411w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/8-300x189.png 300w\" sizes=\"auto, (max-width: 526px) 100vw, 526px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u57fa\u672c\u4e0a\uff0c\u5728\u5982\u4e0a\u6240\u8ff0\u7684\u53ef\u89c6\u5316\u4e2d\uff0c\u70b9\u88ab\u8868\u5f81\u4e3a\u8fde\u63a5\u7684\u7ebf\u6bb5\u3002\u6bcf\u6761\u5782\u76f4\u7ebf\u4ee3\u8868\u4e00\u4e2a\u6570\u636e\u5c5e\u6027\u3002\u6240\u6709\u5c5e\u6027\u4e2d\u7684\u4e00\u7ec4\u5b8c\u6574\u7684\u8fde\u63a5\u7ebf\u6bb5\u8868\u5f81\u4e00\u4e2a\u6570\u636e\u70b9\u3002\u56e0\u6b64\uff0c\u8d8b\u4e8e\u540c\u4e00\u7c7b\u7684\u70b9\u5c06\u4f1a\u66f4\u52a0\u63a5\u8fd1\u3002\u4ec5\u4ec5\u901a\u8fc7\u89c2\u5bdf\u5c31\u53ef\u4ee5\u6e05\u695a\u770b\u5230\uff0c\u4e0e\u767d\u8461\u8404\u9152\u76f8\u6bd4\uff0c\u7ea2\u8461\u8404\u9152\u7684\u5bc6\u5ea6\u7565\u9ad8\u3002\u4e0e\u7ea2\u8461\u8404\u9152\u76f8\u6bd4\uff0c\u767d\u8461\u8404\u9152\u7684\u6b8b\u7cd6\u548c\u4e8c\u6c27\u5316\u786b\u603b\u91cf\u4e5f\u8f83\u9ad8\uff0c\u7ea2\u8461\u8404\u9152\u7684\u56fa\u5b9a\u9178\u5ea6\u9ad8\u4e8e\u767d\u8461\u8404\u9152\u3002\u67e5\u4e00\u4e0b\u6211\u4eec\u4e4b\u524d\u5f97\u5230\u7684\u7edf\u8ba1\u8868\u4e2d\u7684\u7edf\u8ba1\u6570\u636e\uff0c\u770b\u770b\u80fd\u5426\u9a8c\u8bc1\u8fd9\u4e2a\u5047\u8bbe\uff01<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u56e0\u6b64\uff0c\u8ba9\u6211\u4eec\u770b\u770b\u53ef\u89c6\u5316\u4e24\u4e2a\u8fde\u7eed\u578b\u6570\u503c\u5c5e\u6027\u7684\u65b9\u6cd5\u3002\u6563\u70b9\u56fe\u548c\u8054\u5408\u5206\u5e03\u56fe\uff08joint plot\uff09\u662f\u68c0\u67e5\u6a21\u5f0f\u3001\u5173\u7cfb\u4ee5\u53ca\u5c5e\u6027\u5206\u5e03\u7684\u7279\u522b\u597d\u7684\u65b9\u6cd5\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Scatter Plot\nplt.scatter(wines&#91;'sulphates'], wines&#91;'alcohol'],\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;alpha=0.4, edgecolors='w')\n\nplt.xlabel('Sulphates')\nplt.ylabel('Alcohol')\nplt.title('Wine Sulphates - Alcohol Content',y=1.05)\n\n\n# Joint Plot\njp = sns.jointplot(x='sulphates', y='alcohol', data=wines,\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; kind='reg', space=0, size=5, ratio=4)\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"744\" height=\"338\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/9.png\" alt=\"\" class=\"wp-image-234\" srcset=\"https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/9.png 744w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/9-300x136.png 300w\" sizes=\"auto, (max-width: 744px) 100vw, 744px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6563\u70b9\u56fe\u5728\u4e0a\u56fe\u5de6\u4fa7\uff0c\u8054\u5408\u5206\u5e03\u56fe\u5728\u53f3\u4fa7\u3002\u5c31\u50cf\u6211\u4eec\u63d0\u5230\u7684\u90a3\u6837\uff0c\u4f60\u53ef\u4ee5\u67e5\u770b\u8054\u5408\u5206\u5e03\u56fe\u4e2d\u7684\u76f8\u5173\u6027\u3001\u5173\u7cfb\u4ee5\u53ca\u5206\u5e03\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u4f55\u53ef\u89c6\u5316\u4e24\u4e2a\u8fde\u7eed\u578b\u6570\u503c\u5c5e\u6027\uff1f\u4e00\u79cd\u65b9\u6cd5\u662f\u4e3a\u5206\u7c7b\u7ef4\u5ea6\u753b\u5355\u72ec\u7684\u56fe\uff08\u5b50\u56fe\uff09\u6216\u5206\u9762\uff08facet\uff09\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Using subplots or facets along with Bar Plots\nfig = plt.figure(figsize = (10, 4))\ntitle = fig.suptitle(\"Wine Type - Quality\", fontsize=14)\nfig.subplots_adjust(top=0.85, wspace=0.3)\n# red wine - wine quality\nax1 = fig.add_subplot(1,2, 1)\nax1.set_title(\"Red Wine\")\nax1.set_xlabel(\"Quality\")\nax1.set_ylabel(\"Frequency\") \nrw_q = red_wine&#91;'quality'].value_counts()\nrw_q = (list(rw_q.index), list(rw_q.values))\nax1.set_ylim(&#91;0, 2500])\nax1.tick_params(axis='both', which='major', labelsize=8.5)\nbar1 = ax1.bar(rw_q&#91;0], rw_q&#91;1], color='red', \n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; edgecolor='black', linewidth=1)\n\n# white wine - wine quality\nax2 = fig.add_subplot(1,2, 2)\nax2.set_title(\"White Wine\")\nax2.set_xlabel(\"Quality\")\nax2.set_ylabel(\"Frequency\") \nww_q = white_wine&#91;'quality'].value_counts()\nww_q = (list(ww_q.index), list(ww_q.values))\nax2.set_ylim(&#91;0, 2500])\nax2.tick_params(axis='both', which='major', labelsize=8.5)\nbar2 = ax2.bar(ww_q&#91;0], ww_q&#91;1], color='white', \n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; edgecolor='black', linewidth=1)\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"617\" height=\"288\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/10.png\" alt=\"\" class=\"wp-image-235\" srcset=\"https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/10.png 617w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/10-300x140.png 300w\" sizes=\"auto, (max-width: 617px) 100vw, 617px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u867d\u7136\u8fd9\u662f\u4e00\u79cd\u53ef\u89c6\u5316\u5206\u7c7b\u6570\u636e\u7684\u597d\u65b9\u6cd5\uff0c\u4f46\u6b63\u5982\u6240\u89c1\uff0c\u5229\u7528 matplotlib \u9700\u8981\u7f16\u5199\u5927\u91cf\u7684\u4ee3\u7801\u3002\u53e6\u4e00\u4e2a\u597d\u65b9\u6cd5\u662f\u5728\u5355\u4e2a\u56fe\u4e2d\u4e3a\u4e0d\u540c\u7684\u5c5e\u6027\u753b\u5806\u79ef\u6761\u5f62\u56fe\u6216\u591a\u4e2a\u6761\u5f62\u56fe\u3002\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u5229\u7528 seaborn \u505a\u5230\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Multi-bar Plot\ncp = sns.countplot(x=\"quality\", hue=\"wine_type\", data=wines, \n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; palette={\"red\": \"#FF9999\", \"white\": \"#FFE888\"})\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"399\" height=\"263\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/11.png\" alt=\"\" class=\"wp-image-236\" srcset=\"https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/11.png 399w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/11-300x198.png 300w\" sizes=\"auto, (max-width: 399px) 100vw, 399px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u770b\u8d77\u6765\u66f4\u6e05\u6670\uff0c\u4f60\u4e5f\u53ef\u4ee5\u6709\u6548\u5730\u4ece\u5355\u4e2a\u56fe\u4e2d\u6bd4\u8f83\u4e0d\u540c\u7684\u7c7b\u522b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8ba9\u6211\u4eec\u770b\u770b\u53ef\u89c6\u5316 2 \u7ef4\u6df7\u5408\u5c5e\u6027\uff08\u5927\u591a\u6570\u517c\u6709\u6570\u503c\u548c\u5206\u7c7b\uff09\u3002\u4e00\u79cd\u65b9\u6cd5\u662f\u4f7f\u7528\u5206\u56fe \\ \u5b50\u56fe\u4e0e\u76f4\u65b9\u56fe\u6216\u6838\u5bc6\u5ea6\u56fe\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># facets with histograms\nfig = plt.figure(figsize = (10,4))\ntitle = fig.suptitle(\"Sulphates Content in Wine\", fontsize=14)\nfig.subplots_adjust(top=0.85, wspace=0.3)\n\nax1 = fig.add_subplot(1,2, 1)\nax1.set_title(\"Red Wine\")\nax1.set_xlabel(\"Sulphates\")\nax1.set_ylabel(\"Frequency\") \nax1.set_ylim(&#91;0, 1200])\nax1.text(1.2, 800, r'$\\mu$='+str(round(red_wine&#91;'sulphates'].mean(),2)), \n &nbsp; &nbsp; &nbsp; &nbsp; fontsize=12)\nr_freq, r_bins, r_patches = ax1.hist(red_wine&#91;'sulphates'], color='red', bins=15,\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; edgecolor='black', linewidth=1)\n\nax2 = fig.add_subplot(1,2, 2)\nax2.set_title(\"White Wine\")\nax2.set_xlabel(\"Sulphates\")\nax2.set_ylabel(\"Frequency\")\nax2.set_ylim(&#91;0, 1200])\nax2.text(0.8, 800, r'$\\mu$='+str(round(white_wine&#91;'sulphates'].mean(),2)), \n &nbsp; &nbsp; &nbsp; &nbsp; fontsize=12)\nw_freq, w_bins, w_patches = ax2.hist(white_wine&#91;'sulphates'], color='white', bins=15,\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; edgecolor='black', linewidth=1)\n\n\n# facets with density plots\nfig = plt.figure(figsize = (10, 4))\ntitle = fig.suptitle(\"Sulphates Content in Wine\", fontsize=14)\nfig.subplots_adjust(top=0.85, wspace=0.3)\n\nax1 = fig.add_subplot(1,2, 1)\nax1.set_title(\"Red Wine\")\nax1.set_xlabel(\"Sulphates\")\nax1.set_ylabel(\"Density\") \nsns.kdeplot(red_wine&#91;'sulphates'], ax=ax1, shade=True, color='r')\n\nax2 = fig.add_subplot(1,2, 2)\nax2.set_title(\"White Wine\")\nax2.set_xlabel(\"Sulphates\")\nax2.set_ylabel(\"Density\") \nsns.kdeplot(white_wine&#91;'sulphates'], ax=ax2, shade=True, color='y')\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"583\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/12.png\" alt=\"\" class=\"wp-image-237\" srcset=\"https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/12.png 624w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/12-300x280.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u867d\u7136\u8fd9\u5f88\u597d\uff0c\u4f46\u662f\u6211\u4eec\u518d\u4e00\u6b21\u7f16\u5199\u4e86\u5927\u91cf\u4ee3\u7801\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5229\u7528 seaborn \u907f\u514d\u8fd9\u4e9b\uff0c\u5728\u5355\u4e2a\u56fe\u8868\u4e2d\u753b\u51fa\u8fd9\u4e9b\u56fe\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Using multiple Histograms \nfig = plt.figure(figsize = (6, 4))\ntitle = fig.suptitle(\"Sulphates Content in Wine\", fontsize=14)\nfig.subplots_adjust(top=0.85, wspace=0.3)\nax = fig.add_subplot(1,1, 1)\nax.set_xlabel(\"Sulphates\")\nax.set_ylabel(\"Frequency\") \n\ng = sns.FacetGrid(wines, hue='wine_type', palette={\"red\": \"r\", \"white\": \"y\"})\ng.map(sns.distplot, 'sulphates', kde=False, bins=15, ax=ax)\nax.legend(title='Wine Type')\nplt.close(2)\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"402\" height=\"288\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/13.png\" alt=\"\" class=\"wp-image-238\" srcset=\"https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/13.png 402w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/13-300x215.png 300w\" sizes=\"auto, (max-width: 402px) 100vw, 402px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\u5229\u7528\u591a\u7ef4\u76f4\u65b9\u56fe\u53ef\u89c6\u5316 2 \u7ef4\u6df7\u5408\u5c5e\u6027<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u53ef\u4ee5\u770b\u5230\u4e0a\u9762\u751f\u6210\u7684\u56fe\u5f62\u6e05\u6670\u7b80\u6d01\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u6bd4\u8f83\u5404\u79cd\u5206\u5e03\u3002\u9664\u6b64\u4e4b\u5916\uff0c\u7bb1\u7ebf\u56fe\uff08box plot\uff09\u662f\u6839\u636e\u5206\u7c7b\u5c5e\u6027\u4e2d\u7684\u4e0d\u540c\u6570\u503c\u6709\u6548\u63cf\u8ff0\u6570\u503c\u6570\u636e\u7ec4\u7684\u53e6\u4e00\u79cd\u65b9\u6cd5\u3002\u7bb1\u7ebf\u56fe\u662f\u4e86\u89e3\u6570\u636e\u4e2d\u56db\u5206\u4f4d\u6570\u503c\u4ee5\u53ca\u6f5c\u5728\u5f02\u5e38\u503c\u7684\u597d\u65b9\u6cd5\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Box Plots\nf, (ax) = plt.subplots(1, 1, figsize=(12, 4))\nf.suptitle('Wine Quality - Alcohol Content', fontsize=14)\n\nsns.boxplot(x=\"quality\", y=\"alcohol\", data=wines, &nbsp;ax=ax)\nax.set_xlabel(\"Wine Quality\",size = 12,alpha=0.8)\nax.set_ylabel(\"Wine Alcohol %\",size = 12,alpha=0.8)\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"728\" height=\"290\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/14.png\" alt=\"\" class=\"wp-image-239\" srcset=\"https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/14.png 728w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/14-300x120.png 300w\" sizes=\"auto, (max-width: 728px) 100vw, 728px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u53e6\u4e00\u4e2a\u7c7b\u4f3c\u7684\u53ef\u89c6\u5316\u662f\u5c0f\u63d0\u7434\u56fe\uff0c\u8fd9\u662f\u4f7f\u7528\u6838\u5bc6\u5ea6\u56fe\u663e\u793a\u5206\u7ec4\u6570\u503c\u6570\u636e\u7684\u53e6\u4e00\u79cd\u6709\u6548\u65b9\u6cd5\uff08\u63cf\u7ed8\u4e86\u6570\u636e\u5728\u4e0d\u540c\u503c\u4e0b\u7684\u6982\u7387\u5bc6\u5ea6\uff09\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Violin Plots\nf, (ax) = plt.subplots(1, 1, figsize=(12, 4))\nf.suptitle('Wine Quality - Sulphates Content', fontsize=14)\n\nsns.violinplot(x=\"quality\", y=\"sulphates\", data=wines, &nbsp;ax=ax)\nax.set_xlabel(\"Wine Quality\",size = 12,alpha=0.8)\nax.set_ylabel(\"Wine Sulphates\",size = 12,alpha=0.8)\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/15.png\" alt=\"\" class=\"wp-image-240\" width=\"676\" height=\"266\" srcset=\"https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/15.png 738w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/15-300x118.png 300w\" sizes=\"auto, (max-width: 676px) 100vw, 676px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f60\u53ef\u4ee5\u6e05\u695a\u770b\u5230\u4e0a\u9762\u7684\u4e0d\u540c\u9152\u54c1\u8d28\u7c7b\u522b\u7684\u8461\u8404\u9152\u786b\u9178\u76d0\u7684\u5bc6\u5ea6\u56fe\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5c06 2 \u7ef4\u6570\u636e\u53ef\u89c6\u5316\u975e\u5e38\u7b80\u5355\u76f4\u63a5\uff0c\u4f46\u662f\u968f\u7740\u7ef4\u6570\uff08\u5c5e\u6027\uff09\u6570\u91cf\u7684\u589e\u52a0\uff0c\u6570\u636e\u5f00\u59cb\u53d8\u5f97\u590d\u6742\u3002\u539f\u56e0\u662f\u56e0\u4e3a\u6211\u4eec\u53d7\u5230\u663e\u793a\u5a92\u4ecb\u548c\u73af\u5883\u7684\u53cc\u91cd\u7ea6\u675f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5bf9\u4e8e 3 \u7ef4\u6570\u636e\uff0c\u53ef\u4ee5\u901a\u8fc7\u5728\u56fe\u8868\u4e2d\u91c7\u7528 z \u8f74\u6216\u5229\u7528\u5b50\u56fe\u548c\u5206\u9762\u6765\u5f15\u5165\u6df1\u5ea6\u7684\u865a\u62df\u5750\u6807\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f46\u662f\uff0c\u5bf9\u4e8e 3 \u7ef4\u4ee5\u4e0a\u7684\u6570\u636e\u6765\u8bf4\uff0c\u66f4\u96be\u4ee5\u76f4\u89c2\u5730\u8868\u5f81\u3002\u9ad8\u4e8e 3 \u7ef4\u7684\u6700\u597d\u65b9\u6cd5\u662f\u4f7f\u7528\u56fe\u5206\u9762\u3001\u989c\u8272\u3001\u5f62\u72b6\u3001\u5927\u5c0f\u3001\u6df1\u5ea6\u7b49\u7b49\u3002\u4f60\u8fd8\u53ef\u4ee5\u4f7f\u7528\u65f6\u95f4\u4f5c\u4e3a\u7ef4\u5ea6\uff0c\u4e3a\u968f\u65f6\u95f4\u53d8\u5316\u7684\u5c5e\u6027\u5236\u4f5c\u4e00\u6bb5\u52a8\u753b\uff08\u8fd9\u91cc\u65f6\u95f4\u662f\u6570\u636e\u4e2d\u7684\u7ef4\u5ea6\uff09\u3002\u770b\u770b Hans Roslin \u7684\u7cbe\u5f69\u6f14\u8bb2\u5c31\u4f1a\u83b7\u5f97\u76f8\u540c\u7684\u60f3\u6cd5\uff01<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u53ef\u89c6\u5316 3 \u7ef4\u6570\u636e\uff083-D\uff09<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u91cc\u7814\u7a76\u6709 3 \u4e2a\u5c5e\u6027\u6216\u7ef4\u5ea6\u7684\u6570\u636e\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8003\u8651\u914d\u5bf9\u6563\u70b9\u56fe\u5e76\u5f15\u5165\u989c\u8272\u6216\u8272\u8c03\u5c06\u5206\u7c7b\u7ef4\u5ea6\u4e2d\u7684\u503c\u5206\u79bb\u51fa\u6765\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Scatter Plot with Hue for visualizing data in 3-D\ncols = &#91;'density', 'residual sugar', 'total sulfur dioxide', 'fixed acidity', 'wine_type']\npp = sns.pairplot(wines&#91;cols], hue='wine_type', size=1.8, aspect=1.8, \n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;palette={\"red\": \"#FF9999\", \"white\": \"#FFE888\"},\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;plot_kws=dict(edgecolor=\"black\", linewidth=0.5))\nfig = pp.fig \nfig.subplots_adjust(top=0.93, wspace=0.3)\nt = fig.suptitle('Wine Attributes Pairwise Plots', fontsize=14)\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/16.png\" alt=\"\" class=\"wp-image-241\" width=\"687\" height=\"349\" srcset=\"https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/16.png 800w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/16-300x153.png 300w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/16-768x391.png 768w\" sizes=\"auto, (max-width: 687px) 100vw, 687px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0a\u56fe\u53ef\u4ee5\u67e5\u770b\u76f8\u5173\u6027\u548c\u6a21\u5f0f\uff0c\u4e5f\u53ef\u4ee5\u6bd4\u8f83\u8461\u8404\u9152\u7ec4\u3002\u5c31\u50cf\u6211\u4eec\u53ef\u4ee5\u6e05\u695a\u5730\u770b\u5230\u767d\u8461\u8404\u9152\u7684\u603b\u4e8c\u6c27\u5316\u786b\u548c\u6b8b\u7cd6\u6bd4\u7ea2\u8461\u8404\u9152\u9ad8\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8ba9\u6211\u4eec\u6765\u770b\u770b\u53ef\u89c6\u5316 3 \u4e2a\u8fde\u7eed\u578b\u6570\u503c\u5c5e\u6027\u7684\u7b56\u7565\u3002\u4e00\u79cd\u65b9\u6cd5\u662f\u5c06 2 \u4e2a\u7ef4\u5ea6\u8868\u5f81\u4e3a\u5e38\u89c4\u957f\u5ea6\uff08x \u8f74\uff09\u548c\u5bbd\u5ea6\uff08y \u8f74\uff09\u5e76\u4e14\u5c06\u7b2c 3 \u7ef4\u8868\u5f81\u4e3a\u6df1\u5ea6\uff08z \u8f74\uff09\u7684\u6982\u5ff5\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Visualizing 3-D numeric data with Scatter Plots\n# length, breadth and depth\nfig = plt.figure(figsize=(8, 6))\nax = fig.add_subplot(111, projection='3d')\n\nxs = wines&#91;'residual sugar']\nys = wines&#91;'fixed acidity']\nzs = wines&#91;'alcohol']\nax.scatter(xs, ys, zs, s=50, alpha=0.6, edgecolors='w')\n\nax.set_xlabel('Residual Sugar')\nax.set_ylabel('Fixed Acidity')\nax.set_zlabel('Alcohol')\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"430\" height=\"336\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/17.png\" alt=\"\" class=\"wp-image-242\" srcset=\"https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/17.png 430w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/17-300x234.png 300w\" sizes=\"auto, (max-width: 430px) 100vw, 430px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u4eec\u8fd8\u53ef\u4ee5\u5229\u7528\u5e38\u89c4\u7684 2 \u7ef4\u5750\u6807\u8f74\uff0c\u5e76\u5c06\u5c3a\u5bf8\u5927\u5c0f\u7684\u6982\u5ff5\u4f5c\u4e3a\u7b2c 3 \u7ef4\uff08\u672c\u8d28\u4e0a\u662f\u6c14\u6ce1\u56fe\uff09\uff0c\u5176\u4e2d\u70b9\u7684\u5c3a\u5bf8\u5927\u5c0f\u8868\u5f81\u7b2c 3 \u7ef4\u7684\u6570\u91cf\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Visualizing 3-D numeric data with a bubble chart\n# length, breadth and size\nplt.scatter(wines&#91;'fixed acidity'], wines&#91;'alcohol'], s=wines&#91;'residual sugar']*25, \n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;alpha=0.4, edgecolors='w')\n\nplt.xlabel('Fixed Acidity')\nplt.ylabel('Alcohol')\nplt.title('Wine Alcohol Content - Fixed Acidity - Residual Sugar',y=1.05)\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/18.png\" alt=\"\" class=\"wp-image-243\" width=\"515\" height=\"380\" srcset=\"https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/18.png 396w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/18-300x221.png 300w\" sizes=\"auto, (max-width: 515px) 100vw, 515px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u56e0\u6b64\uff0c\u4f60\u53ef\u4ee5\u770b\u5230\u4e0a\u9762\u7684\u56fe\u8868\u4e0d\u662f\u4e00\u4e2a\u4f20\u7edf\u7684\u6563\u70b9\u56fe\uff0c\u800c\u662f\u70b9\uff08\u6c14\u6ce1\uff09\u5927\u5c0f\u57fa\u4e8e\u4e0d\u540c\u6b8b\u7cd6\u91cf\u7684\u7684\u6c14\u6ce1\u56fe\u3002\u5f53\u7136\uff0c\u5e76\u4e0d\u603b\u50cf\u8fd9\u79cd\u60c5\u51b5\u53ef\u4ee5\u53d1\u73b0\u6570\u636e\u660e\u786e\u7684\u6a21\u5f0f\uff0c\u6211\u4eec\u770b\u5230\u5176\u5b83\u4e24\u4e2a\u7ef4\u5ea6\u7684\u5927\u5c0f\u4e5f\u4e0d\u540c\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e3a\u4e86\u53ef\u89c6\u5316 3 \u4e2a\u79bb\u6563\u578b\u5206\u7c7b\u5c5e\u6027\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u5e38\u89c4\u7684\u6761\u5f62\u56fe\uff0c\u53ef\u4ee5\u5229\u7528\u8272\u8c03\u7684\u6982\u5ff5\u4ee5\u53ca\u5206\u9762\u6216\u5b50\u56fe\u8868\u5f81\u989d\u5916\u7684\u7b2c 3 \u4e2a\u7ef4\u5ea6\u3002seaborn \u6846\u67b6\u5e2e\u52a9\u6211\u4eec\u6700\u5927\u7a0b\u5ea6\u5730\u51cf\u5c11\u4ee3\u7801\uff0c\u5e76\u9ad8\u6548\u5730\u7ed8\u56fe\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Visualizing 3-D categorical data using bar plots\n# leveraging the concepts of hue and facets\nfc = sns.factorplot(x=\"quality\", hue=\"wine_type\", col=\"quality_label\", \n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;data=wines, kind=\"count\",\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;palette={\"red\": \"#FF9999\", \"white\": \"#FFE888\"})\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/19.png\" alt=\"\" class=\"wp-image-244\" width=\"711\" height=\"207\" srcset=\"https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/19.png 800w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/19-300x88.png 300w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/19-768x225.png 768w\" sizes=\"auto, (max-width: 711px) 100vw, 711px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0a\u9762\u7684\u56fe\u8868\u6e05\u695a\u5730\u663e\u793a\u4e86\u4e0e\u6bcf\u4e2a\u7ef4\u5ea6\u76f8\u5173\u7684\u9891\u7387\uff0c\u53ef\u4ee5\u770b\u5230\uff0c\u901a\u8fc7\u56fe\u8868\u80fd\u591f\u5bb9\u6613\u6709\u6548\u5730\u7406\u89e3\u76f8\u5173\u5185\u5bb9\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8003\u8651\u5230\u53ef\u89c6\u5316 3 \u7ef4\u6df7\u5408\u5c5e\u6027\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u8272\u8c03\u7684\u6982\u5ff5\u6765\u5c06\u5176\u4e2d\u4e00\u4e2a\u5206\u7c7b\u5c5e\u6027\u53ef\u89c6\u5316\uff0c\u540c\u65f6\u4f7f\u7528\u4f20\u7edf\u7684\u5982\u6563\u70b9\u56fe\u6765\u53ef\u89c6\u5316\u6570\u503c\u5c5e\u6027\u7684 2 \u4e2a\u7ef4\u5ea6\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Visualizing 3-D mix data using scatter plots\n# leveraging the concepts of hue for categorical dimension\njp = sns.pairplot(wines, x_vars=&#91;\"sulphates\"], y_vars=&#91;\"alcohol\"], size=4.5,\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hue=\"wine_type\", palette={\"red\": \"#FF9999\", \"white\": \"#FFE888\"},\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;plot_kws=dict(edgecolor=\"k\", linewidth=0.5))\n\n# we can also view relationships\\correlations as needed &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\nlp = sns.lmplot(x='sulphates', y='alcohol', hue='wine_type', \n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;palette={\"red\": \"#FF9999\", \"white\": \"#FFE888\"},\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;data=wines, fit_reg=True, legend=True,\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;scatter_kws=dict(edgecolor=\"k\", linewidth=0.5)) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"335\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/20.png\" alt=\"\" class=\"wp-image-245\" srcset=\"https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/20.png 800w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/20-300x126.png 300w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/20-768x322.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u56e0\u6b64\uff0c\u8272\u8c03\u4f5c\u4e3a\u7c7b\u522b\u6216\u7fa4\u4f53\u7684\u826f\u597d\u533a\u5206\uff0c\u867d\u7136\u5982\u4e0a\u56fe\u89c2\u5bdf\u6ca1\u6709\u76f8\u5173\u6027\u6216\u76f8\u5173\u6027\u975e\u5e38\u5f31\uff0c\u4f46\u4ece\u8fd9\u4e9b\u56fe\u4e2d\u6211\u4eec\u4ecd\u53ef\u4ee5\u7406\u89e3\uff0c\u4e0e\u767d\u8461\u8404\u9152\u76f8\u6bd4\uff0c\u7ea2\u8461\u8404\u9152\u7684\u786b\u9178\u76d0\u542b\u91cf\u8f83\u9ad8\u3002\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528\u6838\u5bc6\u5ea6\u56fe\u4ee3\u66ff\u6563\u70b9\u56fe\u6765\u7406\u89e3 3 \u7ef4\u6570\u636e\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Visualizing 3-D mix data using kernel density plots\n# leveraging the concepts of hue for categorical dimension\nax = sns.kdeplot(white_wine&#91;'sulphates'], white_wine&#91;'alcohol'],\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cmap=\"YlOrBr\", shade=True, shade_lowest=False)\nax = sns.kdeplot(red_wine&#91;'sulphates'], red_wine&#91;'alcohol'],\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cmap=\"Reds\", shade=True, shade_lowest=False) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/21.png\" alt=\"\" class=\"wp-image-246\" width=\"542\" height=\"366\" srcset=\"https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/21.png 394w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/21-300x203.png 300w\" sizes=\"auto, (max-width: 542px) 100vw, 542px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0e\u9884\u671f\u4e00\u81f4\u4e14\u76f8\u5f53\u660e\u663e\uff0c\u7ea2\u8461\u8404\u9152\u6837\u54c1\u6bd4\u767d\u8461\u8404\u9152\u5177\u6709\u66f4\u9ad8\u7684\u786b\u9178\u76d0\u542b\u91cf\u3002\u4f60\u8fd8\u53ef\u4ee5\u6839\u636e\u8272\u8c03\u5f3a\u5ea6\u67e5\u770b\u5bc6\u5ea6\u6d53\u5ea6\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u6211\u4eec\u6b63\u5728\u5904\u7406\u6709\u591a\u4e2a\u5206\u7c7b\u5c5e\u6027\u7684 3 \u7ef4\u6570\u636e\uff0c\u6211\u4eec\u53ef\u4ee5\u5229\u7528\u8272\u8c03\u548c\u5176\u4e2d\u4e00\u4e2a\u5e38\u89c4\u8f74\u8fdb\u884c\u53ef\u89c6\u5316\uff0c\u5e76\u4f7f\u7528\u5982\u7bb1\u7ebf\u56fe\u6216\u5c0f\u63d0\u7434\u56fe\u6765\u53ef\u89c6\u5316\u4e0d\u540c\u7684\u6570\u636e\u7ec4\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Visualizing 3-D mix data using violin plots\n# leveraging the concepts of hue and axes for &gt; 1 categorical dimensions\nf, (ax1, ax2) = plt.subplots(1, 2, figsize=(14, 4))\nf.suptitle('Wine Type - Quality - Acidity', fontsize=14)\n\nsns.violinplot(x=\"quality\", y=\"volatile acidity\",\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; data=wines, inner=\"quart\", linewidth=1.3,ax=ax1)\nax1.set_xlabel(\"Wine Quality\",size = 12,alpha=0.8)\nax1.set_ylabel(\"Wine Volatile Acidity\",size = 12,alpha=0.8)\n\nsns.violinplot(x=\"quality\", y=\"volatile acidity\", hue=\"wine_type\", \n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; data=wines, split=True, inner=\"quart\", linewidth=1.3,\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; palette={\"red\": \"#FF9999\", \"white\": \"white\"}, ax=ax2)\nax2.set_xlabel(\"Wine Quality\",size = 12,alpha=0.8)\nax2.set_ylabel(\"Wine Volatile Acidity\",size = 12,alpha=0.8)\nl = plt.legend(loc='upper right', title='Wine Type') &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/22.png\" alt=\"\" class=\"wp-image-247\" width=\"680\" height=\"231\" srcset=\"https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/22.png 800w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/22-300x102.png 300w, https:\/\/www.urbin.top\/wp-content\/uploads\/2020\/06\/22-768x261.png 768w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u4e0a\u56fe\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230\uff0c\u5728\u53f3\u8fb9\u7684 3 \u7ef4\u53ef\u89c6\u5316\u56fe\u4e2d\uff0c\u6211\u4eec\u7528 x \u8f74\u8868\u793a\u8461\u8404\u9152\u8d28\u91cf\uff0cwine_type \u7528\u8272\u8c03\u8868\u5f81\u3002\u6211\u4eec\u53ef\u4ee5\u6e05\u695a\u5730\u770b\u5230\u4e00\u4e9b\u6709\u8da3\u7684\u89c1\u89e3\uff0c\u4f8b\u5982\u4e0e\u767d\u8461\u8404\u9152\u76f8\u6bd4\u7ea2\u8461\u8404\u9152\u7684\u6325\u53d1\u6027\u9178\u5ea6\u66f4\u9ad8\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f60\u4e5f\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u7bb1\u7ebf\u56fe\u6765\u4ee3\u8868\u5177\u6709\u591a\u4e2a\u5206\u7c7b\u53d8\u91cf\u7684\u6df7\u5408\u5c5e\u6027\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Visualizing 3-D mix data using box plots\n# leveraging the concepts of hue and axes for &gt; 1 categorical dimensions\nf, (ax1, ax2) = plt.subplots(1, 2, figsize=(14, 4))\nf.suptitle('Wine Type - Quality - Alcohol Content', fontsize=14)\n\nsns.boxplot(x=\"quality\", y=\"alcohol\", hue=\"wine_type\",\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; data=wines, palette={\"red\": \"#FF9999\", \"white\": \"white\"}, ax=ax1)\nax1.set_xlabel(\"Wine Quality\",size = 12,alpha=0.8)\nax1.set_ylabel(\"Wine Alcohol %\",size = 12,alpha=0.8)\n\nsns.boxplot(x=\"quality_label\", y=\"alcohol\", hue=\"wine_type\",\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; data=wines, palette={\"red\": \"#FF9999\", \"white\": \"white\"}, ax=ax2)\nax2.set_xlabel(\"Wine Quality Class\",size = 12,alpha=0.8)\nax2.set_ylabel(\"Wine Alcohol %\",size = 12,alpha=0.8)\nl = plt.legend(loc='best', title='Wine Type') &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/23.png\" alt=\"\" class=\"wp-image-248\" width=\"800\" height=\"275\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u4eec\u53ef\u4ee5\u770b\u5230\uff0c\u5bf9\u4e8e\u8d28\u91cf\u548c quality_label \u5c5e\u6027\uff0c\u8461\u8404\u9152\u9152\u7cbe\u542b\u91cf\u90fd\u4f1a\u968f\u7740\u8d28\u91cf\u7684\u63d0\u9ad8\u800c\u589e\u52a0\u3002\u53e6\u5916\u7ea2\u8461\u8404\u9152\u4e0e\u76f8\u540c\u54c1\u8d28\u7c7b\u522b\u7684\u767d\u8461\u8404\u9152\u76f8\u6bd4\u5177\u6709\u66f4\u9ad8\u7684\u9152\u7cbe\u542b\u91cf\uff08\u4e2d\u4f4d\u6570\uff09\u3002\u7136\u800c\uff0c\u5982\u679c\u68c0\u67e5\u8d28\u91cf\u7b49\u7ea7\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230\uff0c\u5bf9\u4e8e\u8f83\u4f4e\u7b49\u7ea7\u7684\u8461\u8404\u9152\uff083 \u548c 4\uff09\uff0c\u767d\u8461\u8404\u9152\u9152\u7cbe\u542b\u91cf\uff08\u4e2d\u4f4d\u6570\uff09\u5927\u4e8e\u7ea2\u8461\u8404\u9152\u6837\u54c1\u3002\u5426\u5219\uff0c\u7ea2\u8461\u8404\u9152\u4e0e\u767d\u8461\u8404\u9152\u76f8\u6bd4\u4f3c\u4e4e\u9152\u7cbe\u542b\u91cf\uff08\u4e2d\u4f4d\u6570\uff09\u7565\u9ad8\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u53ef\u89c6\u5316 4 \u7ef4\u6570\u636e\uff084-D\uff09<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u57fa\u4e8e\u4e0a\u8ff0\u8ba8\u8bba\uff0c\u6211\u4eec\u5229\u7528\u56fe\u8868\u7684\u5404\u4e2a\u7ec4\u4ef6\u53ef\u89c6\u5316\u591a\u4e2a\u7ef4\u5ea6\u3002\u4e00\u79cd\u53ef\u89c6\u5316 4 \u7ef4\u6570\u636e\u7684\u65b9\u6cd5\u662f\u5728\u4f20\u7edf\u56fe\u5982\u6563\u70b9\u56fe\u4e2d\u5229\u7528\u6df1\u5ea6\u548c\u8272\u8c03\u8868\u5f81\u7279\u5b9a\u7684\u6570\u636e\u7ef4\u5ea6\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Visualizing 4-D mix data using scatter plots\n# leveraging the concepts of hue and depth\nfig = plt.figure(figsize=(8, 6))\nt = fig.suptitle('Wine Residual Sugar - Alcohol Content - Acidity - Type', fontsize=14)\nax = fig.add_subplot(111, projection='3d')\n\nxs = list(wines&#91;'residual sugar'])\nys = list(wines&#91;'alcohol'])\nzs = list(wines&#91;'fixed acidity'])\ndata_points = &#91;(x, y, z) for x, y, z in zip(xs, ys, zs)]\ncolors = &#91;'red' if wt == 'red' else 'yellow' for wt in list(wines&#91;'wine_type'])]\n\nfor data, color in zip(data_points, colors):\n &nbsp; &nbsp;x, y, z = data\n &nbsp; &nbsp;ax.scatter(x, y, z, alpha=0.4, c=color, edgecolors='none', s=30)\n\nax.set_xlabel('Residual Sugar')\nax.set_ylabel('Alcohol')\nax.set_zlabel('Fixed Acidity') &nbsp; &nbsp; &nbsp;\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/24.png\" alt=\"\" class=\"wp-image-249\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">wine_type \u5c5e\u6027\u7531\u4e0a\u56fe\u4e2d\u7684\u8272\u8c03\u8868\u5f81\u5f97\u76f8\u5f53\u660e\u663e\u3002\u6b64\u5916\uff0c\u7531\u4e8e\u56fe\u7684\u590d\u6742\u6027\uff0c\u89e3\u91ca\u8fd9\u4e9b\u53ef\u89c6\u5316\u5f00\u59cb\u53d8\u5f97\u56f0\u96be\uff0c\u4f46\u6211\u4eec\u4ecd\u7136\u53ef\u4ee5\u770b\u51fa\uff0c\u4f8b\u5982\u7ea2\u8461\u8404\u9152\u7684\u56fa\u5b9a\u9178\u5ea6\u66f4\u9ad8\uff0c\u767d\u8461\u8404\u9152\u7684\u6b8b\u7cd6\u66f4\u9ad8\u3002\u5f53\u7136\uff0c\u5982\u679c\u9152\u7cbe\u548c\u56fa\u5b9a\u9178\u5ea6\u4e4b\u95f4\u6709\u67d0\u79cd\u8054\u7cfb\uff0c\u6211\u4eec\u53ef\u80fd\u4f1a\u770b\u5230\u4e00\u4e2a\u9010\u6e10\u589e\u52a0\u6216\u51cf\u5c11\u7684\u6570\u636e\u70b9\u8d8b\u52bf\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u53e6\u4e00\u4e2a\u7b56\u7565\u662f\u4f7f\u7528\u4e8c\u7ef4\u56fe\uff0c\u4f46\u5229\u7528\u8272\u8c03\u548c\u6570\u636e\u70b9\u5927\u5c0f\u4f5c\u4e3a\u6570\u636e\u7ef4\u5ea6\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u8fd9\u5c06\u7c7b\u4f3c\u4e8e\u6c14\u6ce1\u56fe\u7b49\u6211\u4eec\u5148\u524d\u53ef\u89c6\u5316\u7684\u56fe\u8868\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Visualizing 4-D mix data using bubble plots\n# leveraging the concepts of hue and size\nsize = wines&#91;'residual sugar']*25\nfill_colors = &#91;'#FF9999' if wt=='red' else '#FFE888' for wt in list(wines&#91;'wine_type'])]\nedge_colors = &#91;'red' if wt=='red' else 'orange' for wt in list(wines&#91;'wine_type'])]\n\nplt.scatter(wines&#91;'fixed acidity'], wines&#91;'alcohol'], s=size, \n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;alpha=0.4, color=fill_colors, edgecolors=edge_colors)\n\nplt.xlabel('Fixed Acidity')\nplt.ylabel('Alcohol')\nplt.title('Wine Alcohol Content - Fixed Acidity - Residual Sugar - Type',y=1.05) \n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/25-1.png\" alt=\"\" class=\"wp-image-250\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u4eec\u7528\u8272\u8c03\u4ee3\u8868 wine_type \u548c\u6570\u636e\u70b9\u5927\u5c0f\u4ee3\u8868\u6b8b\u7cd6\u3002\u6211\u4eec\u786e\u5b9e\u770b\u5230\u4e86\u4e0e\u524d\u9762\u56fe\u8868\u4e2d\u89c2\u5bdf\u5230\u7684\u76f8\u4f3c\u6a21\u5f0f\uff0c\u767d\u8461\u8404\u9152\u6c14\u6ce1\u5c3a\u5bf8\u66f4\u5927\u8868\u5f81\u4e86\u767d\u8461\u8404\u9152\u7684\u6b8b\u7cd6\u503c\u66f4\u9ad8\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u6211\u4eec\u6709\u591a\u4e8e\u4e24\u4e2a\u5206\u7c7b\u5c5e\u6027\u8868\u5f81\uff0c\u53ef\u5728\u5e38\u89c4\u7684\u6563\u70b9\u56fe\u63cf\u8ff0\u6570\u503c\u6570\u636e\u7684\u57fa\u7840\u4e0a\u5229\u7528\u8272\u8c03\u548c\u5206\u9762\u6765\u63cf\u8ff0\u8fd9\u4e9b\u5c5e\u6027\u3002\u6211\u4eec\u6765\u770b\u51e0\u4e2a\u5b9e\u4f8b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Visualizing 4-D mix data using scatter plots\n# leveraging the concepts of hue and facets for &gt; 1 categorical attributes\ng = sns.FacetGrid(wines, col=\"wine_type\", hue='quality_label', \n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;col_order=&#91;'red', 'white'], hue_order=&#91;'low', 'medium', 'high'],\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aspect=1.2, size=3.5, palette=sns.light_palette('navy', 4)&#91;1:])\ng.map(plt.scatter, \"volatile acidity\", \"alcohol\", alpha=0.9, \n &nbsp; &nbsp; &nbsp;edgecolor='white', linewidth=0.5, s=100)\nfig = g.fig \nfig.subplots_adjust(top=0.8, wspace=0.3)\nfig.suptitle('Wine Type - Alcohol - Quality - Acidity', fontsize=14)\nl = g.add_legend(title='Wine Quality Class')\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/26-1.png\" alt=\"\" class=\"wp-image-251\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u79cd\u53ef\u89c6\u5316\u7684\u6709\u6548\u6027\u4f7f\u5f97\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u8bc6\u522b\u591a\u79cd\u6a21\u5f0f\u3002\u767d\u8461\u8404\u9152\u7684\u6325\u53d1\u9178\u5ea6\u8f83\u4f4e\uff0c\u540c\u65f6\u9ad8\u54c1\u8d28\u8461\u8404\u9152\u5177\u6709\u8f83\u4f4e\u7684\u9178\u5ea6\u3002\u4e5f\u57fa\u4e8e\u767d\u8461\u8404\u9152\u6837\u672c\uff0c\u9ad8\u54c1\u8d28\u7684\u8461\u8404\u9152\u6709\u66f4\u9ad8\u7684\u9152\u7cbe\u542b\u91cf\u548c\u4f4e\u54c1\u8d28\u7684\u8461\u8404\u9152\u6709\u6700\u4f4e\u7684\u9152\u7cbe\u542b\u91cf\uff01<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8ba9\u6211\u4eec\u501f\u52a9\u4e00\u4e2a\u7c7b\u4f3c\u5b9e\u4f8b\uff0c\u5e76\u5efa\u7acb\u4e00\u4e2a 4 \u7ef4\u6570\u636e\u7684\u53ef\u89c6\u5316\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Visualizing 4-D mix data using scatter plots\n# leveraging the concepts of hue and facets for &gt; 1 categorical attributes\ng = sns.FacetGrid(wines, col=\"wine_type\", hue='quality_label', \n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;col_order=&#91;'red', 'white'], hue_order=&#91;'low', 'medium', 'high'],\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aspect=1.2, size=3.5, palette=sns.light_palette('navy', 4)&#91;1:])\ng.map(plt.scatter, \"volatile acidity\", \"alcohol\", alpha=0.9, \n &nbsp; &nbsp; &nbsp;edgecolor='white', linewidth=0.5, s=100)\nfig = g.fig \nfig.subplots_adjust(top=0.8, wspace=0.3)\nfig.suptitle('Wine Type - Alcohol - Quality - Acidity', fontsize=14)\nl = g.add_legend(title='Wine Quality Class')\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/27.png\" alt=\"\" class=\"wp-image-252\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u4eec\u6e05\u695a\u5730\u770b\u5230\uff0c\u9ad8\u54c1\u8d28\u7684\u8461\u8404\u9152\u6709\u8f83\u4f4e\u7684\u4e8c\u6c27\u5316\u786b\u542b\u91cf\uff0c\u8fd9\u662f\u975e\u5e38\u76f8\u5173\u7684\uff0c\u4e0e\u8461\u8404\u9152\u6210\u5206\u7684\u76f8\u5173\u9886\u57df\u77e5\u8bc6\u4e00\u81f4\u3002\u6211\u4eec\u4e5f\u770b\u5230\u7ea2\u8461\u8404\u9152\u7684\u4e8c\u6c27\u5316\u786b\u603b\u91cf\u4f4e\u4e8e\u767d\u8461\u8404\u9152\u3002\u5728\u51e0\u4e2a\u6570\u636e\u70b9\u4e2d\uff0c\u7ea2\u8461\u8404\u9152\u7684\u6325\u53d1\u6027\u9178\u5ea6\u6c34\u5e73\u8f83\u9ad8\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u53ef\u89c6\u5316 5 \u7ef4\u6570\u636e\uff085-D\uff09<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u4eec\u7167\u65e7\u9075\u4ece\u4e0a\u6587\u63d0\u51fa\u7684\u7b56\u7565\uff0c\u8981\u60f3\u53ef\u89c6\u5316 5 \u7ef4\u6570\u636e\uff0c\u6211\u4eec\u8981\u5229\u7528\u5404\u79cd\u7ed8\u56fe\u7ec4\u4ef6\u3002\u6211\u4eec\u4f7f\u7528\u6df1\u5ea6\u3001\u8272\u8c03\u3001\u5927\u5c0f\u6765\u8868\u5f81\u5176\u4e2d\u7684\u4e09\u4e2a\u7ef4\u5ea6\u3002\u5176\u5b83\u4e24\u7ef4\u4ecd\u4e3a\u5e38\u89c4\u8f74\u3002\u56e0\u4e3a\u6211\u4eec\u8fd8\u4f1a\u7528\u5230\u5927\u5c0f\u8fd9\u4e2a\u6982\u5ff5\uff0c\u5e76\u501f\u6b64\u753b\u51fa\u4e00\u4e2a\u4e09\u7ef4\u6c14\u6ce1\u56fe\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Visualizing 5-D mix data using bubble charts\n# leveraging the concepts of hue, size and depth\nfig = plt.figure(figsize=(8, 6))\nax = fig.add_subplot(111, projection='3d')\nt = fig.suptitle('Wine Residual Sugar - Alcohol Content - Acidity - Total Sulfur Dioxide - Type', fontsize=14)\n\nxs = list(wines&#91;'residual sugar'])\nys = list(wines&#91;'alcohol'])\nzs = list(wines&#91;'fixed acidity'])\ndata_points = &#91;(x, y, z) for x, y, z in zip(xs, ys, zs)]\n\nss = list(wines&#91;'total sulfur dioxide'])\ncolors = &#91;'red' if wt == 'red' else 'yellow' for wt in list(wines&#91;'wine_type'])]\n\nfor data, color, size in zip(data_points, colors, ss):\n &nbsp; &nbsp;x, y, z = data\n &nbsp; &nbsp;ax.scatter(x, y, z, alpha=0.4, c=color, edgecolors='none', s=size)\n\nax.set_xlabel('Residual Sugar')\nax.set_ylabel('Alcohol')\nax.set_zlabel('Fixed Acidity')\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/28.png\" alt=\"\" class=\"wp-image-253\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6c14\u6ce1\u56fe\u7075\u611f\u6765\u6e90\u4e0e\u4e0a\u6587\u6240\u8ff0\u4e00\u81f4\u3002\u4f46\u662f\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u770b\u5230\u4ee5\u4e8c\u6c27\u5316\u786b\u603b\u91cf\u4e3a\u6307\u6807\u7684\u70b9\u6570\uff0c\u53d1\u73b0\u767d\u8461\u8404\u9152\u7684\u4e8c\u6c27\u5316\u786b\u542b\u91cf\u9ad8\u4e8e\u7ea2\u8461\u8404\u9152\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u9664\u4e86\u6df1\u5ea6\u4e4b\u5916\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528\u5206\u9762\u548c\u8272\u8c03\u6765\u8868\u5f81\u8fd9\u4e94\u4e2a\u6570\u636e\u7ef4\u5ea6\u4e2d\u7684\u591a\u4e2a\u5206\u7c7b\u5c5e\u6027\u3002\u5176\u4e2d\u8868\u5f81\u5927\u5c0f\u7684\u5c5e\u6027\u53ef\u4ee5\u662f\u6570\u503c\u8868\u5f81\u751a\u81f3\u662f\u7c7b\u522b\uff08\u4f46\u662f\u6211\u4eec\u53ef\u80fd\u8981\u7528\u5b83\u7684\u6570\u503c\u8868\u5f81\u6765\u8868\u5f81\u6570\u636e\u70b9\u5927\u5c0f\uff09\u3002\u7531\u4e8e\u7f3a\u4e4f\u7c7b\u522b\u5c5e\u6027\uff0c\u6b64\u5904\u6211\u4eec\u4e0d\u4f5c\u5c55\u793a\uff0c\u4f46\u662f\u4f60\u53ef\u4ee5\u5728\u81ea\u5df1\u7684\u6570\u636e\u96c6\u4e0a\u8bd5\u8bd5\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Visualizing 5-D mix data using bubble charts\n# leveraging the concepts of hue, size and depth\nfig = plt.figure(figsize=(8, 6))\nax = fig.add_subplot(111, projection='3d')\nt = fig.suptitle('Wine Residual Sugar - Alcohol Content - Acidity - Total Sulfur Dioxide - Type', fontsize=14)\n\nxs = list(wines&#91;'residual sugar'])\nys = list(wines&#91;'alcohol'])\nzs = list(wines&#91;'fixed acidity'])\ndata_points = &#91;(x, y, z) for x, y, z in zip(xs, ys, zs)]\n\nss = list(wines&#91;'total sulfur dioxide'])\ncolors = &#91;'red' if wt == 'red' else 'yellow' for wt in list(wines&#91;'wine_type'])]\n\nfor data, color, size in zip(data_points, colors, ss):\n &nbsp; &nbsp;x, y, z = data\n &nbsp; &nbsp;ax.scatter(x, y, z, alpha=0.4, c=color, edgecolors='none', s=size)\n\nax.set_xlabel('Residual Sugar')\nax.set_ylabel('Alcohol')\nax.set_zlabel('Fixed Acidity')\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/29-1.png\" alt=\"\" class=\"wp-image-254\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u5e38\u8fd8\u6709\u4e00\u4e2a\u524d\u6587\u4ecb\u7ecd\u7684 5 \u7ef4\u6570\u636e\u53ef\u89c6\u5316\u7684\u5907\u9009\u65b9\u6cd5\u3002\u5f53\u770b\u5230\u6211\u4eec\u5148\u524d\u7ed8\u5236\u7684\u56fe\u65f6\uff0c\u5f88\u591a\u4eba\u53ef\u80fd\u4f1a\u5bf9\u591a\u51fa\u6765\u7684\u7ef4\u5ea6\u6df1\u5ea6\u56f0\u60d1\u3002\u8be5\u56fe\u91cd\u590d\u5229\u7528\u4e86\u5206\u9762\u7684\u7279\u6027\uff0c\u6240\u4ee5\u4ecd\u53ef\u4ee5\u5728 2 \u7ef4\u9762\u677f\u4e0a\u7ed8\u5236\u51fa\u6765\u4e14\u6613\u4e8e\u8bf4\u660e\u548c\u7ed8\u5236\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/image.jiqizhixin.com\/uploads\/editor\/684d7d0d-62d5-4a8e-b280-872b19f151d7\/1527145934023.png\" alt=\"\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u4eec\u5df2\u7ecf\u9886\u7565\u5230\u591a\u4f4d\u6570\u636e\u53ef\u89c6\u5316\u7684\u590d\u6742\u6027\uff01\u5982\u679c\u8fd8\u6709\u4eba\u60f3\u95ee\uff0c\u4e3a\u4f55\u4e0d\u589e\u52a0\u7ef4\u5ea6\uff1f\u8ba9\u6211\u4eec\u7ee7\u7eed\u7b80\u5355\u63a2\u7d22\u4e0b\uff01<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u53ef\u89c6\u5316 6 \u7ef4\u6570\u636e\uff086-D\uff09<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u76ee\u524d\u6211\u4eec\u753b\u5f97\u5f88\u5f00\u5fc3\uff08\u6211\u5e0c\u671b\u662f\u5982\u6b64\uff01\uff09\u6211\u4eec\u7ee7\u7eed\u5728\u53ef\u89c6\u5316\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u6570\u636e\u7ef4\u5ea6\u3002\u6211\u4eec\u5c06\u5229\u7528\u6df1\u5ea6\u3001\u8272\u8c03\u3001\u5927\u5c0f\u548c\u5f62\u72b6\u53ca\u4e24\u4e2a\u5e38\u89c4\u8f74\u6765\u63cf\u8ff0\u6240\u6709 6 \u4e2a\u6570\u636e\u7ef4\u5ea6\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u4eec\u5c06\u5229\u7528\u6563\u70b9\u56fe\u548c\u8272\u8c03\u3001\u6df1\u5ea6\u3001\u5f62\u72b6\u3001\u5927\u5c0f\u7684\u6982\u5ff5\u6765\u53ef\u89c6\u5316 6 \u7ef4\u6570\u636e\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Visualizing 6-D mix data using scatter charts\n# leveraging the concepts of hue, size, depth and shape\nfig = plt.figure(figsize=(8, 6))\nt = fig.suptitle('Wine Residual Sugar - Alcohol Content - Acidity - Total Sulfur Dioxide - Type - Quality', fontsize=14)\nax = fig.add_subplot(111, projection='3d')\n\nxs = list(wines&#91;'residual sugar'])\nys = list(wines&#91;'alcohol'])\nzs = list(wines&#91;'fixed acidity'])\ndata_points = &#91;(x, y, z) for x, y, z in zip(xs, ys, zs)]\n\nss = list(wines&#91;'total sulfur dioxide'])\ncolors = &#91;'red' if wt == 'red' else 'yellow' for wt in list(wines&#91;'wine_type'])]\nmarkers = &#91;',' if q == 'high' else 'x' if q == 'medium' else 'o' for q in list(wines&#91;'quality_label'])]\n\nfor data, color, size, mark in zip(data_points, colors, ss, markers):\n &nbsp; &nbsp;x, y, z = data\n &nbsp; &nbsp;ax.scatter(x, y, z, alpha=0.4, c=color, edgecolors='none', s=size, marker=mark)\n\nax.set_xlabel('Residual Sugar')\nax.set_ylabel('Alcohol')\nax.set_zlabel('Fixed Acidity')\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/30-1.png\" alt=\"\" class=\"wp-image-256\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u53ef\u662f\u5728\u4e00\u5f20\u56fe\u4e0a\u753b\u51fa 6 \u7ef4\u6570\u636e\uff01\u6211\u4eec\u7528\u5f62\u72b6\u8868\u5f81\u8461\u8404\u9152\u7684\u8d28\u91cf\u6807\u6ce8\uff0c\u4f18\u8d28\uff08\u7528\u65b9\u5757\u6807\u8bb0\uff09\uff0c\u4e00\u822c\uff08\u7528 x \u6807\u8bb0\uff09\uff0c\u5dee\uff08\u7528\u5706\u6807\u8bb0\uff09\uff1a\u7528\u8272\u8c03\u8868\u793a\u7ea2\u9152\u7684\u7c7b\u578b\uff0c\u7531\u6df1\u5ea6\u548c\u6570\u636e\u70b9\u5927\u5c0f\u786e\u5b9a\u7684\u9178\u5ea6\u8868\u5f81\u603b\u4e8c\u6c27\u5316\u786b\u542b\u91cf\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u4e2a\u89e3\u91ca\u8d77\u6765\u53ef\u80fd\u6709\u70b9\u8d39\u52b2\uff0c\u4f46\u662f\u5728\u8bd5\u56fe\u7406\u89e3\u591a\u7ef4\u6570\u636e\u7684\u9690\u85cf\u4fe1\u606f\u65f6\uff0c\u6700\u597d\u7ed3\u5408\u4e00\u4e9b\u7ed8\u56fe\u7ec4\u4ef6\u5c06\u5176\u53ef\u89c6\u5316\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u7ed3\u5408\u5f62\u72b6\u548c y \u8f74\u7684\u8868\u73b0\uff0c\u6211\u4eec\u77e5\u9053\u9ad8\u4e2d\u6863\u7684\u8461\u8404\u9152\u7684\u9152\u7cbe\u542b\u91cf\u6bd4\u4f4e\u8d28\u8461\u8404\u9152\u66f4\u9ad8\u3002<\/li><li>\u7ed3\u5408\u8272\u8c03\u548c\u5927\u5c0f\u7684\u8868\u73b0\uff0c\u6211\u4eec\u77e5\u9053\u767d\u8461\u8404\u9152\u7684\u603b\u4e8c\u6c27\u5316\u786b\u542b\u91cf\u6bd4\u7ea2\u8461\u8404\u9152\u66f4\u9ad8\u3002<\/li><li>\u7ed3\u5408\u6df1\u5ea6\u548c\u8272\u8c03\u7684\u8868\u73b0\uff0c\u6211\u4eec\u77e5\u9053\u767d\u8461\u8404\u9152\u7684\u9178\u5ea6\u6bd4\u7ea2\u8461\u8404\u9152\u66f4\u4f4e\u3002<\/li><li>\u7ed3\u5408\u8272\u8c03\u548c x \u8f74\u7684\u8868\u73b0\uff0c\u6211\u4eec\u77e5\u9053\u7ea2\u8461\u8404\u9152\u7684\u6b8b\u7cd6\u6bd4\u767d\u8461\u8404\u9152\u66f4\u4f4e\u3002<\/li><li>\u7ed3\u5408\u8272\u8c03\u548c\u5f62\u72b6\u7684\u8868\u73b0\uff0c\u4f3c\u4e4e\u767d\u8461\u8404\u9152\u7684\u9ad8\u54c1\u8d28\u4ea7\u91cf\u9ad8\u4e8e\u7ea2\u8461\u8404\u9152\u3002\uff08\u53ef\u80fd\u662f\u7531\u4e8e\u767d\u8461\u8404\u9152\u7684\u6837\u672c\u91cf\u8f83\u5927\uff09<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u4eec\u4e5f\u53ef\u4ee5\u7528\u5206\u9762\u5c5e\u6027\u6765\u4ee3\u66ff\u6df1\u5ea6\u6784\u5efa 6 \u7ef4\u6570\u636e\u53ef\u89c6\u5316\u6548\u679c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> # Visualizing 6-D mix data using scatter charts \n # leveraging the concepts of hue, facets and size \n g = sns.FacetGrid(wines, row='wine_type', col=\"quality\", hue='quality_label', size=4) \n g.map(plt.scatter, \"residual sugar\", \"alcohol\", alpha=0.5, &nbsp;\n edgecolor='k', linewidth=0.5, s=wines&#91;'total sulfur dioxide']*2) \n fig = g.fig &nbsp;\n fig.set_size_inches(18, 8) \n fig.subplots_adjust(top=0.85, wspace=0.3) \n fig.suptitle('Wine Type - Sulfur Dioxide - Residual Sugar - Alcohol - Quality Class - Quality Rating', fontsize=14) \n l = g.add_legend(title='Wine Quality Class') \n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/xx.juemeis.xyz\/wp-content\/uploads\/2020\/06\/31-1.png\" alt=\"\" class=\"wp-image-255\" width=\"800\" height=\"320\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u56e0\u6b64\uff0c\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u5229\u7528\u5206\u9762\u548c\u8272\u8c03\u6765\u8868\u5f81\u4e09\u4e2a\u5206\u7c7b\u5c5e\u6027\uff0c\u5e76\u4f7f\u7528\u4e24\u4e2a\u5e38\u89c4\u8f74\u548c\u5927\u5c0f\u6765\u8868\u5f81 6 \u7ef4\u6570\u636e\u53ef\u89c6\u5316\u7684\u4e09\u4e2a\u6570\u503c\u5c5e\u6027\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u7ed3\u8bba<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6570\u636e\u53ef\u89c6\u5316\u4e0e\u79d1\u5b66\u4e00\u6837\u91cd\u8981\u3002\u5982\u679c\u4f60\u770b\u5230\u8fd9\uff0c\u6211\u5f88\u6b23\u6170\u4f60\u80fd\u575a\u6301\u770b\u5b8c\u8fd9\u7bc7\u957f\u6587\u3002\u6211\u4eec\u7684\u76ee\u7684\u4e0d\u662f\u4e3a\u4e86\u8bb0\u4f4f\u6240\u6709\u6570\u636e\uff0c\u4e5f\u4e0d\u662f\u7ed9\u51fa\u4e00\u5957\u56fa\u5b9a\u7684\u6570\u636e\u53ef\u89c6\u5316\u89c4\u5219\u3002\u672c\u6587\u7684\u4e3b\u8981\u76ee\u7684\u662f\u7406\u89e3\u5e76\u5b66\u4e60\u9ad8\u6548\u7684\u6570\u636e\u53ef\u89c6\u5316\u7b56\u7565\uff0c\u5c24\u5176\u662f\u5f53\u6570\u636e\u7ef4\u5ea6\u589e\u5927\u65f6\u3002\u5e0c\u671b\u4f60\u4ee5\u540e\u53ef\u4ee5\u7528\u672c\u6587\u77e5\u8bc6\u53ef\u89c6\u5316\u4f60\u81ea\u5df1\u7684\u6570\u636e\u96c6\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\u539f\u6587\u94fe\u63a5\uff1ahttps:\/\/towardsdatascience.com\/the-art-of-effective-visualization-of-multi-dimensional-data-6c7202990c57<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6570\u636e\u805a\u5408\u3001\u6c47\u603b\u548c\u53ef\u89c6\u5316\u662f\u652f\u6491\u6570\u636e\u5206\u6790\u9886\u57df\u7684\u4e09\u5927\u652f\u67f1\u3002\u957f\u4e45\u4ee5\u6765\uff0c\u6570\u636e\u53ef\u89c6\u5316\u90fd\u662f\u4e00\u4e2a\u5f3a\u6709\u529b\u7684\u5de5\u5177\uff0c\u88ab\u4e1a\u754c [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":3385,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[29,44],"class_list":["post-224","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dataana","tag-29","tag-44"],"_links":{"self":[{"href":"https:\/\/www.urbin.top\/index.php?rest_route=\/wp\/v2\/posts\/224","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.urbin.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.urbin.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.urbin.top\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.urbin.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=224"}],"version-history":[{"count":0,"href":"https:\/\/www.urbin.top\/index.php?rest_route=\/wp\/v2\/posts\/224\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.urbin.top\/index.php?rest_route=\/wp\/v2\/media\/3385"}],"wp:attachment":[{"href":"https:\/\/www.urbin.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.urbin.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.urbin.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}