Comprehensive Solutions To Circuit Uncertainty For Hardware Machine Learning System