Earlier quoted context omitted.
As a person that uses TensorFlow for his day job: I find that saving and restoring are of the weirder things with TensorFlow, you can either go all out an decide to save out all the variables, or only the ones needed for the model. You usually don't want to save out gradients (which are also variables) since they take up a bunch of space and aren't actually that useful to restore. Now on the other, what are model var…
In Keras, it's just a simple model.save() [to a hdf5 file] and load_model(). This includes both the weights and the architecture. Models with a few million parameters result in a file around ~50MB, which is still reasonable for modern production use cases.
Simple example of machine learning in TensorFlow
41–49 of 49 posts
Re: Simple example of machine learning in TensorFlow
#42I like these kind of "Hello, world!" examples for TensorFlow. As a TensorFlow beginner, I need all the references I can get. Here is what I need right now: "Hello, we meet again!". I can build a neural net model, and train (albeit, often badly) a model, but saving and restoring the trained weights so that I can run the model again is giving me fits. I am clearly missing something fundamental about how to restore a Te…
However, Estimators are not in TensorFlow core, which means the API isn't fixed quite yet.
Re: Simple example of machine learning in TensorFlow
#43Earlier quoted context omitted.
In Keras, it's just a simple model.save() [to a hdf5 file] and load_model(). This includes both the weights and the architecture. Models with a few million parameters result in a file around ~50MB, which is still reasonable for modern production use cases.
Keras makes using deep learning for simple-ish use cases sooooo easy.
Re: Simple example of machine learning in TensorFlow
#44>>> You are one buzzword away from being a professional. Instead of fitting a line to just eight datapoints, we will now fit a line to 8-million datapoints. Welcome to big data. LOL :) (Side-note: 8 million is still not big data)
Big Data is a reference to complexity of the data & underlying system that data represents, NOT the number of datapoints. lol
lol
Re: Simple example of machine learning in TensorFlow
#45Earlier quoted context omitted.
Big Data is a reference to complexity of the data & underlying system that data represents, NOT the number of datapoints. lol
Big data is really just a buzzword that no one knows what it really means, because everyone's definition is different lol
Re: Simple example of machine learning in TensorFlow
#46So I'm still wrapping my head around some of the math (I haven't had a math class in a handful of years)... I get the output of the model (y_model = m*xs[i]+b), it's the y = mx + b where we know x (from the dataset) and have y be a variable. The error is where I start to lose it, so I get the idea of the first part (ys[i]-y_model). It's basically the difference between the actual y value (from the dataset). I get tha…
Re: Simple example of machine learning in TensorFlow
#47Re: Simple example of machine learning in TensorFlow
#48"Bare bottom"? I'm not clicking on this.
Re: Simple example of machine learning in TensorFlow
#49What is the meaning of the "?bare" query string in the url? I googled around for the meaning of query strings on the github site but only found rnandom repos on github (not sure how to narrow the search). The first time I tried removing it I saw another folder named "to_do", but this is gone now so it might give a version which is cached for longer somehow?