News for hackers. Stuff that matters.
Re:Why Swift for TensorFlow? by skwb on Sunday February 10, 2019 @04:49PM (#19130283)
Forgive me for my ignorance, but does swift have any good plotting and interactive "notebook" ability? Specifically the ability to plot images such as matplotlib.

I ask this because the number 1 reason my deep learning research group chose python was because of the extensive and interactive scientific plotting ability that's built into python jupyter notebooks. While our volume of analysis isn't on the scale of say a google/fb (primarily biomedical image analysis), the ability to easily visually debug the results is much more important for developing robust models.

Re:Why Swift for TensorFlow? by dynamicwebpaige on Sunday February 10, 2019 @04:52PM (#19130304)
Yes! Swift is supported in Google Colab, and as a Jupyter kernel: https://github.com/google/swift-jupyter.
Re:Why Swift for TensorFlow? by skwb on Sunday February 10, 2019 @04:55PM (#19130314)
What is the plotting experience like though? As I previously mentioned, plotting is one of the main reasons our group uses python.

Another reason now that I think about it, is the number of scientific libraries that I can just "pip install" without much thought (such as scipy/opencv).

Re:Why Swift for TensorFlow? by marcrasi on Sunday February 10, 2019 @05:07PM (#19130398)
You can call out to matplotlib (or any other python libraries installed on your system), using the python interop feature (https://github.com/tensorflow/swift/blob/master/docs/PythonI...)!

https://github.com/google/swift-jupyter#rich-output has an example with screenshots.

Re:Why Swift for TensorFlow? by Redoubts on Monday February 11, 2019 @01:19PM (#19136730)
Oof
Re:Why Swift for TensorFlow? by eschaton on Sunday February 10, 2019 @05:32PM (#19130526)
Interactive plotting and “notebook” capability isn’t a property of a language so it’s fallacious to ask if Swift has it. (Or Python, or Julia, or Wolfram, etc.)