Personally I had the opportunity to go on several ride alongs with the LA County Sheriff's Department with some amazing detectives, who were invaluable to me.
Actually I've never had formal training, I was lucky enough to continue working most of my career and aside from sitting in on a couple of classes, here and there, I basically just use my own instincts.
I'd never played a cop before, and this particular role with what she is going thru, especially during the first season, covering her alcoholism to her on the job performance, was a great opportunity for me as an actress.