Steps-VS-epochs - machine-learning (2024)

Table of Contents
A A

In most of the models, there is a steps parameter indicating the number of steps to run over data. But yet I see in most practical usage, we also execute the fit function N epochs.

What is the difference between running 1000 steps with 1 epoch and running 100 steps with 10 epoch? Which one is better in practice? Any logic changes between consecutive epochs? Data shuffling?

COMMENTS :

Jason Brownlee at machinelearningmastery.com has a very nice, detailed answer to exactly that question. – BmyGuest Apr 16 at 20:12

A

An epoch usually means one iteration over all of the training data. For instance if you have 20,000 images and a batch size of 100 then the epoch should contain 20,000 / 100 = 200 steps. However I usually just set a fixed number of steps like 1000 per epoch even though I have a much larger data set. At the end of the epoch I check the average cost and if it improved I save a checkpoint. There is no difference between steps from one epoch to another. I just treat them as checkpoints.

People often shuffle around the data set between epochs. I prefer to use the random.sample function to choose the data to process in my epochs. So say I want to do 1000 steps with a batch size of 32. I will just randomly pick 32,000 samples from the pool of training data.

A

A training step is one gradient update. In one step batch_size many examples are processed.

An epoch consists of one full cycle through the training data. This is usually many steps. As an example, if you have 2,000 images and use a batch size of 10 an epoch consists of 2,000 images / (10 images / step) = 200 steps.

If you choose our training image randomly (and independent) in each step, you normally do not call it epoch. [This is where my answer differs from the previous one. Also see my comment.]

Steps-VS-epochs - machine-learning (2024)
Top Articles
What Happens to Your Body When You Eat Salad Every Day
Apple AirDrop vs Google Nearby Share: Key differences
Golden Abyss - Chapter 5 - Lunar_Angel
Tmf Saul's Investing Discussions
Www.craigslist Virginia
What Are the Best Cal State Schools? | BestColleges
Kansas Craigslist Free Stuff
Mama's Kitchen Waynesboro Tennessee
South Carolina defeats Caitlin Clark and Iowa to win national championship and complete perfect season
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Computer Repair Tryon North Carolina
Vanadium Conan Exiles
Mr Tire Rockland Maine
Buckaroo Blog
Max 80 Orl
Crusader Kings 3 Workshop
Connexus Outage Map
Buying risk?
2024 Non-Homestead Millage - Clarkston Community Schools
charleston cars & trucks - by owner - craigslist
Studentvue Columbia Heights
How To Cancel Goodnotes Subscription
Roof Top Snipers Unblocked
Curry Ford Accident Today
Geometry Review Quiz 5 Answer Key
Gran Turismo Showtimes Near Marcus Renaissance Cinema
Which Sentence is Punctuated Correctly?
Obituaries Milwaukee Journal Sentinel
Myql Loan Login
480-467-2273
Acurafinancialservices Com Home Page
Cornedbeefapproved
Fuse Box Diagram Honda Accord (2013-2017)
In hunt for cartel hitmen, Texas Ranger's biggest obstacle may be the border itself (2024)
Greyson Alexander Thorn
Loopnet Properties For Sale
Car Crash On 5 Freeway Today
Cross-Border Share Swaps Made Easier Through Amendments to India’s Foreign Exchange Regulations - Transatlantic Law International
Instafeet Login
My.lifeway.come/Redeem
2023 Fantasy Football Draft Guide: Rankings, cheat sheets and analysis
Craigs List Hartford
Ig Weekend Dow
Kenner And Stevens Funeral Home
Valls family wants to build a hotel near Versailles Restaurant
Does Target Have Slime Lickers
National Weather Service Richmond Va
Mega Millions Lottery - Winning Numbers & Results
Canonnier Beachcomber Golf Resort & Spa (Pointe aux Canonniers): Alle Infos zum Hotel
Jimmy John's Near Me Open
Equinox Great Neck Class Schedule
Latest Posts
Article information

Author: Horacio Brakus JD

Last Updated:

Views: 6342

Rating: 4 / 5 (71 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Horacio Brakus JD

Birthday: 1999-08-21

Address: Apt. 524 43384 Minnie Prairie, South Edda, MA 62804

Phone: +5931039998219

Job: Sales Strategist

Hobby: Sculling, Kitesurfing, Orienteering, Painting, Computer programming, Creative writing, Scuba diving

Introduction: My name is Horacio Brakus JD, I am a lively, splendid, jolly, vivacious, vast, cheerful, agreeable person who loves writing and wants to share my knowledge and understanding with you.