Questions tagged [epochs]
42 questions
35
votes
5 answers
What to set in steps_per_epoch in Keras' fit_generator?
I am replicating, in Keras, the work of a paper where I know the values of epoch and batch_size. Since the dataset is quite large, I am using fit_generator. I would like to know what to set in steps_per_epoch given epoch value and batch_size. Is…
yamini goel
- 711
- 3
- 7
- 14
8
votes
3 answers
How to combine GridSearchCV with Early Stopping?
I'm a beginner in machine learning and want to train a CNN (for image recognition) with optimized hyperparameter like dropout rate, learning rate and number of epochs.
The optimal hyperparameter I try to find via GridSearchCV from Scikit-learn.
I…
Code Now
- 393
- 5
- 10
7
votes
2 answers
Keras Fit Generator Function
I want to know if my thinking is correct?
Total Images = 120,000
So in the Keras Fit Generator function,
I made the batch_size = 24 and steps per epoch = 500 ,which is 12000 and only one-tenth of the total dataset.
Therefore I should make the…
Son kun
- 71
- 2
3
votes
2 answers
Which is meant by +/-9.2e18 years in timespan?
I was able to convert the 9.2e18 AD to a date, but I am confused about the exact date. Which date is 9.2e18 AD and and 9.2e18 BC?
Time span (absolute) - [9.2e18 BC, 9.2e18 AD] i.e +/- 9.2e18 years
NumPy documentation, section "Datetime Units"…
Rinshan Kolayil
- 143
- 8
3
votes
2 answers
Scikit learn linear regression - learning rate and epoch adjustment
I am trying to learn linear regression using ordinary least squares and gradient descent from scratch.
I read the documentation for the Scikit learn function and I do not see a means to adjust the learning rate or the epoch with the…
chrisper
- 53
- 1
- 6
3
votes
4 answers
Are weights of a neural network reset between epochs?
If an epoch is defined as the neural network training process after seeing the whole training data once. How is it that when starting the next epoch, the loss is almost always smaller than the first one? Does this mean that after an epoch the…
user134132523
- 149
- 1
- 3
- 13
3
votes
1 answer
How to get the number of steps until a certain accuracy in keras?
I want to see how many steps does it take for my model to reach a certain accuracy.Say 90 percent on cifar10.How can I get this info from the keras model ?
EDIT:
accuracy in each epoch is accessible in history object fit() returns,but im looking for…
Moeinh77
- 223
- 1
- 5
3
votes
1 answer
What is the difference? "Adding more LSTM layers" or "Increasing epochs"?
To get more accurate results which one is better? Adding more layers or increasing number of epochs? I like to know the difference between effects of these two approaches?
user3486308
- 1,260
- 5
- 16
- 27
3
votes
1 answer
Early stopping and final Loss or weights of models
In a deep model, I used the Early stopping technique as below in Keras:
from keras.callbacks import EarlyStopping
early_stopping = [EarlyStopping(monitor='val_loss',
min_delta=0,
patience=2,
…
user7194905
- 307
- 2
- 4
- 10
2
votes
2 answers
Opinions on an LSTM hyper-parameter tuning process I am using
I am training an LSTM to predict a price chart. I am using Bayesian optimization to speed things slightly since I have a large number of hyperparameters and only my CPU as a resource.
Making 100 iterations from the hyperparameter space and 100…
user134132523
- 149
- 1
- 3
- 13
2
votes
2 answers
How can I tune LSTM hyperparameters?
If anyone is there to answer these, that'll be great. I'm in the midst of a Final Year Project on LSTM.
Currently, I’m stuck and confused over LSTM codes. There are 4 hyperparameters that I can play around with:
Look back
Batch size
LSTM units…
Marcus
- 21
- 1
- 2
2
votes
1 answer
Computing number of batches in one epoch
I have been reading through Stanford's code examples for their Deep Learning course, and I see that they have computed num_steps = (params.train_size + params.batch_size - 1) // params.batch_size [github link].
Why isn't it num_steps =…
Henry
- 53
- 4
2
votes
2 answers
What is the logic of the epoch?
What is the logic of the epoch? For example, 1 time, 2 times, etc. I just do not know what else is working to give better results than I know.
Developer
- 1,069
- 2
- 9
- 11
2
votes
4 answers
Is it better to optimize hyperparameters or run multiple epochs?
Whenever I train a neural network I only have it go through a few epochs ( 1 to 3). This is because I am training them on a bad CPU and it would take some time to have the neural network go though many epochs.
However, whenever my neural network…
J Houseman
- 48
- 5
2
votes
1 answer
How to determine the number of forward and backward passes in deep learning (CNN)?
Is there a way to determine the number of forward and backward passes in the training of a neural network using python?
N.IT
- 1,975
- 4
- 17
- 35