吴恩达这节课的介绍如下
Welcome to Dinosaurus Island! 65 million years ago, dinosaurs existed, and in this assignment they are back. You are in charge of a special task. Leading biology researchers are creating new breeds of dinosaurs and bringing them to life on earth, and your job is to give names to these dinosaurs. If a dinosaur does not like its name, it might go beserk, so choose wisely!
简单来说,就是根据提供的恐龙名称,为恐龙构建出新的名称。
之所以想记录的原因,在于这个模型与我们以往构建特征集X和目标集Y不太一致,而是通过分析构建了字母与数字索引的映射关系。
char_to_ix = {
ch:i for i,ch in enumerate(sorted(chars)) }
ix_to_char = {
i:ch for i,ch in enumerate(sorted(chars)) }
print(char_to_ix)
#{