r/MachineLearning • • Jun 21 '19

Discussion [D] Those who hire/interview for machine learning positions, what can self taught people include in their projects that would convince you they would be able to fit in and keep up with those with a more standard background ?

547 Upvotes

150 comments sorted by

View all comments

Show parent comments

71

u/po-handz Jun 21 '19 edited Jun 21 '19

Well usually you don't have just one model, but a suite, ok, so now you're going to keep all those big models loaded in the server RAM? What about taking user/new input for classification? Ok it's going to have to be formatted exactly the same as your test data, and will need to be correctly scaled, but how do you scale 1 observation? Do you need a gpu for inference? Cause that's gonna cost you >$1000/month on AWS, is that even financially viable? What about timeseries data, now you need a model that's continuously updated and you need to track tuning and performance over time. You'll also need a live, maintainable data pipeline, which can be infinitely harder then being handed a clean dataset not to mention it's now infinitely more expensive as you have to retrain every model each week/month. You'll also need a whole UI, website, nginx stack and it's got to be user friendly af, etc etc etc

Some of these things even experienced data scientists have zero knowledge of simply because they've worked in incredibly specialized silo roles where they're handed a clean dataset, train a model and hand it off to another team to launch

16

u/AdditionalWay Jun 21 '19

Wow. Any resources you recommend for figuring out how to do all that via self-taught?

34

u/po-handz Jun 21 '19

It's alot of trial and error but it's mainly using a ton of different AWS tutorials

For my pet project I had several small AWS ec2's scraping cryptocurrency data from exchanges and sentiment data from social media/reddit. I used cronjobs running R scripts to process it all in realtime and store in a S3 bucket. Another ec2 ran a R shiny dashboard with and nginx stack and static IP so anyone could access it. The models were loaded to the shiny ec2 and called when the user wanted predictions and the data was continuously pulled from the S3 buckets. I updated models manually monthly

This kind of stuff, complex data pipelines, becomes a nightmare, which is why they silo the operations to different teams at large orgs

9

u/hiptobecubic Jun 21 '19

Thumbs up. Is it a totally hacky pipeline that falls over when reddit changes their DOM? Sure. But that's the point. To keep something like this alive requires broad knowledge and resourcefulness.

If you saw the actual tooling in use by large, famous, well-funded teams at top companies it would be clear why this skill set is important.

11

u/po-handz Jun 21 '19

I eventually had to take it down as it was costing me close to $100/month to run, even updating the models locally. Which sucks cause it was my primary talking point. Had it running long enough to get a some-what data job and into CS grad school tho.

You're absolutely right that it would fall over at the slightest wind. I had wget statements scraping from an API as raw, unlabeled standalone files and I only had the 'last modified date' to build off of for ordering the data. So moving the files or running out of disk space destroyed whole parts of the project lol. And it was scraped every 5 mins so we're talking about trying to read half a million 70kb objects into R on a t2.small instance for every rebuild. nightmares

But even though the most complex models I used were xgboost and svm, the project as a whole demonstrated a zillion skills you don't pick up in school or textbooks

4

u/hiptobecubic Jun 21 '19

Had it running long enough to get a some-what data job and into CS grad school tho.

Easily paid for itself, then. Do the minimum you need to do to answer the questions you have. If you have long term needs or maintenance is just too costly then by all means, invest more in the solution but for something like this it sounds like you were doing what was sensible.

1

u/hebbar Jun 22 '19

Did you use SageMaker?

1

u/po-handz Jun 22 '19

no, it was almost entirely cronjobs, R scripts, caret/scikit and mxnet

I haven't used sagemaker before and don't really know what it is, but have an inherent dislike of 'canned ham' solutions

9

u/Stvjk Jun 21 '19

Lots of tutorials online about how to create a python api or web app/service but what you choose depends on the project or application, a lot of companies aren’t sure themselves

Try making even a simple ML app/api with flask, stick it in a docker image, load that on AWS, again lots of tutorials on this. Knowing some kind of ‘stack’ helps, which is really about being able to make ML useful for company or other teams through some kind of api service or MVP level application. Demonstrating this is very valuable.

1

u/AdditionalWay Jun 21 '19

Great. What are the 'stacks' in machine learning? Flask/docker/aws?

9

u/Stvjk Jun 21 '19

Stack is usually a general word to describe the technologies and way in which you delivered a service or app.

For instance, most people learn to write some python code to take in data, maybe you build a web scraper using beautifulsoup to scrape text data from a website, format and store this as Json data. Then use something like NLTK or scikit to process the text data, ultimately creating some kind of labelled data out of it, say reviews and the label is their score out of ten. Then train a model on this with tensorflow or scikit, save the model. Now use a web framework like flask (or falcon for an API or django for a bigger web app) to load the model and wrap it for some use. Maybe it takes in a review in the web app or through the api and returns the score for The review/ the prediction. You’ll need nginx as well to serve your app, package it into a docker image, then load this onto an EC2 instance on AWS. This is your stack essentially a python web app in docker on aws.

Again lots of tutorials showing some or all of how to do this. Put this whole project on github cause that’s where we all look! Have a look at these kind of projects that other people have put up. This will demonstrate that you can get an MVP out without little help and you’ll hit the ground running in most companies if they hire you.

1

u/aditya1702 Jun 23 '19

All these points are really very helpful and thank you for pointing them out. My main question is this - If in large orgs there are different teams for launching models into production and I know I want to be in the team that builds just models, should I still learn this stuff? Considering I dont want to join the production deployment team?