From f5e74ce86cb724ee374d2175a1c4d82f3eae2e28 Mon Sep 17 00:00:00 2001 From: Francois Beaufort Date: Fri, 7 Dec 2018 15:01:11 +0000 Subject: [PATCH] Update blog --- blog/index.html | 26 +++++++++++++++++++++----- blog/sample.html | 12 ++++++++++++ 2 files changed, 33 insertions(+), 5 deletions(-) diff --git a/blog/index.html b/blog/index.html index 549d6ea..bd0138a 100644 --- a/blog/index.html +++ b/blog/index.html @@ -1,9 +1,25 @@ -
Francois Beaufort wrote
+
-

Machine Learning Explained in Three Easy Steps

+

<canvas> and <video>

@@ -55,6 +71,7 @@

Machine Learning Explained in Three Easy Steps

canvas.hidden = false; }, 200); const response = await fetch(url); +/* const textDecoder = new TextDecoder(); for await (const chunk of streamAsyncIterator(response.body)) { await setTimeoutAsync(500); @@ -66,7 +83,7 @@

Machine Learning Explained in Three Easy Steps

} article.innerHTML += textDecoder.decode(chunk, { stream : true }); } -/* +*/ const text = await response.text(); clearInterval(id); article.animate([ @@ -79,7 +96,6 @@

Machine Learning Explained in Three Easy Steps

article.innerHTML = text; canvas.hidden = true; highlightCode(); -*/ } async function* streamAsyncIterator(stream) { diff --git a/blog/sample.html b/blog/sample.html index 1c9fde3..1d8376d 100644 --- a/blog/sample.html +++ b/blog/sample.html @@ -3,6 +3,7 @@ You’ve probably heard the term “machine learning” and how it’s changing everything . In this article, I’m going to explain the fundamental concept behind machine learning.

+

There will be no math or programming. There will be no scary diagrams. You won’t need a background in computer science or engineering. All you need is the ability to read and think, which you obviously already have if you’ve made it this far. Well done on that reading and thinking! Onward…

Foxes and Dogs

There’s a nice sequence of words which is famous for containing every letter in the english language in one short sentence. Have you seen it?

@@ -26,6 +27,17 @@

Foxes and Dogs

  • Purpose or qualifier
  • Since quick is a quality/opinion and brown is a color, “quick brown” is the proper order, not “brown quick”. To give an extreme example, this is fine: “one really big old antique American car” but perturb that sequence of adjectives in any way you like and the results sound very wrong.

    +
    +  
    +
    +// Stream canvas to a video.
    +video.srcObject = canvas.captureStream();
    +// Play automatically.
    +video.muted = true;
    +video.play();
    +
    +  
    +

    The amazing thing about this sequence is that nearly every native english speaker knows it, but very few people know they know it . In my audience of 200 professional CS and IT people, not a single person could tell me this sequence.