Chris Brown

(TMZ) - Chris Brown is recieving education in preventing domestic violence, and the judge in the Karrueche Tran case gave him a full year of it ... TMZ has learned.

TMZ reports, according to court docs, Brown has to complete a 52-week batterer intervention program. The judge's ruling came after Karrueche testified in Thursday's restraining order hearing.

As TMZ reported, the judge also ruled Chris has to stay away from Karrueche for the next 5 years.

He's no stranger to counseling sessions. After his Rihanna conviction, Chris had to attend domestic violence counseling -- and later, when he violated probation in that case, he was forced to attend anger management.

Photo: Getty Images