diff --git a/el-GR/images/banner.png b/el-GR/images/banner.png new file mode 100644 index 0000000..10aa4ad Binary files /dev/null and b/el-GR/images/banner.png differ diff --git a/el-GR/images/classroom-devices.png b/el-GR/images/classroom-devices.png new file mode 100644 index 0000000..a25ed48 Binary files /dev/null and b/el-GR/images/classroom-devices.png differ diff --git a/el-GR/images/code-with-confidence.png b/el-GR/images/code-with-confidence.png new file mode 100644 index 0000000..08fb60b Binary files /dev/null and b/el-GR/images/code-with-confidence.png differ diff --git a/el-GR/images/create-project.png b/el-GR/images/create-project.png new file mode 100644 index 0000000..7ce2672 Binary files /dev/null and b/el-GR/images/create-project.png differ diff --git a/el-GR/images/fan-on-and-off.png b/el-GR/images/fan-on-and-off.png new file mode 100644 index 0000000..76beb24 Binary files /dev/null and b/el-GR/images/fan-on-and-off.png differ diff --git a/el-GR/images/new-blocks-menu.png b/el-GR/images/new-blocks-menu.png new file mode 100644 index 0000000..b1d716a Binary files /dev/null and b/el-GR/images/new-blocks-menu.png differ diff --git a/el-GR/images/play-music.png b/el-GR/images/play-music.png new file mode 100644 index 0000000..852902d Binary files /dev/null and b/el-GR/images/play-music.png differ diff --git a/el-GR/images/project-train.png b/el-GR/images/project-train.png new file mode 100644 index 0000000..3a3bdb9 Binary files /dev/null and b/el-GR/images/project-train.png differ diff --git a/el-GR/images/projects-list.png b/el-GR/images/projects-list.png new file mode 100644 index 0000000..1721755 Binary files /dev/null and b/el-GR/images/projects-list.png differ diff --git a/el-GR/images/save-to-computer.png b/el-GR/images/save-to-computer.png new file mode 100644 index 0000000..3d67093 Binary files /dev/null and b/el-GR/images/save-to-computer.png differ diff --git a/el-GR/images/smart-classroom.png b/el-GR/images/smart-classroom.png new file mode 100644 index 0000000..e166aaa Binary files /dev/null and b/el-GR/images/smart-classroom.png differ diff --git a/el-GR/images/test-model.png b/el-GR/images/test-model.png new file mode 100644 index 0000000..7dad5b5 Binary files /dev/null and b/el-GR/images/test-model.png differ diff --git a/el-GR/images/turn-fan-off.png b/el-GR/images/turn-fan-off.png new file mode 100644 index 0000000..00280bb Binary files /dev/null and b/el-GR/images/turn-fan-off.png differ diff --git a/el-GR/images/turn-fan-on.png b/el-GR/images/turn-fan-on.png new file mode 100644 index 0000000..86d49d4 Binary files /dev/null and b/el-GR/images/turn-fan-on.png differ diff --git a/el-GR/images/whatyouwillmake.gif b/el-GR/images/whatyouwillmake.gif new file mode 100644 index 0000000..eab8141 Binary files /dev/null and b/el-GR/images/whatyouwillmake.gif differ diff --git a/el-GR/meta.yml b/el-GR/meta.yml new file mode 100644 index 0000000..a1530c6 --- /dev/null +++ b/el-GR/meta.yml @@ -0,0 +1,21 @@ +--- +title: Smart assistant +hero_image: images/banner.png +description: Create a virtual assistant that reacts to commands +version: 4 +listed: true +copyedit: true +last_tested: '2019-05-09' +steps: +- title: Τι θα φτιάξεις +- title: Ρύθμιση του έργου +- title: Example commands + completion: + - engaged +- title: Εκπαίδευσε το μοντέλο +- title: Create the assistant +- title: 'Πρόκληση: περισσότερες αποφάσεις' + challenge: true +- title: Confidence scores + completion: + - external diff --git a/el-GR/resources/NEW smart assistant 1.srt b/el-GR/resources/NEW smart assistant 1.srt new file mode 100644 index 0000000..49145b3 --- /dev/null +++ b/el-GR/resources/NEW smart assistant 1.srt @@ -0,0 +1,26 @@ +1 +00:00:04,040 --> 00:00:09,880 +Go to rpf.io/ml4k and get started. + +2 +00:00:09,880 --> 00:00:12,640 +Click 'Try it now'. + +3 +00:00:12,640 --> 00:00:16,960 +Add a new project called 'Smart assistant'. + +4 +00:00:16,960 --> 00:00:23,240 +Set it to recognise English text, and +store the data in your web browser. + +5 +00:00:23,240 --> 00:00:29,000 +Create the project, then +click on the project's name. + +6 +00:00:29,000 --> 00:00:29,960 +Now, click 'Train'. + diff --git a/el-GR/resources/NEW smart assistant 2.srt b/el-GR/resources/NEW smart assistant 2.srt new file mode 100644 index 0000000..aec96dd --- /dev/null +++ b/el-GR/resources/NEW smart assistant 2.srt @@ -0,0 +1,27 @@ +1 +00:00:04,320 --> 00:00:06,080 +Add two new labels + +2 +00:00:06,080 --> 00:00:08,400 +one for fan on, + +3 +00:00:08,400 --> 00:00:12,760 +and one for fan off. + +4 +00:00:12,760 --> 00:00:18,200 +Type an example of a command +that should turn the fan on. + +5 +00:00:18,200 --> 00:00:23,240 +Then repeat until you have +eight different examples. + +6 +00:00:23,240 --> 00:00:29,960 +Now you need eight different examples +of commands to turn the fan off too. + diff --git a/el-GR/resources/NEW smart assistant 3.srt b/el-GR/resources/NEW smart assistant 3.srt new file mode 100644 index 0000000..9870fbf --- /dev/null +++ b/el-GR/resources/NEW smart assistant 3.srt @@ -0,0 +1,19 @@ +1 +00:00:03,600 --> 00:00:10,200 +Click 'Back', then click 'Learn & Test'. + +2 +00:00:10,200 --> 00:00:14,720 +Click the button to start training +your model - it might take a while. + +3 +00:00:14,720 --> 00:00:18,120 +When it is done, type in a +command to test the model. + +4 +00:00:18,120 --> 00:00:29,960 +Check that your command gives +the result you were expecting. + diff --git a/el-GR/resources/NEW smart assistant 4.srt b/el-GR/resources/NEW smart assistant 4.srt new file mode 100644 index 0000000..a68f19a --- /dev/null +++ b/el-GR/resources/NEW smart assistant 4.srt @@ -0,0 +1,28 @@ +1 +00:00:03,800 --> 00:00:12,600 +Now click 'Back' again, then click +'Make' to use the model in Scratch. + +2 +00:00:12,600 --> 00:00:20,160 +Go to 'Project templates' and select +the 'Smart Classroom' template. + +3 +00:00:20,160 --> 00:00:29,960 +Now, drag the code blocks to ask for +a command and turn the fan on or off. + +4 +00:00:38,160 --> 00:00:48,800 +You can right click and select +'Duplicate' to save time. + +5 +00:00:48,800 --> 00:00:54,240 +Now type in a command to control the fan. + +6 +00:00:54,240 --> 00:00:59,920 +Type another command to turn it off. + diff --git a/el-GR/resources/NEW smart assistant 5.srt b/el-GR/resources/NEW smart assistant 5.srt new file mode 100644 index 0000000..f1c1642 --- /dev/null +++ b/el-GR/resources/NEW smart assistant 5.srt @@ -0,0 +1,33 @@ +1 +00:00:04,120 --> 00:00:07,480 +Go back to the 'Learn & Test' page. + +2 +00:00:07,480 --> 00:00:11,440 +Type something that is not +related to lamps or fans. + +3 +00:00:11,440 --> 00:00:15,240 +The model should show a low +confidence about its prediction. + +4 +00:00:15,240 --> 00:00:19,520 +Go back to Scratch, and move all of +your 'if' statements to one side. + +5 +00:00:19,520 --> 00:00:26,880 +Add an 'if/else' so that your code can +check the model's confidence level. + +6 +00:00:26,880 --> 00:00:36,640 +The light or fan should only be changed +if the confidence level is over 70. + +7 +00:00:36,640 --> 00:00:46,640 +Try it out! + diff --git a/el-GR/resources/readme.txt b/el-GR/resources/readme.txt new file mode 100644 index 0000000..3289b81 --- /dev/null +++ b/el-GR/resources/readme.txt @@ -0,0 +1 @@ +Για να παρακολουθήσεις ένα βίντεο με υπότιτλους στο VLC (videolan.org), βεβαιώσου ότι το αρχείο βίντεο και το αρχείο υποτίτλων βρίσκονται στον ίδιο φάκελο και έχουν το ίδιο ακριβώς όνομα (π.χ. video.mp4 και video.srt). Άνοιξε το βίντεο σε VLC και θα φορτώσει αυτόματα τους υπότιτλους. Εάν οι υπότιτλοι δεν εμφανίζονται, κάνε δεξί κλικ στην οθόνη του βίντεο, πήγαινε στο **Υπότιτλοι**, μετά στο **Προσθήκη αρχείου υποτίτλων** και επίλεξε το σωστό αρχείο .srt. Απόλαυσε την παρακολούθηση με υπότιτλους! \ No newline at end of file diff --git a/el-GR/step_1.md b/el-GR/step_1.md new file mode 100644 index 0000000..c2de57f --- /dev/null +++ b/el-GR/step_1.md @@ -0,0 +1,33 @@ +## Τι θα φτιάξεις + +Create a smart virtual assistant that reacts to your commands. + + + +\--- collapse --- + +--- + +## title: Where are my commands stored? + +- Αυτό το έργο χρησιμοποιεί μια τεχνολογία που ονομάζεται «μηχανική μάθηση». Machine learning systems are trained using a large amount of data. +- Αυτό το έργο δεν απαιτεί να δημιουργήσεις λογαριασμό ή να συνδεθείς. For this project, the examples you use to make the model are only stored temporarily in your browser (only on your machine). + \--- /collapse --- + +## --- collapse --- + +## title: Δεν υπάρχει πρόβαση στο YouTube; Κάνε λήψη των βίντεο! + +Μπορείς να [κατεβάσεις όλα τα βίντεο γι' αυτό το έργο](https://rpf.io/p/en/smart-assistant-go){:target="_blank"}. + +\--- /collapse --- + +## --- collapse --- + +## title: Πρόσθετες πληροφορίες για εκπαιδευτικούς + +This project is dual-licensed under both a [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} and an [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. + +Θα θέλαμε να ευχαριστήσουμε τον Dale από το machinelearningforkids.co.uk για όλη τη δουλειά του σε αυτό το έργο. + +\--- /collapse --- \ No newline at end of file diff --git a/el-GR/step_2.md b/el-GR/step_2.md new file mode 100644 index 0000000..e2dc9b7 --- /dev/null +++ b/el-GR/step_2.md @@ -0,0 +1,38 @@ +## Ρύθμιση του έργου + + +
+ + +\--- task --- + +- Go to [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk/){:target="_blank"} in a web browser. + +- Click on **Get started**. + +- Click on **Try it now**. + +\--- /task --- + +\--- task --- + +- Click on **Projects** in the menu bar at the top. + +- Click on the **+ Add a new project** button. + +- Name your project `Smart assistant` and set it to learn to recognise **text**, and store data **in your web browser**. Then click on **Create**. +  + +- You should now see 'Smart assistant' in the projects list. Click on the project. +  + +\--- /task --- + +\--- task --- + +- Click on the **Train** button. +  + +\--- /task --- diff --git a/el-GR/step_3.md b/el-GR/step_3.md new file mode 100644 index 0000000..f0e0183 --- /dev/null +++ b/el-GR/step_3.md @@ -0,0 +1,45 @@ +## Example commands + + + + + +The room has two devices: a fan and a light. + + + +Your assistant needs some examples of the phrases you might say when you want each device to be turned on or off. For example, to **turn the fan on**, you might say: + +- "Turn on the fan" +- "Start the fan" +- "Please could you switch on the fan" +- "I'm too hot" +- "It's hot in here" + +\--- task --- + +- Click on **+ Add new label** on the top right and add the label “fan on”. + +\--- /task --- + +\--- task --- + +- Click on **Add example** and type in `Turn on the fan`. + +\--- /task --- + +\--- task --- + +- Continue to click on the **Add example** button and add different ways of asking for the fan to be turned on until you have eight different ways of asking. + +\--- /task --- + +\--- task --- + +- Click on **Add new label**, but this time create the label "fan off". Add eight different examples of ways you could ask for the fan to be turned off. + +\--- /task --- + + diff --git a/el-GR/step_4.md b/el-GR/step_4.md new file mode 100644 index 0000000..fd12a3a --- /dev/null +++ b/el-GR/step_4.md @@ -0,0 +1,40 @@ +## Εκπαίδευσε το μοντέλο + + + + + +Now that you have some example data, you can train the machine learning model to label a command as either 'fan on' or 'fan off' based on your examples. + +\--- task --- + +- Click on the **< Back to project** link, then click on **Learn & Test**. + +\--- /task --- + +\--- task --- + +- Click on the **Train new machine learning model** button. + +\--- /task --- + +Wait for the training to complete — this might take a minute or two. Once the training has completed, a test box appears. + +\--- task --- + +- Type in `put the fan on` and check that the model labels this input as 'fan on'. +  + +\--- /task --- + +\--- task --- + +- Try typing in some other commands for turning the fan on and off, and check that they are given the label you expect. + +\--- /task --- + +If you’re not happy with how the computer recognises the commands, go back to the previous step and add some more examples. Then **train new machine learning model** again. + + diff --git a/el-GR/step_5.md b/el-GR/step_5.md new file mode 100644 index 0000000..35d90e3 --- /dev/null +++ b/el-GR/step_5.md @@ -0,0 +1,59 @@ +## Create the assistant + + + + + +Now that your model can distinguish between commands, you can use it in a Scratch program to create your smart assistant. + +\--- task --- + +- Click on the **< Back to project** link. + +- Click on **Make**. + +- Click on **Scratch 3**. + +- Click on **Open in Scratch 3**. + +\--- /task --- + +\--- task --- + +- Click on **Project templates** at the top and select the 'Smart classroom' project to load the fan and light sprites. This project also contains pre-made yellow `broadcast` blocks, which can be found under **Events**. + + + +\--- /task --- + +Machine Learning for Kids has added some special blocks to Scratch to allow you to use the model you just trained. Find them at the bottom of the blocks list. + + + +\--- task --- + +- Make sure you have the **Classroom** sprite selected, then click on the **Code** tab and add this code: + + + +\--- /task --- + +\--- task --- + +- Right click on the `if` block and select **Duplicate** to add a copy of the whole block of code, and put it directly underneath the first `if`. + +- Change the second copy of the block so that it recognises the text for turning the fan **off**, and broadcasts **turn-fan-off**. + + + +\--- /task --- + +\--- task --- + +- Click the **green flag** and type in a command to turn the fan on or off. Check that it has the result you expected. + +- Make sure you test that the assistant performs the correct action **even for commands that you didn’t include as examples**. + +\--- /task --- diff --git a/el-GR/step_6.md b/el-GR/step_6.md new file mode 100644 index 0000000..a003f44 --- /dev/null +++ b/el-GR/step_6.md @@ -0,0 +1,65 @@ +## Πρόκληση: περισσότερες αποφάσεις + +\--- challenge --- + +Follow the same steps as before to allow the assistant to also control the light. + +\--- task --- + +- Save a copy of your Scratch project to your computer so that you can easily reload it later to use with your new model. + + + +\--- /task --- + +\--- task --- + +- Go back to your model (**Back to project** > **Train**) and add two more labels: `light_on` and `light_off`. + +\--- /task --- + +\--- task --- + +- Add eight examples of commands you might use to turn the light on. + +\--- /task --- + +\--- task --- + +- Add eight examples of commands you might use to turn the light off. + +\--- /task --- + +\--- task --- + +- Re-train your model (**Back to project** > **Learn and Test**) so that it can also recognise commands for turning the light on and off. + +\--- /task --- + +\--- task --- + +- Load your new model into Scratch (**Make** > **Scratch 3** > **Open in Scratch 3**). + +- In Scratch, reload the code you saved earlier (**File** > **Load from my computer**). + +- Add two more `if` blocks to your program so that you can type commands to control the light. + +## --- collapse --- + +## title: I can't see the blocks for light_on / light_off + +If you have trained a new model, you will need to close Scratch and then re-open it from the Machine Learning for Kids website for any new blocks to appear. + +Click **Make** > **Scratch 3** > **Open in Scratch 3**. + +\--- /collapse --- + +\--- /task --- + +\--- task --- + +- Test whether your program works by typing in commands to turn the light on and off, and checking whether the outcome is as you expected. + +\--- /task --- + +\--- /challenge --- diff --git a/el-GR/step_7.md b/el-GR/step_7.md new file mode 100644 index 0000000..2fbec40 --- /dev/null +++ b/el-GR/step_7.md @@ -0,0 +1,39 @@ +## Confidence scores + + + + + +The model can tell you how **confident** it is about whether it is correct. + +\--- task --- + +- Go back to the **Learn & Test** page in the training tool. + +- Type something that has nothing to do with lamps or fans into the test box. For example, you could type in 'play some music'. + + + +\--- /task --- + +The **confidence score** is the program’s way of telling you how likely it is that it has labelled the command correctly. + +\--- task --- + +- Return to Scratch. + +- Add some new code so that the assistant will tell you it didn't understand the command if the confidence score is less than 70%. + + + +\--- /task --- + +\--- task --- + +- Click the **green flag** and test your program to check that your assistant reacts in the right way: + - Type in commands that have nothing to do with the fan or lamp + - Ask for something to be turned on or off + +\--- /task --- diff --git a/el-GR/step_8.md b/el-GR/step_8.md new file mode 100644 index 0000000..4cbbc7c --- /dev/null +++ b/el-GR/step_8.md @@ -0,0 +1,3 @@ +## Τι μπορείς να κάνεις τώρα; + +There are lots of other machine learning and AI projects in the [Machine learning with Scratch](https://projects.raspberrypi.org/en/pathways/scratch-machine-learning) pathway. diff --git a/fr-FR/meta.yml b/fr-FR/meta.yml index 6858b36..f97029b 100644 --- a/fr-FR/meta.yml +++ b/fr-FR/meta.yml @@ -18,6 +18,4 @@ steps: challenge: true - title: Score de confiance completion: - - internal - completion: - - external \ No newline at end of file + - external diff --git a/fr-FR/resources/NEW smart assistant 1.srt b/fr-FR/resources/NEW smart assistant 1.srt index ae0300b..f55709a 100644 --- a/fr-FR/resources/NEW smart assistant 1.srt +++ b/fr-FR/resources/NEW smart assistant 1.srt @@ -1,6 +1,6 @@ 1 00:00:04,040 --> 00:00:09,880 -Va sur rpf.io/ML4K et démarre. +Va sur rpf.io/ml4k et démarre. 2 00:00:09,880 --> 00:00:12,640 diff --git a/fr-FR/step_1.md b/fr-FR/step_1.md index a709b75..dc6ef74 100644 --- a/fr-FR/step_1.md +++ b/fr-FR/step_1.md @@ -4,31 +4,30 @@ Crée un assistant virtuel intelligent qui réagit aux commandes.  ---- collapse --- +\--- collapse --- --- -title: Où sont stockées mes commandes ? ---- + +## title: Où sont stockées mes commandes ? - Ce projet utilise une technologie appelée « apprentissage automatique ». Les systèmes d'apprentissage automatique sont entraînés à l'aide d'une grande quantité de données. - Ce projet ne nécessite pas la création d'un compte ou d'une connexion. Pour ce projet, les exemples que tu utilises pour réaliser le modèle ne sont stockés que temporairement dans ton navigateur (uniquement sur ta machine). ---- /collapse --- ---- collapse --- ---- -title: Pas de YouTube ? Télécharge les vidéos ! ---- + \--- /collapse --- -Tu peux [télécharger l'ensemble des vidéos de ce projet](https://rpf.io/p/fr-FR/smart-assistant-go){:target="_blank"}. +## --- collapse --- ---- /collapse --- +## title: Pas de YouTube ? Télécharge les vidéos ! ---- collapse --- ---- -title: Licence ---- +Tu peux [télécharger l'ensemble des vidéos de ce projet](https://rpf.io/p/en/smart-assistant-go){:target="_blank"}. + +\--- /collapse --- + +## --- collapse --- + +## title: Licence Ce projet fait l'objet d'une double licence, à la fois sous une licence [Creative Commons Attribution Non-Commercial Share-Alike License](http://creativecommons.org/licenses/by-nc-sa/4.0/){:target="_blank"} et une licence [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0){:target="_blank"}. Nous aimerions remercier Dale de machinelearningforkids.co.uk pour tout son travail sur ce projet. ---- /collapse --- \ No newline at end of file +\--- /collapse --- \ No newline at end of file diff --git a/fr-FR/step_2.md b/fr-FR/step_2.md index 0a5c952..30064fc 100644 --- a/fr-FR/step_2.md +++ b/fr-FR/step_2.md @@ -6,7 +6,7 @@