摘要: This tutorial shows how to load and preprocess an image dataset in three ways. First, you will use high-level Keras preprocessing utilities and layers 阅读全文
posted @ 2021-07-29 10:44 毛显新 阅读(146) 评论(0) 推荐(0)
摘要: how-do-i-select-rows-from-a-dataframe-based-on-column-values To select rows whose column value equals a scalar, some_value, use ==: df.loc[df['column_ 阅读全文
posted @ 2021-07-29 10:20 毛显新 阅读(54) 评论(0) 推荐(0)
摘要: Real-world recommender systems are often composed of two stages: The retrieval stage is responsible for selecting an initial set of hundreds of candid 阅读全文
posted @ 2021-07-28 13:47 毛显新 阅读(47) 评论(0) 推荐(0)
摘要: 本教程的目的是要预测汽车的燃料效率,相比于之前的分类,这是一个回归问题,回归是针对连续变量的,分类是针对离散变量的 用的数据集是 Auto MPG ,包含有 MPG、Cylinders、Displacement、Horsepower、Weight、Acceleration、Model Year、Or 阅读全文
posted @ 2021-07-28 12:35 毛显新 阅读(89) 评论(0) 推荐(0)
摘要: 本教程的目的是带领大家学会,根据译文片段预测翻译作者 本次用到的数据集是三个 txt 文本,分别是 cowper.txt、derby.txt、butler.txt ,该文本已经经过一些预处理,去除了表头,页眉等 接下来我们加载数据,这里我们使用 tf.data.TextLineDataset API 阅读全文
posted @ 2021-07-28 12:35 毛显新 阅读(59) 评论(0) 推荐(0)
摘要: 本教程的目的是带领大家学会如何给 stack overflow 上的问题进行打标签 首先我们需要导入要用到的函数库 import matplotlib.pyplot as pltimport osimport reimport shutilimport string​import numpy as 阅读全文
posted @ 2021-07-28 12:35 毛显新 阅读(254) 评论(0) 推荐(0)
摘要: Import TensorFlow into your program: import tensorflow as tf​from tensorflow.keras.layers import Dense, Flatten, Conv2Dfrom tensorflow.keras import Mo 阅读全文
posted @ 2021-07-28 12:34 毛显新 阅读(42) 评论(0) 推荐(0)
摘要: This short introduction uses Keras to: Build a neural network that classifies images. Train this neural network. And, finally, evaluate the accuracy o 阅读全文
posted @ 2021-07-27 16:58 毛显新 阅读(38) 评论(0) 推荐(0)
摘要: This guide trains a neural network model to classify images of clothing, like sneakers and shirts. This guide uses tf.keras, a high-level API to build 阅读全文
posted @ 2021-07-27 15:46 毛显新 阅读(56) 评论(0) 推荐(0)
摘要: 本次教程的目的是带领大家学会用 Tensorflow serving 部署训练好的模型 这里我们用到的数据集是 Fashion MNIST,所以训练出来的模型可以实现以下几个类别的分类 'T-shirt/top', 'Trouser', 'Pullover', 'Dress', 'Coat', 'S 阅读全文
posted @ 2021-07-27 12:43 毛显新 阅读(57) 评论(0) 推荐(0)