吴恩达深度学习Dinosaurus+Island作业的思考

吴恩达这节课的介绍如下

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)
#{
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值