From e6568e5e176ee3666c5c21953fb2ec972b824c29 Mon Sep 17 00:00:00 2001 From: maximvassiliev Date: Fri, 13 Dec 2024 20:37:31 +0000 Subject: [PATCH] better AI and slides --- src/artifact-component.tsx | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/src/artifact-component.tsx b/src/artifact-component.tsx index e91ed74..533c92b 100644 --- a/src/artifact-component.tsx +++ b/src/artifact-component.tsx @@ -314,7 +314,7 @@ const WebcamViewer = () => { }>, //SLIDE 17 (camera) -, +, //SLIDE 18 @@ -382,7 +382,7 @@ const WebcamViewer = () => { }>, //SLIDE 25 (camera) -, +, //SLIDE 26 @@ -399,7 +399,14 @@ const WebcamViewer = () => {

Congratulations! you have completed the lesson and you now understand how bias can trick AI, and why good data is needed for AI.

We now have some challenges for you. Teach our alien friends what a 'bear' is and what a 'bird' is using the remaining cards.

-

Once you think you have given enough good data, press 'next' to see how well the AI understands what bears and birds are. See if you can get 100% accuracy!

+
+ }>
, + //SLIDE 27 + +

Once you think you have given enough good data, press 'next' to see how well the AI understands what bears and birds are

+

Accuracy is a score between 0% and 100% that we will use to see how well you trained your AI.

+

See if you can get 100% accuracy!

}>
, //SLIDE 28 @@ -409,12 +416,20 @@ const WebcamViewer = () => { }>, //SLIDE 29 -, +, //SLIDE 30 +

Accuracy: {accuracy.current}%

-

Wow!!! Well done!

+

{ + accuracy.current <= 33 ? + "Try to get a higher score by training with more cards, and not using wrong data!" : + accuracy.current <= 66 ? + "Nice try! Try again later training with more and better data." : + accuracy.current <= 99 ? + "Great score! I wonder if you can get 100 next time..." : + "Wow! A perfect score - great job!" + }

}>
, //SLIDE 31 @@ -424,7 +439,7 @@ const WebcamViewer = () => { }>, //SLIDE 32 (camera) -, +, //SLIDE 33