From cc714200b3ff8a1df18bf980fb1794736baf8456 Mon Sep 17 00:00:00 2001 From: Jen Looper Date: Thu, 20 May 2021 14:05:34 -0400 Subject: [PATCH] quizzes for web app! --- Web-App/1-Web-App/README.md | 4 +- Web-App/README.md | 8 +- quiz-app/src/assets/translations/en.json | 432 +++++++++++++++++++++++ 3 files changed, 441 insertions(+), 3 deletions(-) diff --git a/Web-App/1-Web-App/README.md b/Web-App/1-Web-App/README.md index 1311c013..57775db0 100644 --- a/Web-App/1-Web-App/README.md +++ b/Web-App/1-Web-App/README.md @@ -1,7 +1,7 @@ # Build a Web App to use a ML Model In this lesson, you will train a Linear Regression model and a Classification model on a dataset that's out of this world: UFO Sightings over the past century, sourced from [NUFORC's database](https://www.nuforc.org). We will continue our use of notebooks to clean data and train our model, but you can take the process one step further by exploring using a model 'in the wild', so to speak: in a web app. To do this, you need to build a web app using Flask. -## [Pre-lecture quiz](link-to-quiz-app) +## [Pre-lecture quiz](https://jolly-sea-0a877260f.azurestaticapps.net/quiz/15/) There are several ways to build web apps to consume machine learning models. Your web architecture may influence the way your model is trained. Imagine that you are working in a business where the data science group has trained a model that they want you to use in an app. There are many questions you need to ask: Is it a web app, or a mobile app? Where will the model reside, in the cloud or locally? Does the app have to work offline? And what technology was used to train the model, because that may influence the tooling you need to use? @@ -267,7 +267,7 @@ Using a model this way, with Flask and a pickled model, is relatively straightfo Instead of working in a notebook and importing the model to the Flask app, you could train the model right within the Flask app! Try converting your Python code in the notebook, perhaps after your data is cleaned, to train the model from within the app on a route called `train`. What are the pros and cons of pursuing this method? -## [Post-lecture quiz](link-to-quiz-app) +## [Post-lecture quiz](https://jolly-sea-0a877260f.azurestaticapps.net/quiz/16/) ## Review & Self Study diff --git a/Web-App/README.md b/Web-App/README.md index 2809756b..a8de4606 100644 --- a/Web-App/README.md +++ b/Web-App/README.md @@ -8,4 +8,10 @@ In this section of the curriculum, you will be introduced to an applied ML topic ## Credits -"Build a Web App" was written with ♥️ by [Jen Looper](https://twitter.com/jenlooper). The dataset is sourced from [Kaggle](https://www.kaggle.com/NUFORC/ufo-sightings). The web app architecture was suggested in part by [this article](https://towardsdatascience.com/how-to-easily-deploy-machine-learning-models-using-flask-b95af8fe34d4) and [this repo](https://github.com/abhinavsagar/machine-learning-deployment) by Abhinav Sagar. \ No newline at end of file +"Build a Web App" was written with ♥️ by [Jen Looper](https://twitter.com/jenlooper). + +♥️ The quizzes were written by Rohan Raj. + +The dataset is sourced from [Kaggle](https://www.kaggle.com/NUFORC/ufo-sightings). + +The web app architecture was suggested in part by [this article](https://towardsdatascience.com/how-to-easily-deploy-machine-learning-models-using-flask-b95af8fe34d4) and [this repo](https://github.com/abhinavsagar/machine-learning-deployment) by Abhinav Sagar. \ No newline at end of file diff --git a/quiz-app/src/assets/translations/en.json b/quiz-app/src/assets/translations/en.json index fd1779ff..5f3afecd 100644 --- a/quiz-app/src/assets/translations/en.json +++ b/quiz-app/src/assets/translations/en.json @@ -435,6 +435,438 @@ ] } ] + }, + { + "id": 9, + "title": "Lesson 1 - Intro to ML: Pre-Lecture Quiz", + "quiz": [ + { + "questionText": "q1", + "answerOptions": [ + { + "answerText": "a", + "isCorrect": "false" + }, + { + "answerText": "b", + "isCorrect": "true" + }, + { + "answerText": "c", + "isCorrect": "false" + } + ] + }, + { + "questionText": "q2", + "answerOptions": [ + { + "answerText": "a", + "isCorrect": "true" + }, + { + "answerText": "b", + "isCorrect": "false" + } + ] + }, + { + "questionText": "q3", + "answerOptions": [ + { + "answerText": "a", + "isCorrect": "false" + }, + { + "answerText": "b", + "isCorrect": "true" + }, + { + "answerText": "c", + "isCorrect": "false" + } + ] + } + ] + }, + { + "id": 10, + "title": "Lesson 1 - Intro to ML: Post-Lecture Quiz", + "quiz": [ + { + "questionText": "q1", + "answerOptions": [ + { + "answerText": "a", + "isCorrect": "false" + }, + { + "answerText": "b", + "isCorrect": "true" + }, + { + "answerText": "c", + "isCorrect": "false" + } + ] + }, + { + "questionText": "q2", + "answerOptions": [ + { + "answerText": "a", + "isCorrect": "true" + }, + { + "answerText": "b", + "isCorrect": "false" + } + ] + }, + { + "questionText": "q3", + "answerOptions": [ + { + "answerText": "a", + "isCorrect": "false" + }, + { + "answerText": "b", + "isCorrect": "true" + }, + { + "answerText": "c", + "isCorrect": "false" + } + ] + } + ] + }, + { + "id": 11, + "title": "Lesson 1 - Intro to ML: Pre-Lecture Quiz", + "quiz": [ + { + "questionText": "q1", + "answerOptions": [ + { + "answerText": "a", + "isCorrect": "false" + }, + { + "answerText": "b", + "isCorrect": "true" + }, + { + "answerText": "c", + "isCorrect": "false" + } + ] + }, + { + "questionText": "q2", + "answerOptions": [ + { + "answerText": "a", + "isCorrect": "true" + }, + { + "answerText": "b", + "isCorrect": "false" + } + ] + }, + { + "questionText": "q3", + "answerOptions": [ + { + "answerText": "a", + "isCorrect": "false" + }, + { + "answerText": "b", + "isCorrect": "true" + }, + { + "answerText": "c", + "isCorrect": "false" + } + ] + } + ] + }, + { + "id": 12, + "title": "Lesson 1 - Intro to ML: Post-Lecture Quiz", + "quiz": [ + { + "questionText": "q1", + "answerOptions": [ + { + "answerText": "a", + "isCorrect": "false" + }, + { + "answerText": "b", + "isCorrect": "true" + }, + { + "answerText": "c", + "isCorrect": "false" + } + ] + }, + { + "questionText": "q2", + "answerOptions": [ + { + "answerText": "a", + "isCorrect": "true" + }, + { + "answerText": "b", + "isCorrect": "false" + } + ] + }, + { + "questionText": "q3", + "answerOptions": [ + { + "answerText": "a", + "isCorrect": "false" + }, + { + "answerText": "b", + "isCorrect": "true" + }, + { + "answerText": "c", + "isCorrect": "false" + } + ] + } + ] + }, + { + "id": 13, + "title": "Lesson 1 - Intro to ML: Pre-Lecture Quiz", + "quiz": [ + { + "questionText": "q1", + "answerOptions": [ + { + "answerText": "a", + "isCorrect": "false" + }, + { + "answerText": "b", + "isCorrect": "true" + }, + { + "answerText": "c", + "isCorrect": "false" + } + ] + }, + { + "questionText": "q2", + "answerOptions": [ + { + "answerText": "a", + "isCorrect": "true" + }, + { + "answerText": "b", + "isCorrect": "false" + } + ] + }, + { + "questionText": "q3", + "answerOptions": [ + { + "answerText": "a", + "isCorrect": "false" + }, + { + "answerText": "b", + "isCorrect": "true" + }, + { + "answerText": "c", + "isCorrect": "false" + } + ] + } + ] + }, + { + "id": 14, + "title": "Lesson 1 - Intro to ML: Post-Lecture Quiz", + "quiz": [ + { + "questionText": "q1", + "answerOptions": [ + { + "answerText": "a", + "isCorrect": "false" + }, + { + "answerText": "b", + "isCorrect": "true" + }, + { + "answerText": "c", + "isCorrect": "false" + } + ] + }, + { + "questionText": "q2", + "answerOptions": [ + { + "answerText": "a", + "isCorrect": "true" + }, + { + "answerText": "b", + "isCorrect": "false" + } + ] + }, + { + "questionText": "q3", + "answerOptions": [ + { + "answerText": "a", + "isCorrect": "false" + }, + { + "answerText": "b", + "isCorrect": "true" + }, + { + "answerText": "c", + "isCorrect": "false" + } + ] + } + ] + }, + { + "id": 15, + "title": "Build a Web App: Pre-Lecture Quiz", + "quiz": [ + { + "questionText": "What does ONNX stand for?", + "answerOptions": [ + { + "answerText": "Over Neural Network Exchange", + "isCorrect": "false" + }, + { + "answerText": "Open Neural Network Exchange", + "isCorrect": "true" + }, + { + "answerText": "Output Neural Network Exchange", + "isCorrect": "false" + } + ] + }, + { + "questionText": "How is Flask defined by its creators?", + "answerOptions": [ + { + "answerText": "mini-framework", + "isCorrect": "false" + }, + { + "answerText": "large-framework", + "isCorrect": "false" + }, + { + "answerText": "micro-framework", + "isCorrect": "true" + } + ] + }, + { + "questionText": "What does the Pickle module of Python do", + "answerOptions": [ + { + "answerText": "Serializes a Python Object", + "isCorrect": "false" + }, + { + "answerText": "De-serializes a Python Object", + "isCorrect": "false" + }, + { + "answerText": "Serializes and De-serializes a Python Object", + "isCorrect": "true" + } + ] + } + ] + }, + { + "id": 16, + "title": "Build a Web App: Post-Lecture Quiz", + "quiz": [ + { + "questionText": "What are the tools we can use to host a pre-trained model on the web using Python?", + "answerOptions": [ + { + "answerText": "Flask", + "isCorrect": "true" + }, + { + "answerText": "TensorFlow.js", + "isCorrect": "false" + }, + { + "answerText": "onnx.js", + "isCorrect": "false" + } + ] + }, + { + "questionText": "What does SaaS stand for?", + "answerOptions": [ + { + "answerText": "System as a Service", + "isCorrect": "false" + }, + { + "answerText": "Software as a Service", + "isCorrect": "true" + }, + { + "answerText": "Security as a Service", + "isCorrect": "false" + } + ] + }, + { + "questionText": "What does Scikit-Learn's LabelEncoder library do?", + "answerOptions": [ + { + "answerText": "Encodes data alphabetically", + "isCorrect": "true" + }, + { + "answerText": "Encodes data numerically", + "isCorrect": "false" + }, + { + "answerText": "Encodes data serially", + "isCorrect": "false" + } + ] + } + ] } ] }