{"id":316,"date":"2020-09-30T21:37:35","date_gmt":"2020-09-30T21:37:35","guid":{"rendered":"https:\/\/machine-learning.webcloning.com\/2020\/09\/30\/generate-a-python-notebook-for-pipeline-models-using-autoai\/"},"modified":"2020-09-30T21:37:35","modified_gmt":"2020-09-30T21:37:35","slug":"generate-a-python-notebook-for-pipeline-models-using-autoai","status":"publish","type":"post","link":"https:\/\/salarydistribution.com\/machine-learning\/2020\/09\/30\/generate-a-python-notebook-for-pipeline-models-using-autoai\/","title":{"rendered":"Generate a Python notebook for pipeline models using AutoAI"},"content":{"rendered":"<div id=\"\">\n<!-- begin main body content --><\/p>\n<h2 id=\"summary\">Summary<\/h2>\n<p>In this code pattern, learn how to use AutoAI to automatically generate a Jupyter Notebook that contains Python code of a machine learning model. Then, explore, modify, and retrain the model pipeline using Python before deploying the model in IBM Watson\u00ae Machine Learning using Watson Machine Learning APIs.<\/p>\n<h2 id=\"description\">Description<\/h2>\n<p>AutoAI is a graphical tool available within IBM Watson Studio that analyzes your data set, generates several model pipelines, and ranks them based on the metric chosen for the problem. This code pattern shows extended features of AutoAI. More basic AutoAI exploration for the same data set is covered in the <a href=\"https:\/\/developer.ibm.com\/tutorials\/generate-machine-learning-model-pipelines-to-choose-the-best-model-for-your-problem-autoai\/\">Generate machine learning model pipelines to choose the best model for your problem<\/a> tutorial.<\/p>\n<p>When you have completed this code pattern, you understand how to:<\/p>\n<ul>\n<li>Run an AutoAI experiment<\/li>\n<li>Generate and save a Python notebook<\/li>\n<li>Execute the notebook and analyze results<\/li>\n<li>Make changes and retrain the model using Watson Machine Learning SDKs<\/li>\n<li>Deploy the model using Watson Machine Learning from within the notebook<\/li>\n<\/ul>\n<h2 id=\"flow\">Flow<\/h2>\n<p><img class=\"lazycontent\" data-src=\"https:\/\/developer.ibm.com\/developer\/default\/patterns\/autoai-code-generation\/images\/autoai-code-generation-flow.png\" alt=\"flow\"><\/p>\n<ol>\n<li>The user submits an AutoAI experiment using default settings.<\/li>\n<li>Multiple pipeline models are generated. A pipeline model of choice from the leaderboard is saved as a Jupyter Notebook.<\/li>\n<li>The Jupyter Notebook is executed, and a modified pipeline model is generated within the notebook.<\/li>\n<li>The pipeline model is deployed in Watson Machine Learning using Watson Machine Learning APIs.<\/li>\n<\/ol>\n<h2 id=\"instructions\">Instructions<\/h2>\n<p>Get detailed instructions in the <a href=\"https:\/\/github.com\/IBM\/AutoAI-code-generation\/blob\/master\/README.md\">readme<\/a> file. These instructions explain how to:<\/p>\n<ol>\n<li>Run an AutoAI experiment.<\/li>\n<li>Save the AutoAI-generated notebook.<\/li>\n<li>Load and execute the notebook.<\/li>\n<li>Deploy and score as a web service using a Watson Machine Learning instance.<\/li>\n<\/ol>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/developer.ibm.com\/patterns\/autoai-code-generation\/<\/p>\n","protected":false},"author":0,"featured_media":317,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/posts\/316"}],"collection":[{"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/comments?post=316"}],"version-history":[{"count":0,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/posts\/316\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/media\/317"}],"wp:attachment":[{"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/media?parent=316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/categories?post=316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salarydistribution.com\/machine-learning\/wp-json\/wp\/v2\/tags?post=316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}