Harsh120 / Ancient-Tamil-Script-Recognition

12 stars 8 forks source link

pls solve me this error #7

Open Kavimani1634 opened 8 months ago

Kavimani1634 commented 8 months ago

history = model.fit(X, y, batch_size=32, epochs=40, validation_split=0.1)

Kavimani1634 commented 8 months ago

ValueError Traceback (most recent call last) Cell In[11], line 3 1 # Training the model, with 40 iterations 2 # validation_split corresponds to the percentage of images used for the validation phase compared to all the images ----> 3 history = model.fit(X, y, batch_size=32, epochs=40, validation_split=0.1)

File c:\Users\testi\AppData\Local\Programs\Python\Python312\Lib\site-packages\keras\src\utils\traceback_utils.py:123, in filter_traceback..error_handler(*args, **kwargs) 120 filtered_tb = _process_traceback_frames(e.traceback) 121 # To get the full stack trace, call: 122 # keras.config.disable_traceback_filtering() --> 123 raise e.with_traceback(filtered_tb) from None 124 finally: 125 del filtered_tb

File c:\Users\testi\AppData\Local\Programs\Python\Python312\Lib\site-packages\keras\src\trainers\data_adapters\data_adapter_utils.py:166, in train_validation_split(arrays, validation_split) 164 unsplitable = [type(t) for t in flat_arrays if not _can_split(t)] 165 if unsplitable: --> 166 raise ValueError( 167 "Argument validation_split is only supported " 168 "for tensors or NumPy arrays." 169 f"Found incompatible type in the input: {unsplitable}" 170 ) 172 if all(t is None for t in flat_arrays): 173 return arrays, arrays

ValueError: Argument validation_split is only supported for tensors or NumPy arrays.Found incompatible type in the input: [<class 'int'>, <class 'int'>, <class 'int'>,