December 2018
Beginner to intermediate
226 pages
7h 59m
English
The relation function is pretty simple, right? We will understand relation networks better by implementing one in TensorFlow.
You can also check the code available as a Jupyter Notebook with an explanation here: https://github.com/sudharsan13296/Hands-On-Meta-Learning-With-Python/blob/master/04.%20Relation%20and%20Matching%20Networks%20Using%20Tensorflow/4.5%20Building%20Relation%20Network%20Using%20Tensorflow.ipynb.
First, we import all of the required libraries:
import tensorflow as tfimport numpy as np
We will randomly generate our data points. Let's say we have two classes in our dataset; we will randomly generate some 1,000 data points for each of these classes:
classA = np.random.rand(1000,18) ...
Read now
Unlock full access