From a9c76d6166098353f856a5df08121b1a435fe4d6 Mon Sep 17 00:00:00 2001 From: swap-10 <72344713+swap-10@users.noreply.github.com> Date: Tue, 31 Aug 2021 09:43:07 +0530 Subject: [PATCH] Minor fix: Lab1 2.3 Range of indices Range of indices for vocab (unique characters) should be '0 to len(unique) - 1' instead of '0 to len(unique)' --- lab1/Part2_Music_Generation.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lab1/Part2_Music_Generation.ipynb b/lab1/Part2_Music_Generation.ipynb index b830fee2..3bf3c948 100644 --- a/lab1/Part2_Music_Generation.ipynb +++ b/lab1/Part2_Music_Generation.ipynb @@ -236,7 +236,7 @@ "id": "tZfqhkYCymwX" }, "source": [ - "This gives us an integer representation for each character. Observe that the unique characters (i.e., our vocabulary) in the text are mapped as indices from 0 to `len(unique)`. Let's take a peek at this numerical representation of our dataset:" + "This gives us an integer representation for each character. Observe that the unique characters (i.e., our vocabulary) in the text are mapped as indices from 0 to `len(unique) - 1`. Let's take a peek at this numerical representation of our dataset:" ] }, { @@ -947,4 +947,4 @@ ] } ] -} \ No newline at end of file +}