Show HN: Fullstack ML – From Notebooks to Deployment
11–20 of 25 posts
Re: Show HN: Fullstack ML – From Notebooks to Deployment
#12I have absolutely no idea what this is, supposed to do, and what the demo shows.
ML-Ops is as deep as data engineering but not as often talked about. The linked article discusses one example.
Re: Show HN: Fullstack ML – From Notebooks to Deployment
#13You dropped some code in your Python or R project and it would slurp everything in to one package and, for Python, run it in Flask in a docker container using their home-grown container orchestrator.
Re: Show HN: Fullstack ML – From Notebooks to Deployment
#14This is very, very similar to what Yhat (YC W15) did. You dropped some code in your Python or R project and it would slurp everything in to one package and, for Python, run it in Flask in a docker container using their home-grown container orchestrator. https://www.welcome.ai/tech/data-science/yhat/
Re: Show HN: Fullstack ML – From Notebooks to Deployment
#15This is very, very similar to what Yhat (YC W15) did. You dropped some code in your Python or R project and it would slurp everything in to one package and, for Python, run it in Flask in a docker container using their home-grown container orchestrator. https://www.welcome.ai/tech/data-science/yhat/
What happened to them?
Re: Show HN: Fullstack ML – From Notebooks to Deployment
#16I have absolutely no idea what this is, supposed to do, and what the demo shows.
From what I can tell it's an example application to show how a machine learning project could be turned into a real world web app more or less from start to finish.
1) feature preparation and model training as part of notebooks
2) Creation of a Flask API to interact with the trained models. This includes feature enrichment based on APIs input, so as to match the expected inputs by the model
3) Creation of an UI to interact with the API/Model
4) Setup of NGinx and docker to surface that application
Each part is covered in a minimal manner compared to most enterprise data products, and only cover 1 of the approach for end to end ML, but I think it does the job well to demonstrate the scope of work that is needed to put ML data products into production, and could be used as good introduction.
Re: Show HN: Fullstack ML – From Notebooks to Deployment
#17Re: Show HN: Fullstack ML – From Notebooks to Deployment
#18I have absolutely no idea what this is, supposed to do, and what the demo shows.
From what I can tell it's an example application to show how a machine learning project could be turned into a real world web app more or less from start to finish.
Re: Show HN: Fullstack ML – From Notebooks to Deployment
#19 server {
listen 80;
server_name: localhost;
location / {
proxy_pass http://fai:4242/;
proxy_set_header Host "localhost";
}
}
According to the docker-compose.yml file, fai:4242 is running a container called "flask": flask:
build:
context: ./
dockerfile: Dockerfile
container_name: flask
networks:
net:
aliases:
- faip
And according to the Dockerfile for the "flask" app.py runs flask built-in (single threaded, recommended for development only) server: if __name__ == '__main__':
APP.run(host='0.0.0.0', port=4242)
There's not much to say about this except that the flask project themselves don't recommend running this server in production[1]. I would recommend a WSGI server such as gunicorn[2] running under supervisord[3]. I would also like to see some logging and error handling in production quality code, and it would make sense to have nginx serve the static files (index.html, index.js, etc.) directly without using up a python thread (which should be reserved for the more dynamic endpoints.) It would be nice to demonstrate using nginx for rat limiting[4] or as a load balancer[5] spreading the work across multiple flask servers.Mind you, I think this is a neat little demo, but as something to put into production - or to teach other people how to put REST APIs into production - it falls short in its current state.
[1]: https://flask.palletsprojects.com/en/1.1.x/tutorial/deploy/
[2]: http://docs.gunicorn.org/en/stable/deploy.html#deploying-gun...
Re: Show HN: Fullstack ML – From Notebooks to Deployment
#20I came here because I thought this was about the ML programming language, aka Lisp with Types™, but it's about machine learning.
I made the same mistake most of the time but here with notebook in the title is was obviously Machine Learning.