Use whichever release that works best for the hardware.
The release that works well with your hardware would be the most relevant choice, given that machine learning tools are capable of running on CUDA-enabled graphic processing unit (GPU). Both Keras and Caffe seems to have been tested running on some hardware models.
When your hardware support is good, then only look at how to install the packages. Apparently, which release to use does not really matter according to the documentation for Keras and Caffe.
From documentation for Keras:
Keras is compatible with: Python 2.7-3.5.
You can install Keras from PyPI (easiest method):
sudo pip install keras
From documentation for Caffe:
Caffe has several dependencies:
The instruction to install Caffe varies by Ubuntu releases.
For Ubuntu (>= 17.04)
CPU-only version:
sudo apt install caffe-cpu
CUDA-version:
sudo apt install caffe-cuda
Installation seems to be easy on newer releases of Ubuntu. On the other hand, packages must be installed separately on releases older than 17.04 (ouch).
Note that I have merely quoted relevant information from the documentation for Keras and Caffe; I have no experience for using these tools.
One thing for sure: Most users wouldn't want to deal with trivial issues i.e. unable to use Wi-Fi connection, screen tearing, etc. even before attempting to install the desired packages. Hence my suggestion to use whichever release that works best for the hardware. That comes first.
LTS
) releases of Ubuntu. 16.04LTS is the most recent LTS release. – waltinator Aug 21 '17 at 15:32