请考虑下面的代码:
import tensorflow as tf
import numpy as np
simple_features = np.array([
[1, 1, 1],
[2, 2, 2],
[3, 3, 3],
[4, 4, 4],
[5, 5, 5],
])
simple_labels = np.array([
[-1, -1],
[-2, -2],
[-3, -3],
[-4, -4],
[-5, -5],
])
simple_features1 = np.array([
[1, 4, 1],
[2, 2, 2],
[3, 3, 3],
[6, 4, 4],
[5, 4, 5],
])
simple_labels1 = np.array([
[8, -7],
[-2, -2],
[-3, 7],
[-4, 9],
[-5, -5],
])
def print_dataset(ds):
for inputs, targets …Run Code Online (Sandbox Code Playgroud)