- 博客(3)
- 收藏
- 关注
原创 keras中fit函数里sample_weight参数使用(非常详细,有例子和代码)
介绍了keras中fit函数里sample_weight参数含义,以及对于数据种类个数不同的分类和回归问题,如何利用sample_weight去解决,附详细代码和讲解。
2023-11-25 23:06:35
1913
原创 jupyter notebook解决AttributeError: ‘Tensor‘ object has no attribute ‘_numpy‘
今天设置自定义损失函数的时候,发现tensor格式没有办法直接用.numpy(),转化成numpy格式。解决方法:在model.compile()中,将run_eagerly设置成True。
2023-07-13 17:59:41
913
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人