You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In emnist_lines_dataset.py, we have samples_by_char defaultdict(list) used for
select_letter_samples_for_string() method, inside of which
samples = samples_by_char[char] is returning [ ] since
samples_by_char[char] is actually, samples_by_char[ , 'char'] if am correct. Am stuck with accessing defaultdict(list) with only one of the tuple, i.e char,
Any help?
Many thanks,
Varsha
The text was updated successfully, but these errors were encountered:
I found my mistake. It took me quite a while though.
I had written tuple(mapping[label]) instead of samples_by_char[mapping[label][1]]
which was the reason my default dict was not accessible.
Hi ,
In emnist_lines_dataset.py, we have samples_by_char defaultdict(list) used for
select_letter_samples_for_string() method, inside of which
samples = samples_by_char[char] is returning [ ] since
samples_by_char[char] is actually, samples_by_char[ , 'char'] if am correct. Am stuck with accessing defaultdict(list) with only one of the tuple, i.e char,
Any help?
Many thanks,
Varsha
The text was updated successfully, but these errors were encountered: