TypeError: __init__() takes from 2 to 3 positional arguments but 4 were given
Advertisements I want to use scaled_input = Rescaling(1./255, 0.0, "rescaling")(input_) to rescale the dataset including 600 images with 5 labels but it got error: scaled_input = Rescaling(1./255, 0.0, "rescaling")(input_) TypeError: __init__() takes from 2 to 3 positional arguments but 4 were given Here is all the code: import os import random import warnings warnings.filterwarnings("ignore") import… Read More TypeError: __init__() takes from 2 to 3 positional arguments but 4 were given