I am a student and new to the concept of Artificial intelligence using Tensorflow library.I have the below code and I need an interpretation for the part that has === "setosa" ? 1 : 0,
//tensor of output for training data
const outputData = tf.tensor2d(
iris.map((item) => [
item.species === "setosa" ? 1 : 0,
item.species === "virginica" ? 1 : 0,
item.species === "versicolor" ? 1 : 0,
])
);
What does this ? 1 : 0 mean here.