<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Projects | Zhiyuan Liu</title><link>https://liuyishou.netlify.app/project/</link><atom:link href="https://liuyishou.netlify.app/project/index.xml" rel="self" type="application/rss+xml"/><description>Projects</description><generator>Wowchemy (https://wowchemy.com)</generator><language>en-us</language><lastBuildDate>Wed, 27 Apr 2022 12:51:44 +0000</lastBuildDate><image><url>https://liuyishou.netlify.app/media/icon_huec88b32b4266b06962194376021146fa_29130_512x512_fill_lanczos_center_2.png</url><title>Projects</title><link>https://liuyishou.netlify.app/project/</link></image><item><title>A tool to make paper more colorful</title><link>https://liuyishou.netlify.app/project/a-tool-to-make-paper-more-colorful/</link><pubDate>Wed, 27 Apr 2022 12:51:44 +0000</pubDate><guid>https://liuyishou.netlify.app/project/a-tool-to-make-paper-more-colorful/</guid><description>&lt;h2 id="论文个性化系统">论文个性化系统&lt;/h2>
&lt;h3 id="功能">功能&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>主页导航&lt;/strong>，跳转功能页面。&lt;/li>
&lt;li>&lt;strong>自定义论文风格&lt;/strong>。功能：上传风格文件夹，生成自定义的论文风格。 接口：/style/custom&lt;/li>
&lt;li>&lt;strong>上传文件&lt;/strong>，获得风格化论文。接口：style/file&lt;/li>
&lt;li>&lt;strong>上传文件夹&lt;/strong>，获得风格化论文系列文件。style/file_folder&lt;/li>
&lt;/ol>
&lt;h3 id="运行">运行&lt;/h3>
&lt;ul>
&lt;li>安装&lt;strong>requirements.txt&lt;/strong> 里面的库。在项目目录路径，运行即可。&lt;/li>
&lt;/ul>
&lt;pre>&lt;code class="language-python"> pip install -r requirements.txt
&lt;/code>&lt;/pre>
&lt;ul>
&lt;li>由于&lt;strong>pypdf2&lt;/strong>库，内部代码逻辑原因，需要对其进行一定改动。找到&lt;strong>pypdf2/pdf.py&lt;/strong> 文件。跳转第1635行，注释掉（如下操作）。&lt;/li>
&lt;/ul>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="bug" srcset="
/project/a-tool-to-make-paper-more-colorful/1_hu28b2191e5da601981f0c355d1aee20b0_38406_e98961c28d1c5404afcaf91753eb19cc.png 400w,
/project/a-tool-to-make-paper-more-colorful/1_hu28b2191e5da601981f0c355d1aee20b0_38406_2927aed9a60f6d91b63b0a2d0eb4122b.png 760w,
/project/a-tool-to-make-paper-more-colorful/1_hu28b2191e5da601981f0c355d1aee20b0_38406_1200x1200_fit_lanczos_2.png 1200w"
src="https://liuyishou.netlify.app/project/a-tool-to-make-paper-more-colorful/1_hu28b2191e5da601981f0c355d1aee20b0_38406_e98961c28d1c5404afcaf91753eb19cc.png"
width="760"
height="197"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;ul>
&lt;li>在项目目录路径，运行即可&lt;/li>
&lt;/ul>
&lt;pre>&lt;code class="language-python"> python index.py
&lt;/code>&lt;/pre>
&lt;ul>
&lt;li>浏览器上访问 http://127.0.0.1:5000/ 即可。&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>小提示&lt;/strong>&lt;/p>
&lt;ol>
&lt;li>进入http://127.0.0.1:5000/ （主页）后，通过主页导航，进入&lt;strong>上传文件页面&lt;/strong>，选择风格，点击上传便能得到风格化的论文pdf（参考如下Figure 2图）。&lt;/li>
&lt;li>由于github上传文件大小限制，只为用户准备了风景图。用户通过&lt;strong>自定义论文风格&lt;/strong>，添加更多专属style。&lt;/li>
&lt;li>上传的文件或者文件夹会保存在&lt;strong>uploads&lt;/strong>文件夹中，返回的风格化文件会保存在&lt;strong>handle_pdf&lt;/strong>文件夹中。&lt;/li>
&lt;/ol>
&lt;h3 id="效果展示">效果展示&lt;/h3>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="对比图" srcset="
/project/a-tool-to-make-paper-more-colorful/%E5%AF%B9%E6%AF%94%E5%9B%BE_hu6d5da379127c8b6da7b46704ffeb7655_323833_3a35c82c01e5fe95666dfc8fe5bfaa3f.jpg 400w,
/project/a-tool-to-make-paper-more-colorful/%E5%AF%B9%E6%AF%94%E5%9B%BE_hu6d5da379127c8b6da7b46704ffeb7655_323833_8d5c3219833946e5a02e3754449e78c2.jpg 760w,
/project/a-tool-to-make-paper-more-colorful/%E5%AF%B9%E6%AF%94%E5%9B%BE_hu6d5da379127c8b6da7b46704ffeb7655_323833_1200x1200_fit_q75_lanczos.jpg 1200w"
src="https://liuyishou.netlify.app/project/a-tool-to-make-paper-more-colorful/%E5%AF%B9%E6%AF%94%E5%9B%BE_hu6d5da379127c8b6da7b46704ffeb7655_323833_3a35c82c01e5fe95666dfc8fe5bfaa3f.jpg"
width="760"
height="760"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p align="center">
Figure 1：效果对比图（上：原论文pdf，下：风格化的pdf）
&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="上传页面效果图" srcset="
/project/a-tool-to-make-paper-more-colorful/%E4%B8%8A%E4%BC%A0%E9%A1%B5%E9%9D%A2%E6%95%88%E6%9E%9C%E5%9B%BE_hu0ff16d3d83a5f970d78dfbd48ccced5f_691483_5e8db23606922881cd4b9bf8d97062fc.png 400w,
/project/a-tool-to-make-paper-more-colorful/%E4%B8%8A%E4%BC%A0%E9%A1%B5%E9%9D%A2%E6%95%88%E6%9E%9C%E5%9B%BE_hu0ff16d3d83a5f970d78dfbd48ccced5f_691483_16895a85f598edc6f90891a8e66f1afc.png 760w,
/project/a-tool-to-make-paper-more-colorful/%E4%B8%8A%E4%BC%A0%E9%A1%B5%E9%9D%A2%E6%95%88%E6%9E%9C%E5%9B%BE_hu0ff16d3d83a5f970d78dfbd48ccced5f_691483_1200x1200_fit_lanczos_2.png 1200w"
src="https://liuyishou.netlify.app/project/a-tool-to-make-paper-more-colorful/%E4%B8%8A%E4%BC%A0%E9%A1%B5%E9%9D%A2%E6%95%88%E6%9E%9C%E5%9B%BE_hu0ff16d3d83a5f970d78dfbd48ccced5f_691483_5e8db23606922881cd4b9bf8d97062fc.png"
width="760"
height="609"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p align="center">
Figure 2：上传页面效果图
&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="主页" srcset="
/project/a-tool-to-make-paper-more-colorful/%E4%B8%BB%E9%A1%B5_hueae13d78e68605bdba3f202cbd493057_64454_d9c282094a39e39532380f02d7158da1.png 400w,
/project/a-tool-to-make-paper-more-colorful/%E4%B8%BB%E9%A1%B5_hueae13d78e68605bdba3f202cbd493057_64454_562a9108b66b8565d6b4684de3872076.png 760w,
/project/a-tool-to-make-paper-more-colorful/%E4%B8%BB%E9%A1%B5_hueae13d78e68605bdba3f202cbd493057_64454_1200x1200_fit_lanczos_2.png 1200w"
src="https://liuyishou.netlify.app/project/a-tool-to-make-paper-more-colorful/%E4%B8%BB%E9%A1%B5_hueae13d78e68605bdba3f202cbd493057_64454_d9c282094a39e39532380f02d7158da1.png"
width="760"
height="548"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;p align="center">
Figure 3：主页&lt;/p>
&lt;/p></description></item><item><title>Crawl review data and analyze</title><link>https://liuyishou.netlify.app/project/crawl-review-data-and-analyze/</link><pubDate>Wed, 27 Apr 2022 12:00:54 +0000</pubDate><guid>https://liuyishou.netlify.app/project/crawl-review-data-and-analyze/</guid><description>&lt;h2 id="数据特征工程实战简易版">数据特征工程实战（简易版）&lt;/h2>
&lt;h3 id="概览">概览&lt;/h3>
&lt;ul>
&lt;li>该项目较为简单，新手需配好&lt;strong>python&lt;/strong>环境。作者使用 &lt;strong>python&lt;/strong>进行开发，&lt;strong>jupyter notebook&lt;/strong> 作为编辑器。&lt;/li>
&lt;li>学习该项目您能对爬虫、数据分析与数据可视化等知识获得初步了解。&lt;/li>
&lt;li>&lt;strong>result_images&lt;/strong>是存储可视化图片的文件夹&lt;/li>
&lt;/ul>
&lt;h3 id="运行">运行&lt;/h3>
&lt;ul>
&lt;li>先安装&lt;strong>python&lt;/strong>包&lt;/li>
&lt;/ul>
&lt;pre>&lt;code class="language-python"> pip install -r requirements.txt
&lt;/code>&lt;/pre>
&lt;p>&lt;strong>两种方式运行&lt;/strong>：&lt;/p>
&lt;ol>
&lt;li>运行&lt;strong>py&lt;/strong>文件&lt;/li>
&lt;/ol>
&lt;pre>&lt;code class="language-python"> python main.py
&lt;/code>&lt;/pre>
&lt;ol start="2">
&lt;li>或使用&lt;strong>jupyter notebook&lt;/strong>&lt;/li>
&lt;/ol>
&lt;p>下载&lt;strong>Anaconda&lt;/strong>，将&lt;strong>jupyter notebook&lt;/strong>调出，打开&lt;strong>main.ipynb&lt;/strong>文件，运行即可。&lt;/p>
&lt;h3 id="实现过程">实现过程&lt;/h3>
&lt;ol>
&lt;li>
&lt;p>&lt;strong>数据获取&lt;/strong>：从豆瓣《飞驰人生》评论页获取数据&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>数据清洗&lt;/strong>：清洗掉获取数据中的脏数据&lt;/p>
&lt;/li>
&lt;li>
&lt;p>&lt;strong>数据处理&lt;/strong>：将有价值的数据提取出来，使用numpy及pandas库进行分析建模&lt;/p>
&lt;/li>
&lt;li>
&lt;p>具体详情，转至 &lt;a href="https://blog.csdn.net/weixin_41466575/article/details/105303376" target="_blank" rel="noopener">我的博客&lt;/a>&lt;/p>
&lt;/li>
&lt;/ol>
&lt;h3 id="效果展示">效果展示&lt;/h3>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="ciyun" srcset="
/project/crawl-review-data-and-analyze/ciyun_hu00a3fc7bb946de32a690c1cdcba6b211_191352_abb664190162ec772d06d211c9f8b0ed.png 400w,
/project/crawl-review-data-and-analyze/ciyun_hu00a3fc7bb946de32a690c1cdcba6b211_191352_008111c2c92eb7073109f636ecca4024.png 760w,
/project/crawl-review-data-and-analyze/ciyun_hu00a3fc7bb946de32a690c1cdcba6b211_191352_1200x1200_fit_lanczos_2.png 1200w"
src="https://liuyishou.netlify.app/project/crawl-review-data-and-analyze/ciyun_hu00a3fc7bb946de32a690c1cdcba6b211_191352_abb664190162ec772d06d211c9f8b0ed.png"
width="760"
height="760"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p align="center">
Figure 1：词云图
&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="xingji" srcset="
/project/crawl-review-data-and-analyze/xingji_hu604e81e16e2f997dcf9ec8520fbe54ab_17585_ef0f9a9361d1860978f31aaf34596c62.png 400w,
/project/crawl-review-data-and-analyze/xingji_hu604e81e16e2f997dcf9ec8520fbe54ab_17585_a09ddc17016bdebe324be8ff8efc7e5c.png 760w,
/project/crawl-review-data-and-analyze/xingji_hu604e81e16e2f997dcf9ec8520fbe54ab_17585_1200x1200_fit_lanczos_2.png 1200w"
src="https://liuyishou.netlify.app/project/crawl-review-data-and-analyze/xingji_hu604e81e16e2f997dcf9ec8520fbe54ab_17585_ef0f9a9361d1860978f31aaf34596c62.png"
width="760"
height="570"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p align="center">
​Figure 2：电影评级图
&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="review_count" srcset="
/project/crawl-review-data-and-analyze/review_count_hu0b55a63cb34999843cd038ce7033f2e7_39876_895b73ff28954dcf0497566d5a9596c9.png 400w,
/project/crawl-review-data-and-analyze/review_count_hu0b55a63cb34999843cd038ce7033f2e7_39876_14e39e72fb324bbe7322d0980958566f.png 760w,
/project/crawl-review-data-and-analyze/review_count_hu0b55a63cb34999843cd038ce7033f2e7_39876_1200x1200_fit_lanczos_2.png 1200w"
src="https://liuyishou.netlify.app/project/crawl-review-data-and-analyze/review_count_hu0b55a63cb34999843cd038ce7033f2e7_39876_895b73ff28954dcf0497566d5a9596c9.png"
width="760"
height="570"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p align="center">
​​Figure 3：评论数量图
&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="review_mean" srcset="
/project/crawl-review-data-and-analyze/review_mean_hu0a9b08bc23a24a177288a6bca75c8f50_41200_134a0c92c847a1ebc02d18acd8b1e175.png 400w,
/project/crawl-review-data-and-analyze/review_mean_hu0a9b08bc23a24a177288a6bca75c8f50_41200_c7d598f3c3679865e7dd12ad322b731d.png 760w,
/project/crawl-review-data-and-analyze/review_mean_hu0a9b08bc23a24a177288a6bca75c8f50_41200_1200x1200_fit_lanczos_2.png 1200w"
src="https://liuyishou.netlify.app/project/crawl-review-data-and-analyze/review_mean_hu0a9b08bc23a24a177288a6bca75c8f50_41200_134a0c92c847a1ebc02d18acd8b1e175.png"
width="760"
height="570"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p align="center">
​​​Figure 4：评论均值图
&lt;/p></description></item><item><title>Shanghai taxi's od data analysis</title><link>https://liuyishou.netlify.app/project/internal-project/</link><pubDate>Thu, 15 Jul 2021 00:00:00 +0000</pubDate><guid>https://liuyishou.netlify.app/project/internal-project/</guid><description>&lt;h1 id="shanghai_spatial_data_analysis">shanghai_spatial_data_analysis&lt;/h1>
&lt;h2 id="introduction">Introduction&lt;/h2>
&lt;p>A standard procedure to deal with the spatial data (the taxi data of shanghai). We get the Shanghai&amp;rsquo;s taxi data from &lt;a href="http://www.cse.ust.hk/scrg/taxi.tar.gz" target="_blank" rel="noopener">上海市出租车数据集&lt;/a> (a open source dataset).&lt;/p>
&lt;p>&lt;strong>In this project, you will learn&lt;/strong>:&lt;/p>
&lt;ol>
&lt;li>How to carry on data analysis.&lt;/li>
&lt;li>How to handle the data and dive out the intriguing feature which may be useful for business strategy and optimization.&lt;/li>
&lt;li>How to show the spatial data in the map intuitive.&lt;/li>
&lt;/ol>
&lt;p>&lt;strong>The Prior knowledge that you should know&lt;/strong>:&lt;/p>
&lt;ol>
&lt;li>Data analysis tool: numpy, pandas, geopandas, shapely.&lt;/li>
&lt;li>Be patient, positive and keep going.&lt;/li>
&lt;/ol>
&lt;h2 id="run">Run&lt;/h2>
&lt;p>To run the code efficiently on your computer, you shall do like below:&lt;/p>
&lt;ol>
&lt;li>&lt;strong>install the corresponding library&lt;/strong>.&lt;/li>
&lt;/ol>
&lt;pre>&lt;code>pip install -r requirements.txt
&lt;/code>&lt;/pre>
&lt;p>If you can not install successfully, that must be the version conflict. So try to read this video &lt;a href="https://www.bilibili.com/video/BV1A5411a7xz?p=11" target="_blank" rel="noopener">geopandas的安装&lt;/a>.&lt;/p>
&lt;ol start="2">
&lt;li>&lt;strong>Download the&lt;/strong> &lt;a href="http://www.cse.ust.hk/scrg/taxi.tar.gz" target="_blank" rel="noopener">上海市出租车数据集&lt;/a> &lt;strong>and put into ./data-sample/taxi_sh/&lt;/strong>*.&lt;/li>
&lt;/ol>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img src="./images/file_position.png" alt="File position" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;ol start="3">
&lt;li>&lt;strong>Then, begin to learn according to the number&amp;rsquo;s order of ipynb files. So let&amp;rsquo;s begin from the shanghai_data_analysis_1.ipynb.&lt;/strong>&lt;/li>
&lt;/ol>
&lt;h2 id="figure-show">Figure show&lt;/h2>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="hour_count" srcset="
/project/internal-project/hour_count_hu950c532629d3f6aa5114cfa96756b6bc_41636_a549975863bf7dc258c528c7773aa3fd.png 400w,
/project/internal-project/hour_count_hu950c532629d3f6aa5114cfa96756b6bc_41636_fe1cd4ecd73ce539ba27adeed620bd5a.png 760w,
/project/internal-project/hour_count_hu950c532629d3f6aa5114cfa96756b6bc_41636_1200x1200_fit_lanczos_2.png 1200w"
src="https://liuyishou.netlify.app/project/internal-project/hour_count_hu950c532629d3f6aa5114cfa96756b6bc_41636_a549975863bf7dc258c528c7773aa3fd.png"
width="760"
height="507"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p align="center" >
&lt;b>1.Taxi's numbers for each hour&lt;/b>
&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="hour0_distribution" srcset="
/project/internal-project/hour0_distribution_hu4a80e8baaf4e530cd1e522182c2a5778_110802_bd45c0b55a08624dd265aed3f19d01d3.png 400w,
/project/internal-project/hour0_distribution_hu4a80e8baaf4e530cd1e522182c2a5778_110802_e21ddd4a52f5869bf8fab72d5facbe24.png 760w,
/project/internal-project/hour0_distribution_hu4a80e8baaf4e530cd1e522182c2a5778_110802_1200x1200_fit_lanczos_2.png 1200w"
src="https://liuyishou.netlify.app/project/internal-project/hour0_distribution_hu4a80e8baaf4e530cd1e522182c2a5778_110802_bd45c0b55a08624dd265aed3f19d01d3.png"
width="760"
height="760"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p align="center" >
&lt;b>2.The position distribution of taxi in the early morning&lt;/b>
&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="video"
src="https://liuyishou.netlify.app/project/internal-project/video.gif"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p align="center" >
&lt;b>3.The gif for postion distribution in each hour&lt;/b>
&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="taxi_start2end" srcset="
/project/internal-project/taxi_start2end_hu504f391362803621c489166a58a33f5a_387605_257ab87a1484fd3fd63ac69adad80b40.png 400w,
/project/internal-project/taxi_start2end_hu504f391362803621c489166a58a33f5a_387605_fc036dfbfd95faf43aa36b7ced51e526.png 760w,
/project/internal-project/taxi_start2end_hu504f391362803621c489166a58a33f5a_387605_1200x1200_fit_lanczos_2.png 1200w"
src="https://liuyishou.netlify.app/project/internal-project/taxi_start2end_hu504f391362803621c489166a58a33f5a_387605_257ab87a1484fd3fd63ac69adad80b40.png"
width="760"
height="608"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p align="center" >
&lt;b>4.Start to end distribution&lt;/b>
&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="region_distribution" srcset="
/project/internal-project/region_distribution_hua95ab2fdc83bfb110dd729ef899d8b5d_1557186_93756d06940a50d894c59a6be9144ec8.png 400w,
/project/internal-project/region_distribution_hua95ab2fdc83bfb110dd729ef899d8b5d_1557186_7f1e70ffe0207bc9ca55e3f0f0cdf5b3.png 760w,
/project/internal-project/region_distribution_hua95ab2fdc83bfb110dd729ef899d8b5d_1557186_1200x1200_fit_lanczos_2.png 1200w"
src="https://liuyishou.netlify.app/project/internal-project/region_distribution_hua95ab2fdc83bfb110dd729ef899d8b5d_1557186_93756d06940a50d894c59a6be9144ec8.png"
width="760"
height="760"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p align="center" >
&lt;b>5.Heat map for position distribution of taxi&lt;/b>
&lt;/p></description></item><item><title>Predict repeat buy on e-commerce platforms</title><link>https://liuyishou.netlify.app/project/external-project/</link><pubDate>Sat, 27 Apr 2019 00:00:00 +0000</pubDate><guid>https://liuyishou.netlify.app/project/external-project/</guid><description>&lt;h2 id="introduction">Introduction&lt;/h2>
&lt;p>A project to predict the repeat buy rate for Tianmao. The task is open for everyone in Tianci platform. Although, it&amp;rsquo;s a learning contest, it does not mean simple. In this project, we are ranked &lt;strong>132th&lt;/strong> among &lt;strong>7,041&lt;/strong> teams which obtained &lt;strong>0.6871&lt;/strong> for metric &lt;strong>AUC&lt;/strong>.&lt;/p>
&lt;p>Dataset can be download on &lt;a href="https://tianchi.aliyun.com/competition/entrance/231576/introduction?lang=zh-cn" target="_blank" rel="noopener">阿里云天池之天猫复购率预测&lt;/a>&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="data" srcset="
/project/external-project/data_huc3a34cf7a0601dee17164392ce391a66_17049_5190b612e4f227ed32170ceda7ec456f.png 400w,
/project/external-project/data_huc3a34cf7a0601dee17164392ce391a66_17049_951669bc5f09d9ad2a76d53bea83e375.png 760w,
/project/external-project/data_huc3a34cf7a0601dee17164392ce391a66_17049_1200x1200_fit_lanczos_2.png 1200w"
src="https://liuyishou.netlify.app/project/external-project/data_huc3a34cf7a0601dee17164392ce391a66_17049_5190b612e4f227ed32170ceda7ec456f.png"
width="379"
height="333"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>datasets position and structure&lt;/p>
&lt;h2 id="overview">Overview&lt;/h2>
&lt;p>We divided the predict task into four parts: 1. exploring data 2. feature engineering 3. create model 4. model optimization&lt;/p>
&lt;ol>
&lt;li>&lt;strong>Exploring data&lt;/strong>: In this part, we just use some basic usage of pandas and plot some intuitive graphs to make us more familiar with the data. Actually, we do nothing operation to the origin data during the time.&lt;/li>
&lt;li>&lt;strong>Feature engineering&lt;/strong>: If we want to predict whether someone will buy the same merchant&amp;rsquo;s product, it&amp;rsquo;s crucial to dive into the behavior of users and merchants. After we know the behavior pattern of users and merchant, we shall dig into the connection of the two objects which means we should covert these infomation to numerical data in the field of data analysis.&lt;/li>
&lt;li>&lt;strong>Create model&lt;/strong>: Just like a combination punch from WTF pro boxers, we use the Logistic, SVM, KNN, Desition Tree, Naive bayes, Bagging of DT(RandomForest), Boosting of DT(GDBT,XGBoost) for predition tasks in the machine learning. In this section, we build all kinds of model like above and judge which one is the best.&lt;/li>
&lt;li>&lt;strong>Model optimization&lt;/strong>: Owing to the imblance of position/negative samples, we make three optimization schemes: Ensemble model, Smote over-sampling and Neural network.&lt;/li>
&lt;/ol>
&lt;h2 id="before-learning">Before learning&lt;/h2>
&lt;ol>
&lt;li>&lt;strong>What you should knew ?&lt;/strong>&lt;/li>
&lt;/ol>
&lt;ul>
&lt;li>Data analysis tool: numpy, pandas.&lt;/li>
&lt;li>Machine learning tool like &lt;strong>sklearn&lt;/strong> and principle of basic machine learning algorithms.&lt;/li>
&lt;/ul>
&lt;ol start="2">
&lt;li>&lt;strong>Install library before running&lt;/strong>:&lt;/li>
&lt;/ol>
&lt;pre>&lt;code class="language-python">pip install -r requirements.txt
&lt;/code>&lt;/pre>
&lt;p>If you cannot install some libraries like &lt;strong>imblearn&lt;/strong> or &lt;strong>torch&lt;/strong>, it doesn&amp;rsquo;s matter. Just go ahead, we use them in the part four (Model optimization).&lt;/p>
&lt;h2 id="some-figures">Some figures&lt;/h2>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="1" srcset="
/project/external-project/1_hue5627f5b93d477565a67dcea3068ad4d_18791_160af72ac4288ae7dcf3c3594007a519.png 400w,
/project/external-project/1_hue5627f5b93d477565a67dcea3068ad4d_18791_34d156e76ad2e4f89a802562a81f3879.png 760w,
/project/external-project/1_hue5627f5b93d477565a67dcea3068ad4d_18791_1200x1200_fit_lanczos_2.png 1200w"
src="https://liuyishou.netlify.app/project/external-project/1_hue5627f5b93d477565a67dcea3068ad4d_18791_160af72ac4288ae7dcf3c3594007a519.png"
width="697"
height="371"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="2" srcset="
/project/external-project/2_hu87e854553ce8caac143ec128f1295b3a_19444_78e548132eb30b9abacac55dbb5b9648.png 400w,
/project/external-project/2_hu87e854553ce8caac143ec128f1295b3a_19444_97f493bea88fb8ae204222965411064f.png 760w,
/project/external-project/2_hu87e854553ce8caac143ec128f1295b3a_19444_1200x1200_fit_lanczos_2.png 1200w"
src="https://liuyishou.netlify.app/project/external-project/2_hu87e854553ce8caac143ec128f1295b3a_19444_78e548132eb30b9abacac55dbb5b9648.png"
width="480"
height="278"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="3" srcset="
/project/external-project/3_hu7bd2af045c0132012bbf792dbe6df5f8_45730_f2cd00c1bf0d8110c98628e81db807c8.png 400w,
/project/external-project/3_hu7bd2af045c0132012bbf792dbe6df5f8_45730_537d3f3185b8138ccd029a954a719a75.png 760w,
/project/external-project/3_hu7bd2af045c0132012bbf792dbe6df5f8_45730_1200x1200_fit_lanczos_2.png 1200w"
src="https://liuyishou.netlify.app/project/external-project/3_hu7bd2af045c0132012bbf792dbe6df5f8_45730_f2cd00c1bf0d8110c98628e81db807c8.png"
width="653"
height="495"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >&lt;img alt="4" srcset="
/project/external-project/4_hu24e2afe08699464ea4dc18d343fd9939_85302_5fc870c095b6d3f79a4ec4f2a3077862.png 400w,
/project/external-project/4_hu24e2afe08699464ea4dc18d343fd9939_85302_671f841d3c948b74ad95a7dca5721b18.png 760w,
/project/external-project/4_hu24e2afe08699464ea4dc18d343fd9939_85302_1200x1200_fit_lanczos_2.png 1200w"
src="https://liuyishou.netlify.app/project/external-project/4_hu24e2afe08699464ea4dc18d343fd9939_85302_5fc870c095b6d3f79a4ec4f2a3077862.png"
width="760"
height="317"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p></description></item></channel></rss>