Pups between the ages of 9–12 weeks who were permitted to observe their narcotics-detecting mothers at work generally proved more capable at learning the same skills at six months of age than control puppies the same age who were not previously allowed to watch their mothers working.[56] A 2001 study recorded the behaviour of dogs in detour tests, in which a favorite toy or food was placed behind a V-shaped fence. The demonstration of the detour by humans significantly improved the dogs' performance in the trials. The experiments showed that dogs are able to rely on information provided by human action when confronted with a new task. Significantly, they did not copy the exact path of the human demonstrator, but adopted the detour behavior shown by humans to reach their goal.[57] A 1977 experiment by Adler and Adler found that puppies who watched other puppies learn to pull a food cart into their cages by an attached ribbon proved considerably faster at the task when later given the opportunity themselves. At 38 days of age, the demonstrator puppies took an average of 697 seconds to succeed, while the observers succeeded in an average of 9 seconds.[58]
Just so you know, a puppy is never completely housetrained until they are 6 months old. For some breeds, even later. This means that though you may be making tremendous progress housetraining, there will be "mistakes". Sometimes for reasons you can't figure out! Don't fret about it. Stay focused on the progress you are making. Your confidence in the techniques you are using to house train your puppy will ensure your success.

The term "observational learning" encompasses several closely related concepts: allelomimetic behavior or mimicking where, for example, puppies follow or copy others of their kind; social facilitation where the presence of another dog causes an increase in the intensity of a behavior; and local enhancement which includes pieces of social facilitation, mimicking, and trial-and-error learning, but is different from true observational learning in that the dog actively participates in the behavior in the presence of the other dog and/or other environmental cues.[55] Four necessary conditions for observational learning are: attention, retention, motivation, and production. That is, the dog must pay attention to the dog or person performing the modelled behavior; retain the information gathered about the behavior during the observation; be motivated to reproduce the behavior in a time and place removed from the original; and finally, produce the behavior, or some reasonable facsimile thereof.[55]

Learned helplessness occurs when a dog ceases to respond in a situation where it has no option to avoid a negative event. For learned helplessness to occur, the event must be both traumatic and outside the dog's control.[53] Family dogs that are exposed to unpredictable or uncontrolled punishment are at risk of developing disturbances associated with the learned helplessness disorder. Punishment which is poorly coordinated with identifiable avoidance cues or response options, such as when punishment takes place long after the event, meet the criteria of inescapable trauma.[43]
Unfortunately, there is no magic length of time or milestone age when a puppy can be considered fully housetrained and there are many factors that go into how quickly a puppy can be potty trained. Your puppy’s age plays a major role during the initial phase of potty training, as a very young puppy won’t have the muscle control necessary to hold it for long periods of time.

A training class is not there to train your dog. Its purpose is to teach you to train your dog so you will need to be committed to train your dog for short sessions (5 minutes) several times a day rather than just simply turn up for classes! This little bit of training everyday will be repaid with a lifetime of living with a well behaved dog. You will also learn to avoid problems before they begin as well as receive help to overcome any that you already have with your dog.