TensorFlow by Google
文章平均质量分 57
AI架构师易筋
工作10+年,AI方向架构师,曾经任职阿里巴巴,世界500强HSBC。擅长大模型LLM原理、架构、深度学习、Transformer、算法、数据结构、设计模式。易筋乃阿里巴巴花名。
展开
-
Keras TensorFlow 2.0 精华资源
学习资源此页面是现代 Keras / TensorFlow 2 最佳实践的学习资源汇编。请注意,最好的入门资源仍然是我们的开发人员指南、官方代码示例以及tensorflow.org 上的教程。如果这是您第一次接触 Keras,您还可以查看 针对研究人员的 Keras简介和 针对工程师的 Keras 简介。图书使用 Python 进行深度学习(第二版),作者:François Chollet - GitHub 上提供的代码示例使用 Scikit-Learn、Keras 和 TensorFlow原创 2022-02-19 08:41:02 · 135 阅读 · 0 评论 -
翻译: TensorFlow 2.0 中的符号和命令式 API 是什么?
发表 我最喜欢 TensorFlow 2.0 的一件事是它提供了多个抽象级别,因此您可以为您的项目选择合适的抽象级别。在本文中,我将解释可用于创建神经网络的两种风格之间的权衡。第一种是符号样式,您可以通过操作图层图来构建模型。第二种是命令式风格,通过扩展类来构建模型。我将介绍这些内容,分享有关重要设计和可用性注意事项的注释,并以快速建议结束,以帮助您选择正确的。1. 符号(或声明性)API当我们想到神经网络时,我们通常使用的心智模型是“层图”,如下图所示。当我们想到神经网络时,我们通常使用的心智模型原创 2022-02-18 09:10:28 · 865 阅读 · 0 评论 -
翻译: Keras 标准化:TensorFlow 2.0 中高级 API 指南
TensorFlow 正在为2.0 版的发布做准备。在本文中,我们想预览 TensorFlow 的高级 API 的发展方向,并回答一些常见问题。Keras是一个非常流行的高级 API,用于构建和训练深度学习模型。它用于快速原型设计、最先进的研究和生产。虽然 TensorFlow 现在支持 Keras,但在 2.0 中,我们正在将 Keras 更紧密地集成到 TensorFlow 平台的其余部分中。通过将 Keras 建立为 TensorFlow 的高级 API,我们让刚接触机器学习的开发人员更容易开始使原创 2022-02-18 09:02:10 · 1324 阅读 · 0 评论 -
翻译: TensorFlow 2.0 中的新功能
得益于令人难以置信的多元化社区,TensorFlow 已成长为世界上最受喜爱和广泛采用的 ML 平台之一。该社区包括:研究人员(例如,预测地震余震和检测乳腺癌)。开发人员(例如,构建应用程序来识别患病植物并帮助人们减肥)。公司(例如,通过eBay、Dropbox和AirBnB来改善他们的客户体验)。还有许多其他人。11 月,2019年TensorFlow庆祝了它的 3 岁生日,回顾了这些年来添加的功能。我们对另一个重要里程碑 TensorFlow 2.0 感到兴奋。TensorFlow 2.原创 2022-02-18 08:51:10 · 1006 阅读 · 0 评论 -
神经结构化学习 4 图像分类的对抗性学习Adversarial learning for image classification
https://www.tensorflow.org/neural_structured_learninghttps://www.tensorflow.org/neural_structured_learning/framework参考https://youtu.be/Js2WJkhdU7k原创 2022-02-13 07:58:21 · 417 阅读 · 0 评论 -
神经结构化学习 3 使用合成图进行训练 Neural Structured Learning - Part 3: Training with synthesized graphs
https://www.tensorflow.org/neural_structured_learninghttps://www.tensorflow.org/neural_structured_learning/framework参考https://youtu.be/3RQqTTOY0U0原创 2022-02-13 07:43:14 · 566 阅读 · 0 评论 -
神经结构化学习 2 使用自然图进行训练 Neural Structured Learning - Part 2: Training with natural graphs
https://www.tensorflow.org/neural_structured_learninghttps://www.tensorflow.org/neural_structured_learning/framework参考https://youtu.be/pJRRdtJ-rPU原创 2022-02-13 06:53:13 · 1610 阅读 · 0 评论 -
神经结构化学习 1 框架概述 Neural Structured Learning Part 1: Framework overview
!在这里插入图片描述https://www.tensorflow.org/neural_structured_learninghttps://www.tensorflow.org/neural_structured_learning/framework参考https://youtu.be/N_IS3x5wFNI原创 2022-02-10 08:45:24 · 863 阅读 · 0 评论 -
训练 AI 创作诗歌 6 NLP 从零到英雄 Training an AI to create poetry
参考https://youtu.be/ZMudJXhsUpY原创 2022-02-09 22:30:34 · 350 阅读 · 0 评论 -
NLP 的LSTM长短期记忆 5 NLP 零到英雄 Long Short-Term Memory for NLP
参考https://youtu.be/A9QVYOBjZdY原创 2022-02-08 08:19:12 · 233 阅读 · 0 评论 -
带有RNN循环神经网络的机器学习 4 NLP 从零到英雄 ML with Recurrent Neural Networks
参考https://youtu.be/OuYtk9Ymut4原创 2022-02-08 08:08:59 · 208 阅读 · 0 评论 -
训练模型以识别文本中的情绪 3 NLP 零到英雄 Training a model to recognize sentiment in text
https://rishabhmisra.github.io/publications/http://bit.ly/tfw-sarcembed参考https://youtu.be/Y_hzMnRXjhI原创 2022-02-07 10:19:18 · 193 阅读 · 0 评论 -
排序 - 将句子转化为数据 2 NLP 零到英雄 Sequencing - Turning sentences into data
http://bit.ly/tfw-nlp2import tensorflow as tffrom tensorflow import kerasfrom tensorflow.keras.preprocessing.text import Tokenizerfrom tensorflow.keras.preprocessing.sequence import pad_sequencessentences = [ 'I love my dog', ...原创 2022-02-07 09:33:46 · 154 阅读 · 0 评论 -
自然语言处理 - 标记化 1. NLP 零到英雄 Natural Language Processing - Tokenization
https://bit.ly/tfw-nlp1from tensorflow.keras.preprocessing.text import Tokenizersentences = [ 'i love my dog', 'I, love my cat', 'You love my dog!']tokenizer = Tokenizer(num_words = 100)tokenizer.fit_on_texts(sentences)wor...原创 2022-02-06 16:45:49 · 396 阅读 · 0 评论 -
翻译: ScaNN:高效向量相似性搜索
假设一个人想要使用需要完全匹配标题、作者或其他易于机器索引的标准的查询来搜索大型文学作品数据集。这样的任务非常适合使用 SQL 等语言的关系数据库。但是,如果想要支持更抽象的查询,例如“内战诗歌”,则不再可能依赖简单的相似性指标,例如两个短语之间的共同词数。例如,查询“科幻小说”与“未来”的相关性比与“地球科学”的相关性更高,尽管前者有 0,而后者有 1,与查询相同的词。机器学习 (ML) 极大地提高了计算机理解语言语义并因此回答这些抽象查询的能力。现代 ML 模型可以将文本和图像等输入转换为嵌入、高维向原创 2022-02-06 08:59:49 · 1721 阅读 · 0 评论 -
使用 ScaNN 进行高效检索以进行检索 7使用 TensorFlow 构建推荐系统 Efficient serving with ScaNN for retrieval
ReferencesEfficient serving with ScaNNhttps://www.tensorflow.org/recommenders/examples/efficient_servingScaNN repositoryhttps://github.com/google-research/google-research/tree/master/scannGoogle Al blog on ScaNNhttps://ai.googleblog.com/2...原创 2022-02-06 08:41:30 · 1062 阅读 · 0 评论 -
Deep & Cross Network 6 使用 TensorFlow 构建推荐系统
ReferencesDeep cross network using TensorFlow Recommendershttps://www.tensorflow.org/recommenders/examples/dcnDCN V1: Deep & Cross Network for Ad Click Predictionshttps://arxiv.org/pdf/1708.05123.pdfDCN V2: Improved Deep & Cross Netw...原创 2022-02-05 08:59:52 · 710 阅读 · 0 评论 -
利用上下文特征和多任务学习 5使用 TensorFlow 构建推荐系统 Leveraging context features and multitask learning
ReferencesLeveraging context featureshttps://www.tensorflow.org/recommenders/examples/context_featuresBuilding a multitask recommender using TensorFlow Recommendershttps://www.tensorflow.org/recommenders/examples/multitask参考https://you...原创 2022-02-04 09:02:19 · 868 阅读 · 0 评论 -
使用 TF Recommenders 构建排名模型 4使用 TensorFlow 构建推荐系统 Building a ranking model with TF Recommenders
ReferencesBuilding a ranking model using TensorFlow Recommendershttps://www.tensorflow.org/recommenders/examples/basic_ranking参考https://youtu.be/ZkwJo5HRjiQ原创 2022-02-03 17:02:17 · 700 阅读 · 0 评论 -
TensorFlow Recommenders 简介 3 使用 TensorFlow 构建推荐系统 Intro to TensorFlow Recommenders
ReferencesTensorFlow Recommenders homepagehttps://www.tensorflow.org/recommendersTensorFlow Recommenders repository on GitHubhttps://github.com/tensorflow/recommendersBuilding a retrieval model using TensorFlow Recommendershttps://...原创 2022-02-02 16:59:33 · 908 阅读 · 0 评论 -
基于内容的过滤和协同过滤 使用 TensorFlow 构建推荐系统 Building recommendation systems with TensorFlow
ReferencesRecommendation systems on Google Developers websitehttps://developers.google.com/machine-learning/recommendationBuilding a recommendation model using Stochastic Gradient Descenthttps://developers.google.com/machine-learning/recommenda...原创 2022-02-01 16:29:37 · 511 阅读 · 0 评论 -
使用TensorFlow构建推荐系统Recommendation systems overview (Building recommendation systems with TensorFlow)
ReferencesTensorFlow Recommendershttps://www.tensorflow.org/recommendersScaNNhttps://github.com/google-research/google-research/tree/master/scannTensorFlow Rankinghttps://github.com/tensorflow/rankingTensorFlow Lite on-device reco...原创 2022-02-01 09:25:08 · 574 阅读 · 0 评论 -
TensorFlow by Google #10使用 NLP 构建讽刺分类器 Using NLP to build a sarcasm classifier
https://rishabhmisra.gihub.io/publications/二维码的链接 https://www.kaggle.com/rmisra/news-headlines-dataset-for-sarcasm-detection练习1https://bit.ly/tfw-nlpsarcasm!wget --no-check-certificate \ https://storage.googleapis.com/laurencemoroney-bl...原创 2022-01-31 17:38:23 · 439 阅读 · 0 评论 -
TensorFlow by Google 使用排序 APIMachine Learning Foundations: Ep #9 - Using the Sequencing APIs
练习https://bit.ly/tfw-nlp2import tensorflow as tffrom tensorflow import kerasfrom tensorflow.keras.preprocessing.text import Tokenizerfrom tensorflow.keras.preprocessing.sequence import pad_sequencessentences = [ 'I love my dog',...原创 2022-01-31 16:14:36 · 431 阅读 · 0 评论 -
TensorFlow by Google Machine Learning Foundations: Ep #8 - Tokenization for Natural Language Process
机器学习基础:第 8 集 - 自然语言处理的标记化练习https://bit.ly/tfw-nlp1from tensorflow.keras.preprocessing.text import Tokenizersentences = [ 'i love my dog', 'I, love my cat', 'You love my dog!', 'hello, hello, hello, hello I am in China now'原创 2022-01-31 15:52:25 · 337 阅读 · 0 评论 -
TensorFlow by Google过拟合优化 Machine Learning Foundations: Ep #7 - Image augmentation and overfitting
1. 过拟合优化,数据增强Cats v Dogs Augmentationhttps://colab.research.google.com/github/lmoroney/dlaicourse/blob/master/Course%202%20-%20Part%204%20-%20Lesson%202%20-%20Notebook%20(Cats%20v%20Dogs%20Augmentation).ipynb让我们从一个非常有效地学习 Cats v Dogs 的模...原创 2021-09-10 08:17:18 · 142 阅读 · 0 评论 -
TensorFlow by Google CNN识别猫和狗 Machine Learning Foundations: Ep #6 - Convolutional cats and dogs
https://www.kaggle.com/c/dogs-vs-cats/datahttps://bit.ly/tfw-lab61. 使用更大的数据集进行训练 - 猫和狗在上一个实验中,您使用马匹-人类数据集训练了一个分类器。您看到,尽管获得了很好的训练结果,但是当您尝试对真实图像进行分类时,还是会出现很多错误,主要是由于过度拟合——网络在处理之前看到的数据时表现很好,但在处理之前看到的数据时表现不佳’不!在本实验中,您将查看一个真实的、非常大的数据集,并了解这对避免过度拟合的影响。imp..原创 2021-09-10 07:58:40 · 599 阅读 · 0 评论 -
TensorFlow by Google CNN分类真实图片 Machine Learning Foundations: Ep #5 - Classifying real-world images
图片分类结构,方便training和 testing1. 对复杂图像使用卷积https://bit.ly/tfw-lab5#@title Licensed under the Apache License, Version 2.0 (the "License");# you may not use this file except in compliance with the License.# You may obtain a copy of the License at## htt..原创 2021-09-09 07:37:48 · 417 阅读 · 0 评论 -
TensorFlow by Google 实战CNN Machine Learning Foundations: Ep #4 - Coding with CNN
1. 使用卷积提高计算机视觉精度https://bit.ly/tfw-lab4在前面的课程中,您看到了如何使用包含三层的深度神经网络 (DNN) 进行时尚识别——输入层(以数据的形式)、输出层(以所需的输出形式)和隐藏层。您尝试了不同大小的隐藏层、训练周期数等对最终准确度的影响。为方便起见,这里再次提供完整代码。运行它并记下最后打印出来的测试准确度。import tensorflow as tfmnist = tf.keras.datasets.fashion_mnist(trainin...原创 2021-09-08 21:30:53 · 156 阅读 · 0 评论 -
TensorFlow by Google CNN卷积神经网络 Machine Learning Foundations: Ep #3 - Convolutions and pooling
1. 什么是卷积?bit.ly/convolutions-fun在下一个实验中,您将探索如何使用卷积增强您的计算机视觉示例。但什么是卷积?在本实验中,您将探索它们是什么以及它们如何工作,然后在实验 4 中,您将看到如何在您的神经网络中使用它们。与卷积一起,您将使用称为“池化”的东西,它压缩您的图像,进一步强调特征。您还将了解池化在本实验中的工作原理。1.1 之前 DNN 的局限性在上一个实验中,您看到了如何使用 Fashion MNIST 数据集训练时尚单品的图像分类器。这给了你...原创 2021-09-08 07:19:11 · 143 阅读 · 0 评论 -
TensorFlow by Google一个计算机视觉示例Machine Learning Foundations: Ep #2 - First steps in computer vision
1. 超越 Hello World,一个计算机视觉示例bit.ly/tfw-lab2cv在前面的练习中,您看到了如何创建一个神经网络来找出您要解决的问题。这给出了学习行为的明确例子。当然,在那种情况下,这有点矫枉过正,因为直接编写函数 Y=3x+1 会更容易,而不是费心使用机器学习来学习一组固定的 X 和 Y 之间的关系值,并将其扩展到所有值。但是,如果编写这样的规则要困难得多——例如计算机视觉问题,那该怎么办?让我们看一个场景,在这个场景中,我们可以识别不同的服装项目,这些项目...原创 2021-09-08 07:00:51 · 454 阅读 · 0 评论 -
TensorFlow by Google神经网络深度学习的 Hello World Machine Learning Foundations: Ep #1 - What is ML?
传统的编码逻辑,写股票价格/营收的实现传统的游戏逻辑传统编码逻辑 和 机器学习逻辑传统编码模式去识别运动类型:速度判断机器学习识别运动模式:图片识别入参X,计算出参Y,传统的方法是,先找到规律 Y = 2X - 1 ,实现编码。TensorFlow 实现。bit.ly/tfw-lab11. 神经网络深度学习的 Hello World就像每一个第一个应用程序一样,你应该从一些超级简单的东西开始,展示你的代码如何工作的整体脚手架。在创建神经网络的情况下,我喜欢.原创 2021-09-08 06:30:19 · 196 阅读 · 0 评论