Chapter09

所属分类:书籍源码
开发工具:Python
文件大小:29181KB
下载次数:0
上传日期:2019-03-12 09:49:01
上 传 者yalingyang
说明:  机器学习第二版书籍源码,文件较大,分章节上传,第9章
(Machine learning second edition book source code, due to the large file, chapter upload, Chapter 9)

文件列表:
Chapter09\1st_flask_app_1\app.py (190, 2017-09-12)
Chapter09\1st_flask_app_1\templates\first_app.html (153, 2017-09-12)
Chapter09\1st_flask_app_2\app.py (675, 2017-09-12)
Chapter09\1st_flask_app_2\static\style.css (25, 2017-09-12)
Chapter09\1st_flask_app_2\templates\first_app.html (414, 2017-09-12)
Chapter09\1st_flask_app_2\templates\hello.html (206, 2017-09-12)
Chapter09\1st_flask_app_2\templates\_formhelpers.html (270, 2017-09-12)
Chapter09\ch09.ipynb (1233173, 2017-09-12)
Chapter09\images\09_01.png (211767, 2017-09-12)
Chapter09\images\09_02.png (25051, 2017-09-12)
Chapter09\images\09_03.png (15379, 2017-09-12)
Chapter09\images\09_04.png (37052, 2017-09-12)
Chapter09\images\09_05.png (55069, 2017-09-12)
Chapter09\images\09_06.png (30602, 2017-09-12)
Chapter09\images\09_07.png (143988, 2017-09-12)
Chapter09\images\09_08.png (223154, 2017-09-12)
Chapter09\images\09_09.png (67534, 2017-09-12)
Chapter09\images\09_10.png (69065, 2017-09-12)
Chapter09\movieclassifier\app.py (2296, 2017-09-12)
Chapter09\movieclassifier\pkl_objects\classifier.pkl (16778075, 2017-09-12)
Chapter09\movieclassifier\pkl_objects\stopwords.pkl (1065, 2017-09-12)
Chapter09\movieclassifier\reviews.sqlite (8192, 2017-09-12)
Chapter09\movieclassifier\static\style.css (54, 2017-09-12)
Chapter09\movieclassifier\templates\results.html (808, 2017-09-12)
Chapter09\movieclassifier\templates\reviewform.html (482, 2017-09-12)
Chapter09\movieclassifier\templates\thanks.html (339, 2017-09-12)
Chapter09\movieclassifier\templates\_formhelpers.html (261, 2017-09-12)
Chapter09\movieclassifier\vectorizer.py (798, 2017-09-12)
Chapter09\movieclassifier_with_update\app.py (2296, 2017-09-12)
Chapter09\movieclassifier_with_update\pkl_objects\classifier.pkl (16778033, 2017-09-12)
Chapter09\movieclassifier_with_update\pkl_objects\stopwords.pkl (892, 2017-09-12)
Chapter09\movieclassifier_with_update\reviews.sqlite (2048, 2017-09-12)
Chapter09\movieclassifier_with_update\static\style.css (54, 2017-09-12)
Chapter09\movieclassifier_with_update\templates\results.html (808, 2017-09-12)
Chapter09\movieclassifier_with_update\templates\reviewform.html (482, 2017-09-12)
Chapter09\movieclassifier_with_update\templates\thanks.html (339, 2017-09-12)
Chapter09\movieclassifier_with_update\templates\_formhelpers.html (261, 2017-09-12)
Chapter09\movieclassifier_with_update\update.py (1219, 2017-09-12)
Chapter09\movieclassifier_with_update\vectorizer.py (797, 2017-09-12)
Chapter09\movie_data.csv.gz (26521894, 2017-09-12)
... ...

Sebastian Raschka, 2017 Python Machine Learning - Code Examples ## Chapter 9 - Embedding a Machine Learning Model into a Web Application - Serializing fitted scikit-learn estimators - Setting up a SQLite database for data storage - Developing a web application with Flask - Our first Flask web application - Form validation and rendering - Turning the movie classifier into a web application - Deploying the web application to a public server - Updating the movie review classifier - Summary --- The code for the Flask web applications can be found in the following directories: - `1st_flask_app_1/`: A simple Flask web app - `1st_flask_app_2/`: `1st_flask_app_1` extended with flexible form validation and rendering - `movieclassifier/`: The movie classifier embedded in a web application - `movieclassifier_with_update/`: same as `movieclassifier` but with update from sqlite database upon start To run the web applications locally, `cd` into the respective directory (as listed above) and execute the main-application script, for example, cd ./1st_flask_app_1 python3 app.py Now, you should see something like * Running on http://127.0.0.1:5000/ * Restarting with reloader in your terminal. Next, open a web browser and enter the address displayed in your terminal (typically http://127.0.0.1:5000/) to view the web application. **Link to a live example application built with this tutorial: http://raschkas.pythonanywhere.com/**.

近期下载者

相关文件


收藏者