From a7f5ac8d521c1482ae1acb0b8d9b130cb2748138 Mon Sep 17 00:00:00 2001 From: Jen Looper Date: Thu, 21 Apr 2022 09:46:09 -0400 Subject: [PATCH 1/2] moving quiz app, refactoring per lesson --- ...static-web-apps-black-ground-0cc93280f.yml | 2 +- 1-Intro/README.md | 4 +- README.md | 2 +- TRANSLATIONS.md | 4 +- {quiz-app => etc/quiz-app}/README.md | 7 +- {quiz-app => etc/quiz-app}/babel.config.js | 0 {quiz-app => etc/quiz-app}/package-lock.json | 0 {quiz-app => etc/quiz-app}/package.json | 0 {quiz-app => etc/quiz-app}/public/favicon.ico | Bin {quiz-app => etc/quiz-app}/public/index.html | 0 {quiz-app => etc/quiz-app}/public/routes.json | 0 {quiz-app => etc/quiz-app}/src/App.vue | 0 .../src/assets/translations/en/index.js | 11 + .../src/assets/translations/en/lesson-1.json | 115 +++++ .../src/assets/translations/en/lesson-2.json | 116 +++++ .../src/assets/translations/en/lesson-3.json | 116 +++++ .../src/assets/translations/en/lesson-4.json | 10 + .../src/assets/translations/es/index.js | 7 + .../src/assets/translations/es/lesson-1.json | 115 +++++ etc/quiz-app/src/assets/translations/index.js | 8 + .../quiz-app}/src/components/Quiz.vue | 0 {quiz-app => etc/quiz-app}/src/main.js | 0 .../quiz-app}/src/router/index.js | 0 {quiz-app => etc/quiz-app}/src/views/Home.vue | 0 .../quiz-app}/src/views/NotFound.vue | 0 .../src/assets/translations/en/group-1.json | 327 -------------- quiz-app/src/assets/translations/en/index.js | 18 - .../src/assets/translations/es/group-1.json | 418 ------------------ quiz-app/src/assets/translations/es/index.js | 17 - quiz-app/src/assets/translations/index.js | 8 - 30 files changed, 507 insertions(+), 798 deletions(-) rename {quiz-app => etc/quiz-app}/README.md (81%) rename {quiz-app => etc/quiz-app}/babel.config.js (100%) rename {quiz-app => etc/quiz-app}/package-lock.json (100%) rename {quiz-app => etc/quiz-app}/package.json (100%) rename {quiz-app => etc/quiz-app}/public/favicon.ico (100%) rename {quiz-app => etc/quiz-app}/public/index.html (100%) rename {quiz-app => etc/quiz-app}/public/routes.json (100%) rename {quiz-app => etc/quiz-app}/src/App.vue (100%) create mode 100644 etc/quiz-app/src/assets/translations/en/index.js create mode 100644 etc/quiz-app/src/assets/translations/en/lesson-1.json create mode 100644 etc/quiz-app/src/assets/translations/en/lesson-2.json create mode 100644 etc/quiz-app/src/assets/translations/en/lesson-3.json create mode 100644 etc/quiz-app/src/assets/translations/en/lesson-4.json create mode 100644 etc/quiz-app/src/assets/translations/es/index.js create mode 100644 etc/quiz-app/src/assets/translations/es/lesson-1.json create mode 100644 etc/quiz-app/src/assets/translations/index.js rename {quiz-app => etc/quiz-app}/src/components/Quiz.vue (100%) rename {quiz-app => etc/quiz-app}/src/main.js (100%) rename {quiz-app => etc/quiz-app}/src/router/index.js (100%) rename {quiz-app => etc/quiz-app}/src/views/Home.vue (100%) rename {quiz-app => etc/quiz-app}/src/views/NotFound.vue (100%) delete mode 100644 quiz-app/src/assets/translations/en/group-1.json delete mode 100644 quiz-app/src/assets/translations/en/index.js delete mode 100644 quiz-app/src/assets/translations/es/group-1.json delete mode 100644 quiz-app/src/assets/translations/es/index.js delete mode 100644 quiz-app/src/assets/translations/index.js diff --git a/.github/workflows/azure-static-web-apps-black-ground-0cc93280f.yml b/.github/workflows/azure-static-web-apps-black-ground-0cc93280f.yml index d3221698..80573040 100644 --- a/.github/workflows/azure-static-web-apps-black-ground-0cc93280f.yml +++ b/.github/workflows/azure-static-web-apps-black-ground-0cc93280f.yml @@ -27,7 +27,7 @@ jobs: action: "upload" ###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig - app_location: "/quiz-app" # App source code path + app_location: "/etc/quiz-app" # App source code path api_location: "api" # Api source code path - optional output_location: "dist" # Built app content directory - optional ###### End of Repository/Build Configurations ###### diff --git a/1-Intro/README.md b/1-Intro/README.md index 069e27be..f1df4c98 100644 --- a/1-Intro/README.md +++ b/1-Intro/README.md @@ -4,7 +4,7 @@ > Sketchnote by [Tomomi Imura](https://twitter.com/girlie_mac) -## [Pre-lecture quiz](https://black-ground-0cc93280f.1.azurestaticapps.net/quiz/0) +## [Pre-lecture quiz](https://black-ground-0cc93280f.1.azurestaticapps.net/quiz/101) **Artificial Intelligence** is an exciting scientific discipline that studies how we can make computers exhibit intelligent behavior, e.g. do those things that human beings are good at doing. @@ -140,7 +140,7 @@ Over the past few years we have witnessed huge successes with large language mod Do a tour of the internet to determine where, in your opinion, AI is most effectively used. Is it in a Mapping app, or some speech-to-text service or a video game? Research how the system was built. -## [Post-lecture quiz](https://black-ground-0cc93280f.1.azurestaticapps.net/quiz/1) +## [Post-lecture quiz](https://black-ground-0cc93280f.1.azurestaticapps.net/quiz/201) ## Review & Self Study diff --git a/README.md b/README.md index 63072347..7316ba6e 100644 --- a/README.md +++ b/README.md @@ -142,7 +142,7 @@ By ensuring that the content aligns with projects, the process is made more enga > Find our [Code of Conduct](CODE_OF_CONDUCT.md), [Contributing](CONTRIBUTING.md), and [Translation](TRANSLATIONS.md) guidelines. We welcome your constructive feedback! -> **A note about quizzes**: All quizzes are contained [in this app](https://black-ground-0cc93280f.1.azurestaticapps.net/), for 50 total quizzes of three questions each. They are linked from within the lessons but the quiz app can be run locally; follow the instruction in the `quiz-app` folder. +> **A note about quizzes**: All quizzes are contained [in this app](https://black-ground-0cc93280f.1.azurestaticapps.net/), for 50 total quizzes of three questions each. They are linked from within the lessons but the quiz app can be run locally; follow the instruction in the `/etc/quiz-app` folder. ## Offline access diff --git a/TRANSLATIONS.md b/TRANSLATIONS.md index f544609a..a76e534d 100644 --- a/TRANSLATIONS.md +++ b/TRANSLATIONS.md @@ -20,11 +20,11 @@ Similar to Readme's, please translate the assignments as well. **Quizzes** -1. Add your translation to the quiz-app by adding a file here: https://github.com/microsoft/ML-For-Beginners/tree/main/quiz-app/src/assets/translations, with proper naming convention (en.json, fr.json). **Please don't localize the words 'true' or 'false' however. thanks!** +1. Add your translation to the quiz-app by adding a file here: https://github.com/microsoft/AI-For-Beginners/tree/main/etc/quiz-app/src/assets/translations, with proper naming convention (en.json, fr.json). **Please don't localize the words 'true' or 'false' however. thanks!** 2. Add your language code to the dropdown in the quiz-app's App.vue file. -3. Edit the quiz-app's [translations index.js file](https://github.com/microsoft/AI-For-Beginners/blob/main/quiz-app/src/assets/translations/index.js) to add your language. +3. Edit the quiz-app's [translations index.js file](https://github.com/microsoft/AI-For-Beginners/blob/main/etc/quiz-app/src/assets/translations/index.js) to add your language. 4. Finally, edit ALL the quiz links in your translated README.md files to point directly to your translated quiz: https://black-ground-0cc93280f.1.azurestaticapps.net/quiz/1 becomes https://black-ground-0cc93280f.1.azurestaticapps.net/quiz/1?loc=id diff --git a/quiz-app/README.md b/etc/quiz-app/README.md similarity index 81% rename from quiz-app/README.md rename to etc/quiz-app/README.md index eed46a68..f202de18 100644 --- a/quiz-app/README.md +++ b/etc/quiz-app/README.md @@ -1,9 +1,10 @@ # Quizzes -These quizzes are the pre- and post-lecture quizzes for the data science curriculum at https://aka.ms/datascience-beginners +These quizzes are the pre- and post-lecture quizzes for the AI curriculum at https://aka.ms/ai-beginners + ## Adding a translated quiz set -Add a quiz translation by creating matching quiz structures in the `assets/translations` folders. The canonical quizzes are in `assets/translations/en`. The quizzes are broken into several groupings. Make sure to align the numbering with the proper quiz section. There are 40 quizzes total in this curriculum, with the count starting at 0. +Add a quiz translation by creating matching quiz structures in the `assets/translations` folders. The canonical quizzes are in `assets/translations/en`. The quizzes are broken into several groupings by lesson. Make sure to align the numbering with the proper quiz section. There are 40 quizzes total in this curriculum, with the count starting at 0. After editing the translations, edit the index.js file in the translation folder to import all the files following the conventions in `en`. @@ -13,8 +14,6 @@ Then, edit the dropdown in `App.vue` in this app to add your language. Match the Finally, edit all the quiz links in the translated lessons, if they exist, to include this localization as a query parameter: `?loc=fr` for example. - - ## Project setup ``` diff --git a/quiz-app/babel.config.js b/etc/quiz-app/babel.config.js similarity index 100% rename from quiz-app/babel.config.js rename to etc/quiz-app/babel.config.js diff --git a/quiz-app/package-lock.json b/etc/quiz-app/package-lock.json similarity index 100% rename from quiz-app/package-lock.json rename to etc/quiz-app/package-lock.json diff --git a/quiz-app/package.json b/etc/quiz-app/package.json similarity index 100% rename from quiz-app/package.json rename to etc/quiz-app/package.json diff --git a/quiz-app/public/favicon.ico b/etc/quiz-app/public/favicon.ico similarity index 100% rename from quiz-app/public/favicon.ico rename to etc/quiz-app/public/favicon.ico diff --git a/quiz-app/public/index.html b/etc/quiz-app/public/index.html similarity index 100% rename from quiz-app/public/index.html rename to etc/quiz-app/public/index.html diff --git a/quiz-app/public/routes.json b/etc/quiz-app/public/routes.json similarity index 100% rename from quiz-app/public/routes.json rename to etc/quiz-app/public/routes.json diff --git a/quiz-app/src/App.vue b/etc/quiz-app/src/App.vue similarity index 100% rename from quiz-app/src/App.vue rename to etc/quiz-app/src/App.vue diff --git a/etc/quiz-app/src/assets/translations/en/index.js b/etc/quiz-app/src/assets/translations/en/index.js new file mode 100644 index 00000000..320fea62 --- /dev/null +++ b/etc/quiz-app/src/assets/translations/en/index.js @@ -0,0 +1,11 @@ +import en1 from "./lesson-1.json"; +import en2 from "./lesson-2.json"; +import en3 from "./lesson-3.json"; + +const quiz = { + 0: en1[0], + 1: en2[0], + 2: en3[0] +}; + +export default quiz; diff --git a/etc/quiz-app/src/assets/translations/en/lesson-1.json b/etc/quiz-app/src/assets/translations/en/lesson-1.json new file mode 100644 index 00000000..efd45c66 --- /dev/null +++ b/etc/quiz-app/src/assets/translations/en/lesson-1.json @@ -0,0 +1,115 @@ +[ + { + "title": "AI for Beginners: Quizzes", + "complete": "Congratulations, you completed the quiz!", + "error": "Sorry, try again", + "quizzes": [ + { + "id": 1, + "title": "Introduction to AI - Pre Quiz", + "quiz": [ + { + "questionText": "A famous 19th century proto-computer engineer was", + "answerOptions": [ + { + "answerText": "Charles Barkley", + "isCorrect": "false" + }, + { + "answerText": "Charles Babbage", + "isCorrect": "true" + }, + { + "answerText": "Charles Darwin", + "isCorrect": "false" + } + ] + }, + { + "questionText": "Weak AI is a system designed to solve many tasks", + "answerOptions": [ + { + "answerText": "True", + "isCorrect": "false" + }, + { + "answerText": "False", + "isCorrect": "true" + } + ] + }, + { + "questionText": "Chat bots are an example of truly intelligent systems", + "answerOptions": [ + { + "answerText": "false, they are usually designed by a series of rules.", + "isCorrect": "false" + }, + { + "answerText": "true, they are usually considered to be 'intelligent'.", + "isCorrect": "false" + }, + { + "answerText": "false, but they are increasingly able to pass Turing tests as they become more sophisticated.", + "isCorrect": "true" + } + ] + } + ] + }, + { + "id": 2, + "title": "Introduction to AI: Post-Quiz", + "quiz": [ + { + "questionText": "A top-down approach to AI is a model of reasoning called", + "answerOptions": [ + { + "answerText": "strategic reasoning", + "isCorrect": "false" + }, + { + "answerText": "symbolic reasoning", + "isCorrect": "true" + }, + { + "answerText": "synergistic reasoning", + "isCorrect": "false" + } + ] + }, + { + "questionText": "A bottom-up approach to AI might leverage a neural network to", + "answerOptions": [ + { + "answerText": "true", + "isCorrect": "true" + }, + { + "answerText": "false", + "isCorrect": "false" + } + ] + }, + { + "questionText": "The AI Winter occurred in this era", + "answerOptions": [ + { + "answerText": "1950s", + "isCorrect": "false" + }, + { + "answerText": "1960s", + "isCorrect": "false" + }, + { + "answerText": "1970s", + "isCorrect": "true" + } + ] + } + ] + } + ] + } +] diff --git a/etc/quiz-app/src/assets/translations/en/lesson-2.json b/etc/quiz-app/src/assets/translations/en/lesson-2.json new file mode 100644 index 00000000..2ae035bf --- /dev/null +++ b/etc/quiz-app/src/assets/translations/en/lesson-2.json @@ -0,0 +1,116 @@ +[ + { + "title": "AI for Beginners: Quizzes", + "complete": "Congratulations, you completed the quiz!", + "error": "Sorry, try again", + "quizzes": [ + + { + "id": 3, + "title": "Knowledge Representation and Expert Systems: Pre-Quiz", + "quiz": [ + { + "questionText": "The top-down approach to creating intelligent systems was based on:", + "answerOptions": [ + { + "answerText": "knowledge seeking and reading", + "isCorrect": "false" + }, + { + "answerText": "knowledge representation and reasoning", + "isCorrect": "true" + }, + { + "answerText": "knowledge reasoning and seeking", + "isCorrect": "false" + } + ] + }, + { + "questionText": "Knowledge is the same as information", + "answerOptions": [ + { + "answerText": "true", + "isCorrect": "false" + }, + { + "answerText": "false", + "isCorrect": "true" + } + ] + }, + { + "questionText": "Knowledge is obtained by an:", + "answerOptions": [ + { + "answerText": "active learning process", + "isCorrect": "true" + }, + { + "answerText": "passive learning process", + "isCorrect": "false" + }, + { + "answerText": "both of these", + "isCorrect": "false" + } + ] + } + ] + }, + { + "id": 4, + "title": "Knowledge Representation and Expert Systems: Post-Quiz", + "quiz": [ + { + "questionText": "The simplest method of knowledge representation is:", + "answerOptions": [ + { + "answerText": "algorithmic", + "isCorrect": "true" + }, + { + "answerText": "symbolic", + "isCorrect": "false" + }, + { + "answerText": "synergistic", + "isCorrect": "false" + } + ] + }, + { + "questionText": "Scenarios can represent complex situations that can unfold in time", + "answerOptions": [ + { + "answerText": "true", + "isCorrect": "true" + }, + { + "answerText": "false", + "isCorrect": "false" + } + ] + }, + { + "questionText": "Forward inference starts with initial data and then:", + "answerOptions": [ + { + "answerText": "executes a reasoning loop", + "isCorrect": "true" + }, + { + "answerText": "looks for a goal", + "isCorrect": "false" + }, + { + "answerText": "starts over", + "isCorrect": "false" + } + ] + } + ] + } + ] + } +] diff --git a/etc/quiz-app/src/assets/translations/en/lesson-3.json b/etc/quiz-app/src/assets/translations/en/lesson-3.json new file mode 100644 index 00000000..2646d747 --- /dev/null +++ b/etc/quiz-app/src/assets/translations/en/lesson-3.json @@ -0,0 +1,116 @@ +[ + { + "title": "AI for Beginners: Quizzes", + "complete": "Congratulations, you completed the quiz!", + "error": "Sorry, try again", + "quizzes": [ + + { + "id": 5, + "title": "Introduction to Neural Networks - Perceptron: Post-Quiz", + "quiz": [ + { + "questionText": "Early neural networks required", + "answerOptions": [ + { + "answerText": "manual weight adjusting", + "isCorrect": "true" + }, + { + "answerText": "terabytes of data", + "isCorrect": "false" + }, + { + "answerText": "special reasoning", + "isCorrect": "false" + } + ] + }, + { + "questionText": "A simple neuron is also called a 'threshold logic unit'", + "answerOptions": [ + { + "answerText": "true", + "isCorrect": "true" + }, + { + "answerText": "false", + "isCorrect": "false" + } + ] + }, + { + "questionText": "A perceptron is a ___ type of model", + "answerOptions": [ + { + "answerText": "linear regression", + "isCorrect": "false" + }, + { + "answerText": "clustering", + "isCorrect": "false" + }, + { + "answerText": "binary classification", + "isCorrect": "true" + } + ] + } + ] + }, + { + "id": 6, + "title": "Introduction to Neural Networks - Perceptron: Post-Quiz", + "quiz": [ + { + "questionText": "To train a perceptron, find a weights vector that results in the smallest ___.", + "answerOptions": [ + { + "answerText": "size", + "isCorrect": "false" + }, + { + "answerText": "error", + "isCorrect": "true" + }, + { + "answerText": "nodes", + "isCorrect": "false" + } + ] + }, + { + "questionText": "To minimize the function of weights, you can use gradient descent", + "answerOptions": [ + { + "answerText": "true", + "isCorrect": "true" + }, + { + "answerText": "false", + "isCorrect": "false" + } + ] + }, + { + "questionText": "During gradient descent, each step updates the ___", + "answerOptions": [ + { + "answerText": "learning rate", + "isCorrect": "false" + }, + { + "answerText": "weights", + "isCorrect": "true" + }, + { + "answerText": "gradient", + "isCorrect": "false" + } + ] + } + ] + } + ] + } +] diff --git a/etc/quiz-app/src/assets/translations/en/lesson-4.json b/etc/quiz-app/src/assets/translations/en/lesson-4.json new file mode 100644 index 00000000..8faabde9 --- /dev/null +++ b/etc/quiz-app/src/assets/translations/en/lesson-4.json @@ -0,0 +1,10 @@ +[ + { + "title": "AI for Beginners: Quizzes", + "complete": "Congratulations, you completed the quiz!", + "error": "Sorry, try again", + "quizzes": [ + + ] + } +] diff --git a/etc/quiz-app/src/assets/translations/es/index.js b/etc/quiz-app/src/assets/translations/es/index.js new file mode 100644 index 00000000..f4ec186f --- /dev/null +++ b/etc/quiz-app/src/assets/translations/es/index.js @@ -0,0 +1,7 @@ +import es1 from './lesson-1.json'; +//add items here +const quiz = { + 0: es1[0] +}; + +export default quiz; diff --git a/etc/quiz-app/src/assets/translations/es/lesson-1.json b/etc/quiz-app/src/assets/translations/es/lesson-1.json new file mode 100644 index 00000000..13c6165d --- /dev/null +++ b/etc/quiz-app/src/assets/translations/es/lesson-1.json @@ -0,0 +1,115 @@ +[ + { + "title": "IA para principiantes: Quizzes", + "complete": "¡Felicitaciones, has completado el cuestionario!", + "error": "Perdón, intente de nuevo", + "quizzes": [ + { + "id": 1, + "title": "Introducción a la IA - Pre Quiz", + "quiz": [ + { + "questionText": "A famous 19th century proto-computer engineer was", + "answerOptions": [ + { + "answerText": "Charles Barkley", + "isCorrect": "false" + }, + { + "answerText": "Charles Babbage", + "isCorrect": "true" + }, + { + "answerText": "Charles Darwin", + "isCorrect": "false" + } + ] + }, + { + "questionText": "Weak AI is a system designed to solve many tasks", + "answerOptions": [ + { + "answerText": "True", + "isCorrect": "false" + }, + { + "answerText": "False", + "isCorrect": "true" + } + ] + }, + { + "questionText": "Chat bots are an example of truly intelligent systems", + "answerOptions": [ + { + "answerText": "false, they are usually designed by a series of rules.", + "isCorrect": "false" + }, + { + "answerText": "true, they are usually considered to be 'intelligent'.", + "isCorrect": "false" + }, + { + "answerText": "false, but they are increasingly able to pass Turing tests as they become more sophisticated.", + "isCorrect": "true" + } + ] + } + ] + }, + { + "id": 2, + "title": "Introducción a la IA: Post-Quiz", + "quiz": [ + { + "questionText": "A top-down approach to AI is a model of reasoning called", + "answerOptions": [ + { + "answerText": "strategic reasoning", + "isCorrect": "false" + }, + { + "answerText": "symbolic reasoning", + "isCorrect": "true" + }, + { + "answerText": "synergistic reasoning", + "isCorrect": "false" + } + ] + }, + { + "questionText": "A bottom-up approach to AI might leverage a neural network to", + "answerOptions": [ + { + "answerText": "true", + "isCorrect": "true" + }, + { + "answerText": "false", + "isCorrect": "false" + } + ] + }, + { + "questionText": "The AI Winter occurred in this era", + "answerOptions": [ + { + "answerText": "1950s", + "isCorrect": "false" + }, + { + "answerText": "1960s", + "isCorrect": "false" + }, + { + "answerText": "1970s", + "isCorrect": "true" + } + ] + } + ] + } + ] + } +] diff --git a/etc/quiz-app/src/assets/translations/index.js b/etc/quiz-app/src/assets/translations/index.js new file mode 100644 index 00000000..36c626f2 --- /dev/null +++ b/etc/quiz-app/src/assets/translations/index.js @@ -0,0 +1,8 @@ +import englishQuizzes from './en'; +import spanishQuizzes from './es'; + +const messages = { + en: englishQuizzes, + es: spanishQuizzes, +}; +export default messages; diff --git a/quiz-app/src/components/Quiz.vue b/etc/quiz-app/src/components/Quiz.vue similarity index 100% rename from quiz-app/src/components/Quiz.vue rename to etc/quiz-app/src/components/Quiz.vue diff --git a/quiz-app/src/main.js b/etc/quiz-app/src/main.js similarity index 100% rename from quiz-app/src/main.js rename to etc/quiz-app/src/main.js diff --git a/quiz-app/src/router/index.js b/etc/quiz-app/src/router/index.js similarity index 100% rename from quiz-app/src/router/index.js rename to etc/quiz-app/src/router/index.js diff --git a/quiz-app/src/views/Home.vue b/etc/quiz-app/src/views/Home.vue similarity index 100% rename from quiz-app/src/views/Home.vue rename to etc/quiz-app/src/views/Home.vue diff --git a/quiz-app/src/views/NotFound.vue b/etc/quiz-app/src/views/NotFound.vue similarity index 100% rename from quiz-app/src/views/NotFound.vue rename to etc/quiz-app/src/views/NotFound.vue diff --git a/quiz-app/src/assets/translations/en/group-1.json b/quiz-app/src/assets/translations/en/group-1.json deleted file mode 100644 index b9fb9c6c..00000000 --- a/quiz-app/src/assets/translations/en/group-1.json +++ /dev/null @@ -1,327 +0,0 @@ -[ - { - "title": "AI for Beginners: Quizzes", - "complete": "Congratulations, you completed the quiz!", - "error": "Sorry, try again", - "quizzes": [ - { - "id": 0, - "title": "Introduction to AI - Pre Quiz", - "quiz": [ - { - "questionText": "A famous 19th century proto-computer engineer was", - "answerOptions": [ - { - "answerText": "Charles Barkley", - "isCorrect": "false" - }, - { - "answerText": "Charles Babbage", - "isCorrect": "true" - }, - { - "answerText": "Charles Darwin", - "isCorrect": "false" - } - ] - }, - { - "questionText": "Weak AI is a system designed to solve many tasks", - "answerOptions": [ - { - "answerText": "True", - "isCorrect": "false" - }, - { - "answerText": "False", - "isCorrect": "true" - } - ] - }, - { - "questionText": "Chat bots are an example of truly intelligent systems", - "answerOptions": [ - { - "answerText": "false, they are usually designed by a series of rules.", - "isCorrect": "false" - }, - { - "answerText": "true, they are usually considered to be 'intelligent'.", - "isCorrect": "false" - }, - { - "answerText": "false, but they are increasingly able to pass Turing tests as they become more sophisticated.", - "isCorrect": "true" - } - ] - } - ] - }, - { - "id": 1, - "title": "Introduction to AI: Post-Quiz", - "quiz": [ - { - "questionText": "A top-down approach to AI is a model of reasoning called", - "answerOptions": [ - { - "answerText": "strategic reasoning", - "isCorrect": "false" - }, - { - "answerText": "symbolic reasoning", - "isCorrect": "true" - }, - { - "answerText": "synergistic reasoning", - "isCorrect": "false" - } - ] - }, - { - "questionText": "A bottom-up approach to AI might leverage a neural network to", - "answerOptions": [ - { - "answerText": "true", - "isCorrect": "true" - }, - { - "answerText": "false", - "isCorrect": "false" - } - ] - }, - { - "questionText": "The AI Winter occurred in this era", - "answerOptions": [ - { - "answerText": "1950s", - "isCorrect": "false" - }, - { - "answerText": "1960s", - "isCorrect": "false" - }, - { - "answerText": "1970s", - "isCorrect": "true" - } - ] - } - ] - }, - { - "id": 2, - "title": "Knowledge Representation and Expert Systems: Pre-Quiz", - "quiz": [ - { - "questionText": "The top-down approach to creating intelligent systems was based on:", - "answerOptions": [ - { - "answerText": "knowledge seeking and reading", - "isCorrect": "false" - }, - { - "answerText": "knowledge representation and reasoning", - "isCorrect": "true" - }, - { - "answerText": "knowledge reasoning and seeking", - "isCorrect": "false" - } - ] - }, - { - "questionText": "Knowledge is the same as information", - "answerOptions": [ - { - "answerText": "true", - "isCorrect": "false" - }, - { - "answerText": "false", - "isCorrect": "true" - } - ] - }, - { - "questionText": "Knowledge is obtained by an:", - "answerOptions": [ - { - "answerText": "active learning process", - "isCorrect": "true" - }, - { - "answerText": "passive learning process", - "isCorrect": "false" - }, - { - "answerText": "both of these", - "isCorrect": "false" - } - ] - } - ] - }, - { - "id": 3, - "title": "Knowledge Representation and Expert Systems: Post-Quiz", - "quiz": [ - { - "questionText": "The simplest method of knowledge representation is:", - "answerOptions": [ - { - "answerText": "algorithmic", - "isCorrect": "true" - }, - { - "answerText": "symbolic", - "isCorrect": "false" - }, - { - "answerText": "synergistic", - "isCorrect": "false" - } - ] - }, - { - "questionText": "Scenarios can represent complex situations that can unfold in time", - "answerOptions": [ - { - "answerText": "true", - "isCorrect": "true" - }, - { - "answerText": "false", - "isCorrect": "false" - } - ] - }, - { - "questionText": "Forward inference starts with initial data and then:", - "answerOptions": [ - { - "answerText": "executes a reasoning loop", - "isCorrect": "true" - }, - { - "answerText": "looks for a goal", - "isCorrect": "false" - }, - { - "answerText": "starts over", - "isCorrect": "false" - } - ] - } - ] - }, - { - "id": 4, - "title": "Introduction to Neural Networks - Perceptron: Post-Quiz", - "quiz": [ - { - "questionText": "Early neural networks required", - "answerOptions": [ - { - "answerText": "manual weight adjusting", - "isCorrect": "true" - }, - { - "answerText": "terabytes of data", - "isCorrect": "false" - }, - { - "answerText": "special reasoning", - "isCorrect": "false" - } - ] - }, - { - "questionText": "A simple neuron is also called a 'threshold logic unit'", - "answerOptions": [ - { - "answerText": "true", - "isCorrect": "true" - }, - { - "answerText": "false", - "isCorrect": "false" - } - ] - }, - { - "questionText": "A perceptron is a ___ type of model", - "answerOptions": [ - { - "answerText": "linear regression", - "isCorrect": "false" - }, - { - "answerText": "clustering", - "isCorrect": "false" - }, - { - "answerText": "binary classification", - "isCorrect": "true" - } - ] - } - ] - }, - { - "id": 5, - "title": "Introduction to Neural Networks - Perceptron: Post-Quiz", - "quiz": [ - { - "questionText": "To train a perceptron, find a weights vector that results in the smallest ___.", - "answerOptions": [ - { - "answerText": "size", - "isCorrect": "false" - }, - { - "answerText": "error", - "isCorrect": "true" - }, - { - "answerText": "nodes", - "isCorrect": "false" - } - ] - }, - { - "questionText": "To minimize the function of weights, you can use gradient descent", - "answerOptions": [ - { - "answerText": "true", - "isCorrect": "true" - }, - { - "answerText": "false", - "isCorrect": "false" - } - ] - }, - { - "questionText": "During gradient descent, each step updates the ___", - "answerOptions": [ - { - "answerText": "learning rate", - "isCorrect": "false" - }, - { - "answerText": "weights", - "isCorrect": "true" - }, - { - "answerText": "gradient", - "isCorrect": "false" - } - ] - } - ] - } - ] - } -] diff --git a/quiz-app/src/assets/translations/en/index.js b/quiz-app/src/assets/translations/en/index.js deleted file mode 100644 index 4fcec466..00000000 --- a/quiz-app/src/assets/translations/en/index.js +++ /dev/null @@ -1,18 +0,0 @@ -import en0 from "./group-1.json"; -/*import en1 from "./group-2.json"; -import en2 from "./group-3.json"; -import en3 from "./group-4.json"; -import en4 from "./group-5.json"; -import en5 from "./group-6.json";*/ - - -const quiz = { - 0: en0[0], - /*1: en1[0], - 2: en2[0], - 3: en3[0], - 4: en4[0], - 5: en5[0],*/ -}; - -export default quiz; diff --git a/quiz-app/src/assets/translations/es/group-1.json b/quiz-app/src/assets/translations/es/group-1.json deleted file mode 100644 index 9925a0a4..00000000 --- a/quiz-app/src/assets/translations/es/group-1.json +++ /dev/null @@ -1,418 +0,0 @@ -[{ - "title": "AI para principiantes: Cuestionarios", - "complete": "Enhorabuena, has completado el cuestionario!", - "error": "Lo siento, inténtalo de nuevo", - "quizzes": [{ - "id": 0, - "title": "Definición de la ciencia de los datos - Cuestionario previo", - "quiz": [{ - "questionText": "¿Por qué la palabra _Ciencia_ en Ciencia de Datos?", - "answerOptions": [{ - "answerText": "Utiliza métodos científicos para analizar los datos", - "isCorrect": "true" - }, - { - "answerText": "Sólo las personas con títulos académicos pueden entenderlo", - "isCorrect": "false" - }, - { - "answerText": "Para que suene bien", - "isCorrect": "false" - } - ] - }, - { - "questionText": "El aprendizaje de la ciencia de los datos sólo es útil para los desarrolladores", - "answerOptions": [{ - "answerText": "Verdadero", - "isCorrect": "false" - }, - { - "answerText": "Falso", - "isCorrect": "true" - } - ] - }, - { - "questionText": "¿Qué necesitamos para demostrar que los jugadores de baloncesto son más altos que la gente media?", - "answerOptions": [{ - "answerText": "Recopilar datos", - "isCorrect": "false" - }, - { - "answerText": "Conocer algo de probabilidad y estadística", - "isCorrect": "false" - }, - { - "answerText": "Las dos respuestas anteriores", - "isCorrect": "true" - } - ] - } - ] - }, - { - "id": 1, - "title": "Definir la ciencia de los datos: Cuestionario final", - "quiz": [{ - "questionText": "¿Qué áreas están estrechamente relacionadas con la ciencia de los datos?", - "answerOptions": [{ - "answerText": "Inteligencia Artificial", - "isCorrect": "false" - }, - { - "answerText": "Aprendizaje automático", - "isCorrect": "false" - }, - { - "answerText": "Las dos respuestas anteriores", - "isCorrect": "true" - } - ] - }, - { - "questionText": "¿Cuál de los siguientes representaciones es un ejemplo de datos no estructurados?", - "answerOptions": [{ - "answerText": "Una lista de alumnos en clase", - "isCorrect": "false" - }, - { - "answerText": "Una colección de ensayos de estudiantes", - "isCorrect": "true" - }, - { - "answerText": "Un gráfico de amigos de usuarios en redes sociales", - "isCorrect": "false" - } - ] - }, - { - "questionText": "¿Cuál es el objetivo principal de la ciencia de datos?", - "answerOptions": [{ - "answerText": "recoger datos", - "isCorrect": "false" - }, - { - "answerText": "procesar los datos", - "isCorrect": "false" - }, - { - "answerText": "ser capaz de tomar decisiones basadas en datos", - "isCorrect": "true" - } - ] - } - ] - }, - { - "id": 2, - "title": "Ética - Cuestionario previo", - "quiz": [{ - "questionText": "¿Qué es la consideración de la ética en la Ciencia de los Datos?", - "answerOptions": [{ - "answerText": "Recogida de datos", - "isCorrect": "false" - }, - { - "answerText": "Diseño de algoritmos", - "isCorrect": "false" - }, - { - "answerText": "", - "isCorrect": "true" - } - ] - }, - { - "questionText": "¿Cuáles de los siguientes elementos forman parte de los desafíos éticos?", - "answerOptions": [{ - "answerText": "La transparencia", - "isCorrect": "false" - }, - { - "answerText": "La privacidad", - "isCorrect": "true" - }, - { - "answerText": "La seguridad y fiabilidad", - "isCorrect": "false" - } - ] - }, - { - "questionText": "La ética de los datos también incluye la IA y los algoritmos de aprendizaje automático", - "answerOptions": [{ - "answerText": "Verdadero", - "isCorrect": "true" - }, - { - "answerText": "Falso, están separados", - "isCorrect": "false" - } - ] - } - ] - }, - { - "id": 3, - "title": "Ética - Cuestionario final", - "quiz": [{ - "questionText": "¿Cuál es la principal diferencia entre la ética y la ética aplicada?", - "answerOptions": [{ - "answerText": "La ética aplicada es un tipo específico de ética", - "isCorrect": "false" - }, - { - "answerText": "La ética aplicada no es un término real", - "isCorrect": "false" - }, - { - "answerText": "La ética aplicada es el proceso de encontrar y corregir problemas éticos", - "isCorrect": "true" - } - ] - }, - { - "questionText": "¿Cuál es la diferencia entre reglamento de ética y principios de ética?", - "answerOptions": [{ - "answerText": "La normativa ética se centra en la ética habitual", - "isCorrect": "false" - }, - { - "answerText": "No hay ninguna diferencia", - "isCorrect": "false" - }, - { - "answerText": "Los principios éticos no están relacionados con una ley concreta, mientras que los reglamentos sí.", - "isCorrect": "true" - } - ] - }, - { - "questionText": "¿Cuáles son los principios y prácticas éticas reales que se pueden aplicar?", - "answerOptions": [{ - "answerText": "Sesgo de recogida", - "isCorrect": "false" - }, - { - "answerText": "Cumplimiento de la normativa ética", - "isCorrect": "false" - }, - { - "answerText": "Las dos respuestas anteriores", - "isCorrect": "true" - } - ] - } - ] - }, - { - "id": 4, - "title": "Definición de datos - Cuestionario previo", - "quiz": [{ - "questionText": "¿Cuáles de estos datos podrían ser cuantitativos?", - "answerOptions": [{ - "answerText": "Fotos de perros", - "isCorrect": "false" - }, - { - "answerText": "Reseñas de hoteles", - "isCorrect": "false" - }, - { - "answerText": "Notas o calificaciones de estudiantes", - "isCorrect": "true" - } - ] - }, - { - "questionText": "¿Cuáles de estos datos podrían ser datos cualitativos?", - "answerOptions": [{ - "answerText": "Lista de salarios de los empleados", - "isCorrect": "false" - }, - { - "answerText": "Reseñas de hoteles", - "isCorrect": "true" - }, - { - "answerText": "Notas o calificaciones de estudiantes", - "isCorrect": "false" - } - ] - }, - { - "questionText": "¿Cuál es el objetivo principal de la clasificación de datos?", - "answerOptions": [{ - "answerText": "El almacenamiento correcto de datos", - "isCorrect": "false" - }, - { - "answerText": "Dar un nombre propio a los datos", - "isCorrect": "false" - }, - { - "answerText": "Saber cuál es el mejor método para organizarlo para la legibilidad y el análisis", - "isCorrect": "true" - } - ] - } - ] - }, - { - "id": 5, - "title": "Definición de los datos - Cuestionario final", - "quiz": [{ - "questionText": "El profesor está revisando el número de respuestas correctas de los alumnos, ¿de qué tipo de datos se trata?", - "answerOptions": [{ - "answerText": "Datos cualitativos", - "isCorrect": "false" - }, - { - "answerText": "Datos cuantitativos", - "isCorrect": "true" - }, - { - "answerText": "Las dos respuestas anteriores", - "isCorrect": "false" - } - ] - }, - { - "questionText": "Una empresa está recogiendo encuestas de sus clientes para mejorar sus productos. ¿De qué tipo de fuente de datos se trata?", - "answerOptions": [{ - "answerText": "Primario", - "isCorrect": "true" - }, - { - "answerText": "Secundario", - "isCorrect": "false" - }, - { - "answerText": "Terciario", - "isCorrect": "false" - } - ] - }, - { - "questionText": "Un estudiante está recogiendo datos mediante consultas. ¿Qué fuente de datos podría ser?", - "answerOptions": [{ - "answerText": "Archivos locales", - "isCorrect": "false" - }, - { - "answerText": "API", - "isCorrect": "false" - }, - { - "answerText": "Base de datos", - "isCorrect": "true" - } - ] - } - ] - }, - { - "id": 6, - "title": "Estadística y Probabilidad - Cuestionario previo", - "quiz": [{ - "questionText": "¿Por qué la estadística y la probabilidad son importantes para la ciencia de los datos?", - "answerOptions": [{ - "answerText": "Porque no se puede operar con datos sin saber matemáticas", - "isCorrect": "false" - }, - { - "answerText": "Porque la ciencia de los datos es una ciencia y tiene una sólida base formal", - "isCorrect": "true" - }, - { - "answerText": "Porque queremos evitar que la gente sin formación se dedique a la ciencia de los datos", - "isCorrect": "false" - } - ] - }, - { - "questionText": "¿Puedes sacar cara 10 veces seguidas al lanzar una moneda?", - "answerOptions": [{ - "answerText": "Sí", - "isCorrect": "true" - }, - { - "answerText": "No", - "isCorrect": "false" - } - ] - }, - { - "questionText": "Al lanzar un dado, ¿cuál es la probabilidad de obtener un número par?", - "answerOptions": [{ - "answerText": "1/2", - "isCorrect": "true" - }, - { - "answerText": "1/3", - "isCorrect": "false" - }, - { - "answerText": "Es imposible de predecir", - "isCorrect": "false" - } - ] - } - ] - }, - { - "id": 7, - "title": "Estadística y Probabilidad - Cuestionario final", - "quiz": [{ - "questionText": "Queremos demostrar que los jugadores de baloncesto son más altos que la gente media. Hemos recogido las estaturas de 20 personas de ambos grupos. ¿Qué tenemos que hacer?", - "answerOptions": [{ - "answerText": "comparar la media", - "isCorrect": "false" - }, - { - "answerText": "Recoger más datos, ¡20 no es suficiente!", - "isCorrect": "false" - }, - { - "answerText": "utilizar la prueba t de Student", - "isCorrect": "true" - } - ] - }, - { - "questionText": "¿Cómo podemos demostrar que los ingresos de una persona dependen del nivel de educación?", - "answerOptions": [{ - "answerText": "calcular el coeficiente de correlación", - "isCorrect": "true" - }, - { - "answerText": "dividir en grupos con y sin estudios y calcular las medias", - "isCorrect": "false" - }, - { - "answerText": "utilizar la prueba t de Studen", - "isCorrect": "false" - } - ] - }, - { - "questionText": "Lanzamos los dados 100 veces y calculamos el valor medio. ¿Cuál sería la distribución del resultado?", - "answerOptions": [{ - "answerText": "uniforme", - "isCorrect": "false" - }, - { - "answerText": "normal", - "isCorrect": "true" - }, - { - "answerText": "ninguna de las respuestas anteriores", - "isCorrect": "false" - } - ] - } - ] - } - ] -}] diff --git a/quiz-app/src/assets/translations/es/index.js b/quiz-app/src/assets/translations/es/index.js deleted file mode 100644 index 5215a115..00000000 --- a/quiz-app/src/assets/translations/es/index.js +++ /dev/null @@ -1,17 +0,0 @@ -import es0 from './group-1.json'; -/*import es1 from './group-2.json'; -import es2 from './group-3.json'; -import es3 from './group-4.json'; -import es4 from './group-5.json'; -import es5 from './group-6.json';*/ - -const quiz = { - 0: es0[0], - /*1: es1[0], - 2: es2[0], - 3: es3[0], - 4: es4[0], - 5: es5[0],*/ -}; - -export default quiz; diff --git a/quiz-app/src/assets/translations/index.js b/quiz-app/src/assets/translations/index.js deleted file mode 100644 index 1f8762a6..00000000 --- a/quiz-app/src/assets/translations/index.js +++ /dev/null @@ -1,8 +0,0 @@ -import englishQuizzes from './en/'; -//import spanishQuizzes from './es/'; - -const messages = { - en: englishQuizzes, - //es: spanishQuizzes, -}; -export default messages; From e01fc8222abf29f294d3595ec02d3879ff33dc7c Mon Sep 17 00:00:00 2001 From: Jen Looper Date: Thu, 21 Apr 2022 09:47:28 -0400 Subject: [PATCH 2/2] renumbering quizzes --- 1-Intro/README.md | 4 ++-- 2-Symbolic/README.md | 4 ++-- 3-NeuralNetworks/03-Perceptron/README.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/1-Intro/README.md b/1-Intro/README.md index f1df4c98..d9e45645 100644 --- a/1-Intro/README.md +++ b/1-Intro/README.md @@ -4,7 +4,7 @@ > Sketchnote by [Tomomi Imura](https://twitter.com/girlie_mac) -## [Pre-lecture quiz](https://black-ground-0cc93280f.1.azurestaticapps.net/quiz/101) +## [Pre-lecture quiz](https://black-ground-0cc93280f.1.azurestaticapps.net/quiz/1) **Artificial Intelligence** is an exciting scientific discipline that studies how we can make computers exhibit intelligent behavior, e.g. do those things that human beings are good at doing. @@ -140,7 +140,7 @@ Over the past few years we have witnessed huge successes with large language mod Do a tour of the internet to determine where, in your opinion, AI is most effectively used. Is it in a Mapping app, or some speech-to-text service or a video game? Research how the system was built. -## [Post-lecture quiz](https://black-ground-0cc93280f.1.azurestaticapps.net/quiz/201) +## [Post-lecture quiz](https://black-ground-0cc93280f.1.azurestaticapps.net/quiz/2) ## Review & Self Study diff --git a/2-Symbolic/README.md b/2-Symbolic/README.md index 6706a50f..739ce359 100644 --- a/2-Symbolic/README.md +++ b/2-Symbolic/README.md @@ -6,7 +6,7 @@ The quest for artificial intelligence is based on a search for knowledge, to make sense of the world similar to how humans do. But how can you go about doing this? -## [Pre-lecture quiz](https://black-ground-0cc93280f.1.azurestaticapps.net/quiz/2) +## [Pre-lecture quiz](https://black-ground-0cc93280f.1.azurestaticapps.net/quiz/3) In the early days of AI, the top-down approach to creating intelligent systems (discussed in the previous lesson) was popular. The idea was to extract the knowledge from people into some machine-readable form, and then use it to automatically solve problems. This approach was based on two big ideas: @@ -220,7 +220,7 @@ Nowadays, AI is often considered to be a synonym for *Machine Learning* or *Neur In the three notebooks associated to this lesson, there are challenges at the end - pick one, and try to solve it! -## [Post-lecture quiz](https://black-ground-0cc93280f.1.azurestaticapps.net/quiz/3) +## [Post-lecture quiz](https://black-ground-0cc93280f.1.azurestaticapps.net/quiz/4) ## Review & Self Study diff --git a/3-NeuralNetworks/03-Perceptron/README.md b/3-NeuralNetworks/03-Perceptron/README.md index df2d7e01..72551d0e 100644 --- a/3-NeuralNetworks/03-Perceptron/README.md +++ b/3-NeuralNetworks/03-Perceptron/README.md @@ -1,6 +1,6 @@ # Introduction to Neural Networks: Perceptron -## [Pre-lecture quiz](https://black-ground-0cc93280f.1.azurestaticapps.net/quiz/4) +## [Pre-lecture quiz](https://black-ground-0cc93280f.1.azurestaticapps.net/quiz/5) One of the first attempts to implement something similar to a modern neural network was done by Frank Rosenblatt from Cornell Aeronautical Laboratory in 1957. It was a hardware implementation called "Mark-1", designed to recognize primitive geometric figures, such as triangles, squares and circles. @@ -77,7 +77,7 @@ In this lesson, you learned about a perceptron, which is a binary classification If you'd like to try to build your own perceptron, try [this lab on Microsoft Learn](https://docs.microsoft.com/en-us/azure/machine-learning/component-reference/two-class-averaged-perceptron?WT.mc_id=academic-57639-dmitryso) which uses the [Azure ML designer](https://docs.microsoft.com/en-us/azure/machine-learning/concept-designer?WT.mc_id=academic-57639-dmitryso). -## [Post-lecture quiz](https://black-ground-0cc93280f.1.azurestaticapps.net/quiz/5) +## [Post-lecture quiz](https://black-ground-0cc93280f.1.azurestaticapps.net/quiz/6) ## Review & Self Study