def _transformation(self, XP): """Build the kernel feature space transformation.""" real = tf.cos(XP) imag = tf.sin(XP) Net = tf.concat([real, imag], axis=-1) / np.sqrt(self.n_features) return Net