Using Keras ImageDataGenerator in a regression model
I want to use the flow_from_directory method of the ImageDataGenerator to generate training data for a regression model, where the target value can be any float value between 1 and -1. flow_from_directory has a "class_mode" parameter with the descripton class_mode: one of "categorical", "binary", "sparse" or None. Default: "categorical". Determines the type of label arrays that are returned: "categorical" will be 2D one-hot encoded labels, "binary" will be 1D binary labels, "sparse" will be 1D integer labels. Which of these values should I take? None of them seems to really fit... At this