Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On default run of Notebook"03", it is giving error. #666

Open
siddhant-rajhans opened this issue Aug 8, 2024 · 1 comment
Open

On default run of Notebook"03", it is giving error. #666

siddhant-rajhans opened this issue Aug 8, 2024 · 1 comment

Comments

@siddhant-rajhans
Copy link

In notebook 3,
every model training process where
.fit(train_data_augmented_shuffled, # we're fitting on augmented and shuffled data now epochs=5, steps_per_epoch=len(train_data_augmented_shuffled), validation_data=test_data, validation_steps=len(test_data) )
is giving issue
`AttributeError Traceback (most recent call last)

---> 32 mod_7 = model7.fit(train_data_augmented_shuffled, # we're fitting on augmented and shuffled data now
AttributeError: 'NoneType' object has no attribute 'items'`.

Reproducing issue:

  • just open and run the file in colab
@wantedskorp
Copy link

wantedskorp commented Oct 27, 2024

In this line try to use validation_batch_size instead of validation_steps

model_1.fit(train_data, epochs=5, steps_per_epoch=len(train_data), validation_data=valid_data, validation_steps =len(valid_data))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants