News for hackers. Stuff that matters.
Re:Run tracking liberates ML teams by king_magic on Tuesday July 30, 2019 @01:16PM (#20566914)
I 100% agree with the premise of this, I certainly attest to run tracking being a critical component of my own personal model development/training/tuning pipeline. Not sure how I feel about using yet another 3rd party data science platform though - it'd be nice if the run tracking piece was just a component I could import into my notebook, and have it automagically track things for me (like... how seamless tqdm is for showing progress bars while iterating over loops).

Regardless of my uncertainty around trying another 3rd party platform, the premise is spot on.

Re:Run tracking liberates ML teams by lewq on Tuesday July 30, 2019 @01:28PM (#20567065)
Thank you! I am very interested in finding open source and/or non-platform ways to deliver the solution to the community. I know how off-putting 3rd party platforms can be. That's why I put the word "tooling" on the product page, not "platform" :)

Please reach out to me on [email protected] if you'd be up for finding a way to work on that together.

Re:Run tracking liberates ML teams by lukas on Tuesday July 30, 2019 @04:14PM (#20568662)
For sure! I'm emailing you now.
Re:Run tracking liberates ML teams by asdfman123 on Tuesday July 30, 2019 @01:14PM (#20566892)
This is an ad, but they're not wrong.

At my work, we use Azure ML Studio. I think the solution for deployment is to run some scripts to save the model information to git and automatically deploy from there. It will take a little bit of effort to set up, but I think it should work.

Re:Run tracking liberates ML teams by lewq on Tuesday July 30, 2019 @01:27PM (#20567035)
Yeah, sorry for the ad but us startup founders have to launch our products somehow :)

That makes sense about saving the model info to git, but how do you track the provenance of the data? Do you see that as being important? (e.g. to track back from a model to which data it was trained on, when later updating or fixing issues on the models?)

Feel free to get in touch directly - [email protected] if you'd be willing to try our stuff.

Re:Run tracking liberates ML teams by BubRoss on Tuesday July 30, 2019 @05:51PM (#20569570)
Maybe you should pay for advertising.
Re:Run tracking liberates ML teams by ac2u on Tuesday July 30, 2019 @06:27PM (#20569855)
Jesus, give them a break. Someone who's practically a mega-corp like Stripe can launch a new product with a flashy landing page on HN and everyone discusses it without issue.

There's a bit of a double standard.

Re:Run tracking liberates ML teams by BubRoss on Tuesday July 30, 2019 @07:21PM (#20570216)
Not from me, I hate that stuff too. Unless something is really game changing or a step forward it isn't news.
Re:Run tracking liberates ML teams by lukas on Tuesday July 30, 2019 @03:04PM (#20568066)
I totally agree with this and I built wandb (wandb.com) to solve this problem. We try to do this in as lightweight a way as possible - for example we can do keras tracking with a single line (https://www.wandb.com/articles/visualize-keras-models-with-o...) and pytorch with just a couple lines (https://www.wandb.com/articles/monitor-your-pytorch-models-w...). Would love any feedback on it.
Re:Run tracking liberates ML teams by lewq on Tuesday July 30, 2019 @03:06PM (#20568082)
Hey Lukas! Love your work on wandb and very keen to find ways to integrate/collaborate :)
Re:Run tracking liberates ML teams by woeirua on Tuesday July 30, 2019 @01:44PM (#20567253)
I understand that for some people this might help, but frankly I find all of these "reproducibility" frameworks fall flat as soon as truly big data enters the picture. Data versioning is not sufficient, because I typically cannot roll back my datasets to a previous version (and we moved forward for a reason).

Also, we are deliberately not using Databricks for this to avoid vendor lockin for something that will almost certainly be open-source soon.

Re:Run tracking liberates ML teams by lewq on Tuesday July 30, 2019 @02:03PM (#20567461)
I agree that there should be open source solutions and the core of Dotscience is a project called Dotmesh (https://github.com/dotmesh-io/dotmesh) which is an open source wrapper around ZFS. You can see more info about how this works and integrates with Dotscience at https://dotscience.com/technology/.

However I don't quite understand your point that "data versioning is not sufficient" because "I cannot roll back my datasets to a previous version". Surely data versioning would _solve_ the ability to roll your datasets back to a previous version? Or, are you not convinced of the need for reproducibility in data science? My rationale for this is the following: if you are building ML models that are going to make important decisions in production, it's imperative for debuggability that you're able to re-run that model training run later. If a model makes a bad decision in production, you need to know what dataset it was trained on, which means needing to be able to retrieve that dataset. That's because you can't isolate and fix the problem without being able to re-run it.

Yes, data changes and marches forwards, and that's why you should retrain models. But you also need to be able to go backwards to do robust ML. My 2 cents.

I also wrote a DevOps for ML Manifesto: https://dotscience.com/manifesto/

To summarize:

1. All models must be reproducible by someone else 6 months later.

2. All models must be accountable, that means you must be able to justify the basis on which they made their decision, in particular you need to know which data version was used and where it came from (provenance).

3. Model development must be collaborative. That means I need to be able fork a copy of your project and maintain all the metadata about which runs you did, with their respective provenance history.

4. Models must have a continuous lifecycle. You're not done when you ship - because models are about finding patterns in data, and the world is constantly changing, you need statistical monitoring and retraining to compensate for model drift.

Do you disagree? Did I miss anything? Let me know your thoughts!

Re:Run tracking liberates ML teams by woeirua on Tuesday July 30, 2019 @02:37PM (#20567777)
No, data versioning typically does not solve this problem unless you are completely isolated from everything else. Consider the case where you're pulling data from a database to use for training a model. Typically DS teams have no control over the backup schedule for that database, how long those backups are maintained, etc. For large systems, if you try to restore a backup 3 or 6 months down the road, you may only have a weekly snapshot (if even that frequent) to use. Certainly that won't give you the same data that you originally had. Admittedly, a team that was strongly focused on reproducibility could try really hard to ensure that their queries are reproducible, but if you want to be productive you typically delegate most of that work to other libraries which may or may not generate reproducible queries.

It seems to me that people working on really large-scale problems always have these external dependencies that they just can't control and subsequently data versioning only goes so far when you cannot make a full-copy of the data for each version.

I agree with you in general that we should strive for reproducibility.

Re:Run tracking liberates ML teams by lewq on Tuesday July 30, 2019 @02:42PM (#20567832)
Hmm interesting, what if you had database snapshots that could be driven by ML workflows? The primitive behind Dotscience can support lightweight database snapshots quite easily...
Re:Run tracking liberates ML teams by lewq on Tuesday July 30, 2019 @02:45PM (#20567880)
To be clear, that primitive is dotmesh and ZFS - see https://dotscience.com/technology/
Re:Run tracking liberates ML teams by mastratton3 on Tuesday July 30, 2019 @02:28PM (#20567693)
Isn't something about to be open source the opposite of vendor lock-in? Couldn't you just use databricks and then pretty easily migrate over to your own managed spark cluster if you so desired?
Re:Run tracking liberates ML teams by gyre007 on Tuesday July 30, 2019 @12:03PM (#20566183)
So run tracking as described here is about tracking every "variable" which comes into play when training your model?
Re:Run tracking liberates ML teams by lewq on Tuesday July 30, 2019 @12:19PM (#20566340)
Yes, exactly. And in particular, capturing those variables at the point of the run, not just some time before/after when you remember to record it manually.

Lots more detail here: https://dotscience.com/product/ and a super long deep dive demo wih lots of examples (I would have made it shorter if I'd had more time ;))

Re:Run tracking liberates ML teams by andbberger on Tuesday July 30, 2019 @02:30PM (#20567710)
Seems like there's been an explosions of startups trying to win B2B dollars for this.

There is an excellent open source project that nails this called sacred. It's not perfect, but it works, and as far as I can tell it has won the popularity contest.

Please join me in using and contributing back to sacred!

Re:Run tracking liberates ML teams by lewq on Tuesday July 30, 2019 @02:42PM (#20567845)
I will take a look at that and whether we can integrate with it, thanks for the tip! What do you like about it?
Re:Run tracking liberates ML teams by andbberger on Thursday August 01, 2019 @04:18PM (#20587905)
Mostly that it exists. It neatly solves a common gripe. It might not be the best possible version of this tool, but for better or worse it is currently the dominant open source effort in this space, and we all benefit from jumping on the bandwagon.

Probably google will pull a tensorflow soon and sacred will go the way of theano but until then...

Re:Run tracking liberates ML teams by visarga on Tuesday July 30, 2019 @03:16PM (#20568173)
Does it also do hyper-parameter search? It's usually something you usually want to have.
Re:Run tracking liberates ML teams by lewq on Tuesday July 30, 2019 @03:24PM (#20568244)
It's an environment for tracking runs of data engineering and ML training code in, so you can use tools like H2O and sklearn grid search within Dotscience. But we could also build on the run mechanism to automate kicking off a lot of runs in parallel over a search space of parameters.

What are you using at the moment?