Learning to Design Analog Circuits to Meet Threshold Specifications