Modify deepNetworkFunctions.py