A samurai had to go through alot of physical and mental traning. They went through physical test because they had to be strong and powerful. But they also had to go through a lot of mental traning because they had to stay loyal to their shogun or diamyo. A samurai had their own warrior code too, called Bushido.
Women also got trained in the ways of the samurai because when the husband samurai left for battle, the wife had to defend their land. In the 12th century samurai women were very respected and had a high calss. But in the 17th century they lost all of the respect they had and all the priority was on the men.