Implementing in Watson

Once again, following the steps used earlier in this chapter, we can open our machine learning project in IBM Watson Studio and create a new Notebook. From there, we can paste the sample Python code into cells within the Notebook and press Run to test each cell's code.

As we've seen, you can use multiple cells within the Notebook to segment functional blocks of your code. Using the menu bar, you can also cut and paste cells, split and merge cells, and move a cell up or down within the Notebook. For clarity, an additional handy feature is to display the line numbers for each of the Python commands in the Notebook. You can do this by clicking the appropriate menu selection under Edit or View on the menu bar:

You may want to split cells to show intermediate cell outputs or combine cells into one cell and show the combined output. For example, in the next screenshot, you can see two cells, each followed by their respective outputs:

The following screenshot shows those two cells combined into one followed by the combined output:

Using the menu options, you can create a very well-organized, functional, and sharable solution. In the next section, we will use Markdown tags within Watson Studio to create an even more valuable solution.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset