gpt4 book ai didi

tensorflow - fast.ai 在 tensorflow 中的等效项

转载 作者:行者123 更新时间:2023-11-30 08:51:55 24 4
gpt4 key购买 nike

tensorfow 中是否有与 fastai 等效/替代的库,以便更轻松地训练和调试深度学习模型,包括分析 Tensorflow 中训练模型的结果。Fastai 建立在 pytorch 之上,在 tensorflow 中寻找类似的。

最佳答案

显而易见的选择是使用tf.keras

  • 它与 Tensorflow 捆绑在一起,并正在成为其官方“高级”API - 以至于在 TF 2 中您可能需要特意根本不使用它。

  • 这显然是 fastai 的灵感来源,可以像 Keras 对 tensorflow 那样轻松使用 pytorch,如 mentionned by the authors time and again :

    Unfortunately, Pytorch was a long way from being a good option for part one of the course, which is designed to be accessible to people with no machine learning background. It did not have anything like the clear simple API of Keras for training models. Every project required dozens of lines of code just to implement the basics of training a neural network. Unlike Keras, where the defaults are thoughtfully chosen to be as useful as possible, Pytorch required everything to be specified in detail. However, we also realised that Keras could be even better. We noticed that we kept on making the same mistakes in Keras, such as failing to shuffle our data when we needed to, or vice versa. Also, many recent best practices were not being incorporated into Keras, particularly in the rapidly developing field of natural language processing. We wondered if we could build something that could be even better than Keras for rapidly training world-class deep learning models.

关于tensorflow - fast.ai 在 tensorflow 中的等效项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55951545/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com