Use other services for machine learning

  • 4/11/2018

Thought experiment

This thought experiment allows you to demonstrate the skills and knowledge gained by reviewing the topics covered in the chapter. The answers are included in the next section.

Answer the following questions for your manager:

  1. You need to detect manufacturing errors from photos of factory-produced parts. You have decided to use a deep convolutional neural network because you are going to work with images. What activation would you preferably use in your network: Sigmoid, tanh, or ReLU? Can you use sigmoids, tanhs, and ReLUs in Net#?

  2. You are working for a hospital and they ask you to perform two tasks. Assuming that for both problems you have about 100k examples, to which of these two problems deep learning applies best?

    1. Classify tumors into benign or malignant depending on the size and shape of the tumor and the age and sex of the patient.

    2. Classify images of skin lesions as benign lesions or malignant skin cancers.

  3. You are collaborating in the development of an application, and your task is to provide a REST service that classifies images. Order the following possible solutions from the least costly to the most costly from a development point of view.

    1. Use Cortana Vision APIs to classify images.

    2. Within a Data Science Virtual Machine, train a convolutional neural network using CNTK.

    3. Define a convolutional network on Azure ML using Net#.

  4. You must create a system capable of analyzing in real time the clicks that users make on a website with a lot of traffic. Due to the large number of users that the system must support, you decide to use a cluster. What kind of cluster is best suited for creating real-time systems?

    1. Spark

    2. Storm

    3. HBase

    4. R Server

  5. You are using Spark and you have a Spark SQL DataFrame named df. From a Jupyter Notebook you make a SQL SELECT to this DataFrame:

    %%sql
    SELECT * FROM df

    After executing that cell of code you get an error that says that the table does not exist. What have you forgotten?

  6. You need to periodically analyze the data in one of the tables of an SQL Server. You decide to analyze them by reusing an R script you already have written. To easily schedule the execution of the script you decide to put it in a stored procedure. What is a required step to execute R and Python scripts from a TSQL Stored procedure?

    1. Define the input and output variable names.

    2. Encapsulate the procedure call in another custom procedure.

    3. Enable external scripts execution in the SQL Server engine.

    4. Execute the full R and Python script from the command line prior to executing it form TSQL.