Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added el-GR/images/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added el-GR/images/classroom-devices.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added el-GR/images/code-with-confidence.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added el-GR/images/create-project.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added el-GR/images/fan-on-and-off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added el-GR/images/new-blocks-menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added el-GR/images/play-music.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added el-GR/images/project-train.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added el-GR/images/projects-list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added el-GR/images/save-to-computer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added el-GR/images/smart-classroom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added el-GR/images/test-model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added el-GR/images/turn-fan-off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added el-GR/images/turn-fan-on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added el-GR/images/whatyouwillmake.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions el-GR/meta.yml
Original file line number Diff line number Diff line change
@@ -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
26 changes: 26 additions & 0 deletions el-GR/resources/NEW smart assistant 1.srt
Original file line number Diff line number Diff line change
@@ -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'.

27 changes: 27 additions & 0 deletions el-GR/resources/NEW smart assistant 2.srt
Original file line number Diff line number Diff line change
@@ -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.

19 changes: 19 additions & 0 deletions el-GR/resources/NEW smart assistant 3.srt
Original file line number Diff line number Diff line change
@@ -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.

28 changes: 28 additions & 0 deletions el-GR/resources/NEW smart assistant 4.srt
Original file line number Diff line number Diff line change
@@ -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.

33 changes: 33 additions & 0 deletions el-GR/resources/NEW smart assistant 5.srt
Original file line number Diff line number Diff line change
@@ -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!

1 change: 1 addition & 0 deletions el-GR/resources/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Για να παρακολουθήσεις ένα βίντεο με υπότιτλους στο VLC (videolan.org), βεβαιώσου ότι το αρχείο βίντεο και το αρχείο υποτίτλων βρίσκονται στον ίδιο φάκελο και έχουν το ίδιο ακριβώς όνομα (π.χ. video.mp4 και video.srt). Άνοιξε το βίντεο σε VLC και θα φορτώσει αυτόματα τους υπότιτλους. Εάν οι υπότιτλοι δεν εμφανίζονται, κάνε δεξί κλικ στην οθόνη του βίντεο, πήγαινε στο **Υπότιτλοι**, μετά στο **Προσθήκη αρχείου υποτίτλων** και επίλεξε το σωστό αρχείο .srt. Απόλαυσε την παρακολούθηση με υπότιτλους!
33 changes: 33 additions & 0 deletions el-GR/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
## Τι θα φτιάξεις

Create a smart virtual assistant that reacts to your commands.

![A Scratch project with a fan and a light and a box to type in](images/whatyouwillmake.gif)

\--- 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 ---
38 changes: 38 additions & 0 deletions el-GR/step_2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
## Ρύθμιση του έργου

<html>
<div style="position: relative; overflow: hidden; padding-top: 56.25%;">
<iframe style="position: absolute; top: 0; left: 0; right: 0; width: 100%; height: 100%; border: none;" src="https://www.youtube.com/embed/aTKd6sH3PhM?rel=0&cc_load_policy=1" allowfullscreen allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"></iframe>
</div>
</html>

\--- 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**.
![Creating a project](images/create-project.png)

- You should now see 'Smart assistant' in the projects list. Click on the project.
![Project list with smart assistant listed](images/projects-list.png)

\--- /task ---

\--- task ---

- Click on the **Train** button.
![Project main menu with arrow pointing to Train button](images/project-train.png)

\--- /task ---
45 changes: 45 additions & 0 deletions el-GR/step_3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
## Example commands

<html>
<div style="position: relative; overflow: hidden; padding-top: 56.25%;">
<iframe style="position: absolute; top: 0; left: 0; right: 0; width: 100%; height: 100%; border: none;" src="https://www.youtube.com/embed/aekrXl_-Q_o?rel=0&cc_load_policy=1" allowfullscreen allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"></iframe>
</div>
</html>

The room has two devices: a fan and a light.

![A fan and a light](images/classroom-devices.png)

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 ---

![Fan on and off categories with eight examples of commands in each](images/fan-on-and-off.png)
40 changes: 40 additions & 0 deletions el-GR/step_4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
## Εκπαίδευσε το μοντέλο

<html>
<div style="position: relative; overflow: hidden; padding-top: 56.25%;">
<iframe style="position: absolute; top: 0; left: 0; right: 0; width: 100%; height: 100%; border: none;" src="https://www.youtube.com/embed/62B6yHRVmmg?rel=0&cc_load_policy=1" allowfullscreen allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"></iframe>
</div>
</html>

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'.
![Type in put the fan on to see if it is recognised](images/test-model.png)

\--- /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.


59 changes: 59 additions & 0 deletions el-GR/step_5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
## Create the assistant

<html>
<div style="position: relative; overflow: hidden; padding-top: 56.25%;">
<iframe style="position: absolute; top: 0; left: 0; right: 0; width: 100%; height: 100%; border: none;" src="https://www.youtube.com/embed/R3e8nX4vKXo?rel=0&cc_load_policy=1" allowfullscreen allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"></iframe>
</div>
</html>

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**.

![Smart classroom project is selected in the Scratch templates](images/smart-classroom.png)

\--- /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.

![New 'smart assistant' blocks shown in the menu underneath Images](images/new-blocks-menu.png)

\--- task ---

- Make sure you have the **Classroom** sprite selected, then click on the **Code** tab and add this code:

![New scratch code: when flag clicked, forever, ask 'enter your command' and wait. If recognise text (answer) label = fan on, then broadcast turn-fan-on ](images/turn-fan-on.png)

\--- /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**.

![New scratch code: If recognise text (answer) label = fan off, then broadcast turn-fan-off](images/turn-fan-off.png)

\--- /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 ---
Loading