All Projects → jostmey → Nakedtensor

jostmey / Nakedtensor

Licence: apache-2.0
Bare bone examples of machine learning in TensorFlow

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Nakedtensor

Tensorflow Brasil
Códigos e materiais sobre TensorFlow em Português
Stars: ✭ 74 (-96.97%)
Mutual labels:  tensorflow-tutorials, tensorflow-examples
Cs224d
Code for Stanford CS224D: deep learning for natural language understanding
Stars: ✭ 222 (-90.91%)
Mutual labels:  tensorflow-tutorials, tensorflow-examples
Free Tensorflow
Tensorflow 免费中文视频教程,开源代码,免费书籍.
Stars: ✭ 83 (-96.6%)
Mutual labels:  tensorflow-tutorials, tensorflow-examples
Tensorflow Sentiment Analysis On Amazon Reviews Data
Implementing different RNN models (LSTM,GRU) & Convolution models (Conv1D, Conv2D) on a subset of Amazon Reviews data with TensorFlow on Python 3. A sentiment analysis project.
Stars: ✭ 34 (-98.61%)
Mutual labels:  tensorflow-tutorials, tensorflow-examples
Spark With Python
Fundamentals of Spark with Python (using PySpark), code examples
Stars: ✭ 150 (-93.86%)
Mutual labels:  big-data, distributed-computing
Moosefs
MooseFS – Open Source, Petabyte, Fault-Tolerant, Highly Performing, Scalable Network Distributed File System (Software-Defined Storage)
Stars: ✭ 1,025 (-58.04%)
Mutual labels:  big-data, distributed-computing
Androidtensorflowmachinelearningexample
Android TensorFlow MachineLearning Example (Building TensorFlow for Android)
Stars: ✭ 1,369 (-43.96%)
Mutual labels:  tensorflow-tutorials, tensorflow-examples
My Tensorflow Tutorials
This repo contains all of my TensorFlow tutorials
Stars: ✭ 795 (-67.46%)
Mutual labels:  tensorflow-tutorials, tensorflow-examples
100daysofmlcode
My journey to learn and grow in the domain of Machine Learning and Artificial Intelligence by performing the #100DaysofMLCode Challenge.
Stars: ✭ 146 (-94.02%)
Mutual labels:  big-data, linear-regression
Chatgirl
ChatGirl is an AI ChatBot based on TensorFlow Seq2Seq Model. ChatGirl 一个基于 TensorFlow Seq2Seq 模型的聊天机器人。(包含预处理过的 twitter 英文数据集,训练,运行,工具代码,来波 Star 。)QQ群:167122861
Stars: ✭ 105 (-95.7%)
Mutual labels:  tensorflow-tutorials, tensorflow-examples
Letslearnai.github.io
Lets Learn AI
Stars: ✭ 33 (-98.65%)
Mutual labels:  tensorflow-tutorials, tensorflow-examples
Tensorflow In Practice Code
源码实现:《TensorFlow实战》黄文坚,唐源 著
Stars: ✭ 176 (-92.8%)
Mutual labels:  tensorflow-tutorials, tensorflow-examples
Tensorflow Find Object
📸 A simple application to demonstrate TensorflowJS using mobile net model to predict objects via camera API.
Stars: ✭ 12 (-99.51%)
Mutual labels:  tensorflow-tutorials, tensorflow-examples
Math object detection
An image recognition/object detection model that detects handwritten digits and simple math operators. The output of the predicted objects (numbers & math operators) is then evaluated and solved.
Stars: ✭ 52 (-97.87%)
Mutual labels:  tensorflow-tutorials, tensorflow-examples
Machine Learning Collection
A resource for learning about ML, DL, PyTorch and TensorFlow. Feedback always appreciated :)
Stars: ✭ 883 (-63.86%)
Mutual labels:  tensorflow-tutorials, tensorflow-examples
Ml Classifier
A tool for quickly training image classifiers in the browser
Stars: ✭ 97 (-96.03%)
Mutual labels:  tensorflow-tutorials, tensorflow-examples
Machine Learning
머신러닝 입문자 혹은 스터디를 준비하시는 분들에게 도움이 되고자 만든 repository입니다. (This repository is intented for helping whom are interested in machine learning study)
Stars: ✭ 705 (-71.14%)
Mutual labels:  tensorflow-tutorials, tensorflow-examples
Tensorflow 2.x Tutorials
TensorFlow 2.x version's Tutorials and Examples, including CNN, RNN, GAN, Auto-Encoders, FasterRCNN, GPT, BERT examples, etc. TF 2.0版入门实例代码,实战教程。
Stars: ✭ 6,088 (+149.2%)
Mutual labels:  tensorflow-tutorials, tensorflow-examples
Tensorflow2.0 Examples
🙄 Difficult algorithm, Simple code.
Stars: ✭ 1,397 (-42.82%)
Mutual labels:  tensorflow-examples, linear-regression
Geni
A Clojure dataframe library that runs on Spark
Stars: ✭ 152 (-93.78%)
Mutual labels:  big-data, distributed-computing

Naked Tensor

This is a bare bones example of TensorFlow, a machine learning package published by Google. You will not find a simpler introduction to it.

In each example, a straight line is fit to some data. Values for the slope and y-intercept of the line that best fit the data are determined using gradient descent. If you do not know about gradient descent, check out the Wikipedia page.

alt text

After creating the required variables, the error between the data and the line is defined. The definition of the error is plugged into the optimizer. TensorFlow is then started and the optimizer is repeatedly called. This iteratively fits the line to the data by minimizing the error.

Read the scripts in this order:

  • serial.py
  • tensor.py
  • bigdata.py

Serial.py

The purpose of this script is to illustrate the nuts and bolts of a TensorFlow model. The script makes it easy to understand how the model is put together. The error between the data and the line is defined using a for loop. Because of the way the error is defined, the calculation runs in serial.

Tensor.py

This script goes a step farther than serial.py although it actually requires fewer lines of code. The outline of the code is the same as before except this time the error is defined using tensor operations. Because tensors are used, the code can run in parallel.

You see, each point of data is treated as being independent and identically sampled. Because each point of data is assumed to be independent, the calculations are too. When you use tensors, each point of data is run on separate computing cores. There are 8 points of data, so if you have a computer with eight cores it should run almost eight times faster.

BigData.py

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.

There are two major changes in the code. The first is bookkeeping. Because of all the data, the error must be defined using placeholders instead of actual data. Later in the code, the data is fed through the placeholders. The second change is that because we have so much data, only a sample of data is fed into the model at any given time. Each time an operation of gradient descent is called, a new sample of data is fed into the model. By sampling the dataset, TensorFlow never has to deal with the entire dataset at once. This works surprisingly well and there is theory that says it is okay to do this. There are a few conditions that the theory says are important, like the step size must decrease with each iteration. For now, who cares! It works.

Conclusion

As you worked through the scripts, you hopefully saw how the error can be anything you wanted it to be. It could be the error between a set of images and a convolutional neural network. It could be the error between classical music and a recurrent neural network. Let your imagination run wild. Once the error is defined, you can use TensorFlow to try and minimize it.

That's it. Hopefully you found this tutorial enlightening.

Requirements

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].