Dynamic Voltage/Frequency Scaling And Power-Gating Of Network-On-Chip With Machine Learning