anshuman23

anshuman23

Hello all,

I have been working on my proposed project called Tensorflex as part of Google Summer of Code 2018.. Tensorflex can be used for making predictions from input data on pre-trained Tensorflow models. Training as of now is only supported in the Python API (also C++ at a low-level) but Tensorflex fully supports Inference and can be used for making predictions. Moreover, Tensorflex is being worked on and improved everyday so if there are any particular features anyone has in mind, please feel free to get in touch with me!

As an introduction to using Tensorflex for making predictions from saved models, I have written a blog post: http://www.anshumanc.ml/gsoc/2018/06/14/gsoc/

To follow development, make sure to watch the Github repository here: GitHub - anshuman23/tensorflex: Tensorflow bindings for the Elixir programming language 💪 · GitHub

Cheers!

Showing Posts 15 to 6

leifericf

leifericf

Thank you for creating this library, @anshuman23.

I recently changed my position at work from business developer to data scientist and I’m in the process of digging into a bunch of tools for data wrangling and machine learning.

Python is one of the most common programming languages for data science, due to extensive and robust libraries, such as pandas, NumPy, scikit-learn, TensorFlow, Keras and TensorForce. Those are the primary tools that we use at my workplace at the moment.

I’ll be looking into using Tensorflex as an alternative for deploying machine learning models.

One thing I’m curious about: When you created Tensorflex, did you envision for it to become to Elixir sort of what Keras is to Python? That is, not just for model-serving, but also for training artificial neural networks, etc.—A more generic abstraction layer on top of TensorFlow, CNTK and Theano.

Elixir with it’s highly concurrent capabilities, focus on data transformation (e.g. data pipelines) and strong support for meta-programming, lends itself very well to data science and machine learning. It makes me very excited to see that other people have similar thoughts.

There is an incredible amount of potential for Elixir within data science and machine learning.

anshuman23

anshuman23 OP

Hello!
@mat_garland_1 and others who might be interested, here is the link for the PR which showcases how to use an RNN-LSTM model for sentiment analysis in Tensorflex. I am going to be working on documentation and a blog post for this as well as the Inception model over the next week, but the description for this PR is sufficiently detailed to get a general idea in the meanwhile:
https://github.com/anshuman23/tensorflex/pull/25

mat_garland_1

mat_garland_1

Thank you so much @anshuman23, I’ll certainly check it out! Great work!

CptnKirk

CptnKirk

You could also start a slave node. Execute your NIFs within the slave. With slaves you can also achieve fault tolerance. You’d also avoid the need for C code scaffolding. Assuming you got the NIF from a 3rd party you could avoid maintaining non-elixir code within your codebase.

anshuman23

anshuman23 OP

Hi @mat_garland_1! Yes Tensorflex supports Inference for any graph created with Tensorflow. Since you mentioned LSTMs, I’m actually working on an example at the moment which will cover RNNs and LSTMs with Tensorflex. It should be up on the Github repository in a day or so. Will also try and write a blog post if it helps :slight_smile:

mat_garland_1

mat_garland_1

I am really looking forward to this, thanks @anshuman23 for taking this on board.

It would be perfect if one were able to hand off data to an Elixir process → Tensor flow / flex ML pipeline and then use that trained data. I am particularly interested in the text classification / LSTM / Inference areas of ML for bots. It sounds like this is exactly what you are working on?

froggrog

froggrog

You create a useful product, thank you! I recently found a similar project, it’s called extensor. Maybe you should join forces.

f34nk

f34nk

Alternatively you could implement the binding as a C-Node.
There is a package called Nodex.

From Erlang’s point of view, the C node is treated like a normal Erlang node.

This way you still have fault tolerance.

OvermindDL1

OvermindDL1

That’s about right, Rust gives safety within rust, so it could make the interface safer, but it won’t do anything for the code running in another language, and if it is a simple wrapping anyway, not much point in using Rust then.

CptnKirk

CptnKirk

But most every library we’d be wrapping is C/C++. Here’s where the FUD kicks in. Rust is a new and another thing I’d have to learn. Also, from my limited knowledge of Rust, that while you can call C/C++ you give up safety by doing so.

So while you could write your own Rust lib for the fast parts and use Rustler to help with Elixir bindings, I’m not sure Rust helps in this case.

But I hear about Rust so it would be nice for someone to set the record straight.

Where Next? Top

Trending in Announcing Top

woylie
Flop is an Elixir library that applies filtering, ordering and pagination parameters to your Ecto queries. offset-based pagination with...
New
MRdotB
I needed to reuse React components from my Chrome extension in my Phoenix/LiveView backend. I noticed that for Svelte/Vue, there are live...
New
woylie
I released Doggo, a collection of unstyled Phoenix components. https://github.com/woylie/doggo Features Unstyled Phoenix components....
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
anuaralfetahe
Hello Published a new library - ProcessHub! ProcessHub is a library designed to manage process distribution within the Elixir cluster. ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Dmk
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New
sergio
It’s not that it’s vocabulary is too advanced. It’s something worse. I get lost trying to follow even a paragraph written by Claude. It’...
New
AstonJ
This showed up on my feed.. anyone heard of it? Just hype? Ox Alpha is a reasoning model designed for coding, sustained ag...
New
bartblast
Hey folks, I just published a post about Hologram’s funding and where the project goes next - the short version: Curiosum as Main Spons...
New
sorenone
Today we’re releasing Oban for Python. Not an Oban client in Python. Not a pythonx wrapper embedded in Elixir. Nope, it’s a fully operati...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews