Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tensor flow interested #394

Open
wants to merge 38 commits into
base: tf2.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
26cc883
Add TensorFlow v2 examples (#302)
aymericdamien Apr 4, 2019
039bfcb
fix links
aymericdamien Apr 4, 2019
e0241a3
Update README.md
aymericdamien Apr 5, 2019
26982d7
Update README.md
aymericdamien Apr 5, 2019
f5d759a
Change cell type from "code" to "markdown" (#304)
rmccorm4 Apr 18, 2019
d090625
Update README.md (#312)
sachinprabhu007 Jun 2, 2019
042c25c
add TensorFlow v2 RNN examples
aymericdamien Jul 15, 2019
11380c8
Update dcgan.py (#320)
chenminhua Aug 5, 2019
bb4daed
add new examples
aymericdamien Aug 10, 2019
6cb2ad4
update docs
aymericdamien Aug 10, 2019
f4c3435
small fixes
aymericdamien Aug 10, 2019
0564f61
fix docs
aymericdamien Aug 10, 2019
3650e19
add word2vec for TF2.0
aymericdamien Aug 17, 2019
7aeb6cb
Update tensorflow v2 installation
aymericdamien Nov 7, 2019
c577281
A minor mistake in cross entropy loss (#357)
kilarinikhil Apr 12, 2020
39d9d0e
Update convolutional_network_raw.ipynb (#366)
lkdmttg7 May 16, 2020
2cf9bfd
Update neural_network.ipynb (#361)
Dragon-Yu May 16, 2020
e7353b7
output layer aactivation, add fc2 in call (#358)
kilarinikhil May 16, 2020
922833a
make TensorFlow 2 examples compatible with Python 3 (#339)
steinsag May 16, 2020
3a767b1
update docs (#367)
aymericdamien May 16, 2020
6d96494
Modify tf2 linear regression loss function (#371)
HosseinSheikhi May 20, 2020
a8ee3d2
Modify linear regression loss function (#373)
HosseinSheikhi May 27, 2020
4ac5751
fix links in README of TensorFlow_v1 (#374)
ZQX323 Jun 2, 2020
754c331
Fix links
aymericdamien Jun 2, 2020
0d03275
Update README.md
aymericdamien Jun 4, 2020
86fc318
add GBDT example (#379)
aymericdamien Jul 15, 2020
ab1b58b
Add tensorboard example (#381)
aymericdamien Jul 26, 2020
e3414d6
fix ml intro
aymericdamien Jul 26, 2020
a1516d2
fix ml intro
aymericdamien Jul 26, 2020
6b11799
Fix ML intro notebook (#382)
aymericdamien Jul 26, 2020
fedf9e8
Update bidirectional_rnn.ipynb (#380)
Jul 26, 2020
26c4c70
MultiGPU Training Example (#387)
aymericdamien Sep 19, 2020
c4185fe
Merge branch 'master' of github.com:aymericdamien/TensorFlow-Examples
aymericdamien Sep 19, 2020
35de963
fix multigpu typo
aymericdamien Sep 19, 2020
fe8b812
gengxi (#392)
ShanksAndSS Nov 30, 2020
d85fb5c
Update README.md
aymericdamien Dec 5, 2020
29df154
Updated run_optimization function and tested with Python3.8 (#393)
snandasena Dec 28, 2020
6dcbe14
Update dead monkeylearn blog link (#403)
AE1020 Oct 23, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
133 changes: 93 additions & 40 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/3_NeuralNetworks/dcgan.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def discriminator(x, reuse=False):
# Build Generator Network
gen_sample = generator(noise_input)

# Build 2 Discriminator Networks (one from noise input, one from generated samples)
# Build 2 Discriminator Networks (one from real image input, one from generated samples)
disc_real = discriminator(real_image_input)
disc_fake = discriminator(gen_sample, reuse=True)
disc_concat = tf.concat([disc_real, disc_fake], axis=0)
Expand Down Expand Up @@ -135,7 +135,7 @@ def discriminator(x, reuse=False):
z = np.random.uniform(-1., 1., size=[batch_size, noise_dim])

# Prepare Targets (Real image: 1, Fake image: 0)
# The first half of data fed to the generator are real images,
# The first half of data fed to the discriminator are real images,
# the other half are fake images (coming from the generator).
batch_disc_y = np.concatenate(
[np.ones([batch_size]), np.zeros([batch_size])], axis=0)
Expand Down
5 changes: 5 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Deprecated - Please Read

Due to TensorFlow radically changing their API in v2, the examples index have been split between [v1](../tensorflow_v1) and [v2](../tensorflow_v2).

The following examples are the original TF v1 examples, and will be deprecated entirely in favor of [tensorflow_v1](../tensorflow_v1) directory in a future release.
4 changes: 2 additions & 2 deletions input_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def num_examples(self):
def epochs_completed(self):
return self._epochs_completed
def next_batch(self, batch_size, fake_data=False):
"""Return the next `batch_size` examples from this data set."""
"""Return the next `batch_size`examples from this data set."""
if fake_data:
fake_image = [1.0 for _ in xrange(784)]
fake_label = 0
Expand Down Expand Up @@ -141,4 +141,4 @@ class DataSets(object):
data_sets.train = DataSet(train_images, train_labels)
data_sets.validation = DataSet(validation_images, validation_labels)
data_sets.test = DataSet(test_images, test_labels)
return data_sets
return data_sets
2 changes: 1 addition & 1 deletion notebooks/3_NeuralNetworks/bidirectional_rnn.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"<img src=\"https://ai2-s2-public.s3.amazonaws.com/figures/2016-11-08/191dd7df9cb91ac22f56ed0dfa4a5651e8767a51/1-Figure2-1.png\" alt=\"nn\" style=\"width: 600px;\"/>\n",
"\n",
"References:\n",
"- [Long Short Term Memory](http://deeplearning.cs.cmu.edu/pdfs/Hochreiter97_lstm.pdf), Sepp Hochreiter & Jurgen Schmidhuber, Neural Computation 9(8): 1735-1780, 1997.\n",
"- [Long Short Term Memory](https://www.researchgate.net/profile/Sepp_Hochreiter/publication/13853244_Long_Short-term_Memory/links/5700e75608aea6b7746a0624/Long-Short-term-Memory.pdf), Sepp Hochreiter & Jurgen Schmidhuber, Neural Computation 9(8): 1735-1780, 1997.\n",
"\n",
"## MNIST Dataset Overview\n",
"\n",
Expand Down
418 changes: 418 additions & 0 deletions notebooks/5_DataManagement/image_transformation.ipynb

Large diffs are not rendered by default.