All Projects → danielsabinasz → Tensorslow

danielsabinasz / Tensorslow

Re-implementation of TensorFlow in pure python, with an emphasis on code understandability

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Tensorslow

Brihaspati
Collection of various implementations and Codes in Machine Learning, Deep Learning and Computer Vision ✨💥
Stars: ✭ 53 (-91.93%)
Mutual labels:  artificial-intelligence, jupyter-notebook, artificial-neural-networks
All Classifiers 2019
A collection of computer vision projects for Acute Lymphoblastic Leukemia classification/early detection.
Stars: ✭ 22 (-96.65%)
Mutual labels:  artificial-intelligence, jupyter-notebook, artificial-neural-networks
100daysofmlcode
My journey to learn and grow in the domain of Machine Learning and Artificial Intelligence by performing the #100DaysofMLCode Challenge.
Stars: ✭ 146 (-77.78%)
Mutual labels:  artificial-intelligence, jupyter-notebook, artificial-neural-networks
Gaze Estimation
A deep learning based gaze estimation framework implemented with PyTorch
Stars: ✭ 33 (-94.98%)
Mutual labels:  artificial-intelligence, jupyter-notebook, artificial-neural-networks
Data Science Resources
👨🏽‍🏫You can learn about what data science is and why it's important in today's modern world. Are you interested in data science?🔋
Stars: ✭ 171 (-73.97%)
Mutual labels:  artificial-intelligence, jupyter-notebook, artificial-neural-networks
Magnet
Deep Learning Projects that Build Themselves
Stars: ✭ 351 (-46.58%)
Mutual labels:  artificial-intelligence, jupyter-notebook
Text summurization abstractive methods
Multiple implementations for abstractive text summurization , using google colab
Stars: ✭ 359 (-45.36%)
Mutual labels:  artificial-intelligence, jupyter-notebook
Data Science
Collection of useful data science topics along with code and articles
Stars: ✭ 315 (-52.05%)
Mutual labels:  artificial-intelligence, jupyter-notebook
Python Ml Course
Curso de Introducción a Machine Learning con Python
Stars: ✭ 442 (-32.72%)
Mutual labels:  jupyter-notebook, artificial-neural-networks
Machine Learning For Trading
Code for Machine Learning for Algorithmic Trading, 2nd edition.
Stars: ✭ 4,979 (+657.84%)
Mutual labels:  artificial-intelligence, jupyter-notebook
First Steps Towards Deep Learning
This is an open sourced book on deep learning.
Stars: ✭ 376 (-42.77%)
Mutual labels:  artificial-intelligence, artificial-neural-networks
Pba
Efficient Learning of Augmentation Policy Schedules
Stars: ✭ 461 (-29.83%)
Mutual labels:  artificial-intelligence, jupyter-notebook
Nimtorch
PyTorch - Python + Nim
Stars: ✭ 346 (-47.34%)
Mutual labels:  artificial-intelligence, artificial-neural-networks
Ai Simplest Network
The simplest form of an artificial neural network explained and demonstrated.
Stars: ✭ 333 (-49.32%)
Mutual labels:  artificial-intelligence, artificial-neural-networks
Lagom
lagom: A PyTorch infrastructure for rapid prototyping of reinforcement learning algorithms.
Stars: ✭ 364 (-44.6%)
Mutual labels:  artificial-intelligence, jupyter-notebook
Artificial Intelligence
Awesome Artificial Intelligence Projects
Stars: ✭ 330 (-49.77%)
Mutual labels:  artificial-intelligence, jupyter-notebook
Practical Deep Learning Book
Official code repo for the O'Reilly Book - Practical Deep Learning for Cloud, Mobile & Edge
Stars: ✭ 441 (-32.88%)
Mutual labels:  artificial-intelligence, jupyter-notebook
Hyperparameter Optimization Of Machine Learning Algorithms
Implementation of hyperparameter optimization/tuning methods for machine learning & deep learning models (easy&clear)
Stars: ✭ 516 (-21.46%)
Mutual labels:  jupyter-notebook, artificial-neural-networks
Nlp Notebooks
A collection of notebooks for Natural Language Processing from NLP Town
Stars: ✭ 513 (-21.92%)
Mutual labels:  artificial-intelligence, jupyter-notebook
Trending Deep Learning
Top 100 trending deep learning repositories sorted by the number of stars gained on a specific day.
Stars: ✭ 543 (-17.35%)
Mutual labels:  artificial-intelligence, artificial-neural-networks

TensorSlow

A re-implementation of TensorFlow functionality in pure python

TensorSlow is a minimalist machine learning API that mimicks the TensorFlow API, but is implemented in pure python (without a C backend). The source code has been built with maximal understandability in mind, rather than maximal efficiency. Therefore, TensorSlow should be used solely for educational purposes. If you want to understand how deep learning libraries like TensorFlow work under the hood, this may be your best shot.

I have written an article in my blog at deepideas.net that develops this library step by step, explaining all the math and algorithms on the way: Deep Learning From Scratch.

How to use

Import:

import tensorslow as ts

Create a computational graph:

ts.Graph().as_default()

Create input placeholders:

training_features = ts.placeholder()
training_classes = ts.placeholder()

Build a model:

weights = ts.Variable(np.random.randn(2, 2))
biases = ts.Variable(np.random.randn(2))
model = ts.softmax(ts.add(ts.matmul(X, W), b))

Create training criterion:

loss = ts.negative(ts.reduce_sum(ts.reduce_sum(ts.multiply(training_classes, ts.log(model)), axis=1)))

Create optimizer:

optimizer = ts.train.GradientDescentOptimizer(learning_rate=0.01).minimize(J)

Create placeholder inputs:

feed_dict = {
	training_features: my_training_features,
	training_classes: my_training_classes
}

Create session:

session = ts.Session()

Train:

for step in range(100):
	loss_value = session.run(loss, feed_dict)
	if step % 10 == 0:
		print("Step:", step, " Loss:", loss_value)
	session.run(optimizer, feed_dict)

Retrieve model parameters:

weights_value = session.run(weigths)
biases_value = session.run(biases)

Check out the examples directory for more.

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].