Keras: 基于 Python 的深度学习库个层,然后通过 传递一个张量来调用它。注意,在调用模型时,您不仅重用模型的结构,还重用了它的权重。 x = Input(shape=(784,)) # 这是可行的,并且返回上面定义的 10-way softmax。 y = model(x) 快速开始 18 这种方式能允许我们快速创建可以处理序列输入的模型。只需一行代码,你就将图像分类 模型转换为视频分类模型。 from keras 维的向量 input_sequences = Input(shape=(20, 784)) # 这部分将我们之前定义的模型应用于输入序列中的每个时间步。 # 之前定义的模型的输出是一个 10-way softmax, # 因而下面的层的输出将是维度为 10 的 20 个向量的序列。 processed_sequences = TimeDistributed(model)(input_sequences) 时间步都是一样的,你可以使用 noise_shape=(batch_size, 1, features)。 • seed: 一个作为随机种子的 Python 整数。 参考文献 • Dropout: A Simple Way to Prevent Neural Networks from Overfitting 5.2.4 Flatten [source] keras.layers.Flatten() 将输入展平。不影响批量大小。0 码力 | 257 页 | 1.19 MB | 1 年前3
TensorFlow on Yarn:深度学习遇上大数据计算任务到指定GPU设备 设备亲和性影响较小 设备亲和性影响较大 TensorFlow on Yarn技术细节揭秘 Yarn支持GPU调度ResourceManager端实现:� 扩展org.apache.hadoop.yarn.api.records.Resource抽象类及其实现,增加:� � public abstract int getGpuCores();� � public abstract � 1、对NodeManager GPU卡数量的统计管理� 2、调度器统计管理每个Pool的GPU设备数的分配情况� � 具体可以参考下面Patch的实现思路:� https://issues.apache.org/jira/browse/YARN-5517� TensorFlow on Yarn技术细节揭秘 Yarn支持GPU调度NodeManager端实现:� NodeManager yarn-site0 码力 | 32 页 | 4.06 MB | 1 年前3
亚马逊AWSAI Services Overview数据 程序模型 GPUs & 计算加速 深度学习的爆发 图像理解 自然语言处理 语音识别 机器自主 AWS 之上的人工智能应用 Zillow • Zestimate (using Apache Spark) Howard Hughes Corp • Lead scoring for luxury real estate purchase predictions FINRA • Anomaly0 码力 | 56 页 | 4.97 MB | 1 年前3
动手学深度学习 v2.0Torch24和Theano25。许多开创性的论文都是用这些工具写的。到目前为止,它们已经被TensorFlow26 (通常通过其高级API Keras27使用)、CNTK28、Caffe 229和Apache MXNet30所取代。第三代工具,即用 于深度学习的命令式工具,可以说是由Chainer31率先推出的,它使用类似于Python NumPy的语法来 描述模型。这个想法被PyTorch32、MXNet的Gluon com/caffe2/caffe2 30 https://github.com/apache/incubator‐mxnet 31 https://github.com/chainer/chainer 32 https://github.com/pytorch/pytorch 33 https://github.com/apache/incubator‐mxnet 34 https://github randomly from SATA SSD 500 μs DC S3510 SATA SSD (QOS 99.9%) Round trip within same datacenter 500 μs One‐way ping is ~250μs Read 1MB sequentially from SATA SSD 2 ms ~550MB/s DC S3510 SATA SSD Read 1MB sequentially0 码力 | 797 页 | 29.45 MB | 1 年前3
《Efficient Deep Learning Book》[EDL] Chapter 6 - Advanced Learning Techniques - Technical Reviewtasks can be to predict the last element (future) from the previous elements (past), or the other way around. Again to re-emphasize we are just pretending that the data is missing for the sake of the pretext (refer figure 6-4 (b)). The authors report that the network trained in a self-supervised manner this way can be fine-tuned to perform nearly as well as a fully supervised network. 3 Gidaris, Spyros, et al 70% accuracy on ImageNet with only 13 labels per class is a hard task, because ImageNet is a 1000-way classification problem. Therefore you should consider fine-tuning existing contrastive learning checkpoints0 码力 | 31 页 | 4.03 MB | 1 年前3
《Efficient Deep Learning Book》[EDL] Chapter 1 - Introductioncurrently trending content, the model will assign a high probability to Seinfeld. While there is no way of predicting with absolute certainty the exact content that you would end up clicking on, at that between Artificial Intelligence, Machine Learning, and Deep Learning. Deep learning is one possible way of solving machine learning problems. Machine learning in turn is one approach towards artificial that the image is an apple, when using soft labels. Hard labels would penalize both mistakes the same way. In the original paper which proposed distillation, Hinton et al. replicated performance of an ensemble0 码力 | 21 页 | 3.17 MB | 1 年前3
《Efficient Deep Learning Book》[EDL] Chapter 2 - Compression Techniquesto chop them into cubes and discard the odd parts. An even smaller box can fit those 10 apples this way. We can call this lossy compression because we lost the odd parts. The choice of the technique depends xmax], and there are no clusters of values in any part. Now that we have the assumptions out of the way, instead of working with a 32-bit for storing x, let us assume we have a b-bit unsigned integer for The solution to this specific exercise is in this notebook. Solution: With the logistics out of the way, let’s look at how to solve this exercise. We use NumPy for this solution. It supports vector operations0 码力 | 33 页 | 1.96 MB | 1 年前3
《Efficient Deep Learning Book》[EDL] Chapter 4 - Efficient Architecturesboth to be cute. However, a picture of a snake or a grizzly bear might trigger caution or fear. In a way, we subconsciously group these animals in our head. We don’t necessarily know everything about a dog learning models and inputs such as text, which are not in numerical format, having an algorithmic way to meaningfully represent these inputs using a small number of numerical features, will help us solve not only slow but also relies on our intuition about both the features and their values. Is there a way to automate the embedding table generation? Turns out there is! In the next section, let's go over0 码力 | 53 页 | 3.92 MB | 1 年前3
《Efficient Deep Learning Book》[EDL] Chapter 3 - Learning Techniquesthey can learn to identify them with high accuracy. All cups have the same basic shape. One possible way to teach a child is to look at the same cup from different angles and rotations, in varying degrees 3) The nlpaug_fn() function just wraps up the augmentation calls in a tf.py_function, a tensorflow way to call python code. def nlpaug_fn(aug): def pyfn(text): text = text.numpy().decode("utf-8") text transferring the lessons (learnings) from a larger model or an ensemble of models to a smaller model. In a way, it is an extension of model based data augmentation techniques like GANs such that instead of training0 码力 | 56 页 | 18.93 MB | 1 年前3
Experiment 6: K-Means16. By making this reduction, it would 1 be possible to represent the photo in a more efficient way by storing only the RGB values of the 16 colors present in the image. In this exercise, you will use small image. When you have recalculated the large image, you can display and save it in the following way: %Display imshow ( uint8 (round( large image ) ) ) % Save image imwrite ( uint8 (round( large image0 码力 | 3 页 | 605.46 KB | 1 年前3
共 22 条
- 1
- 2
- 3













