Skip to content

Commit

Permalink
final tweaks to scripts, halfway run now!
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsochat@stanford.edu>
  • Loading branch information
vsoch committed Jan 4, 2021
1 parent ca94522 commit 9fe74b1
Show file tree
Hide file tree
Showing 21 changed files with 31 additions and 33 deletions.
2 changes: 0 additions & 2 deletions caliper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ analysis:
- tensorflow_v0.11/1_Introduction/helloworld.py
- tensorflow_v0.11/4_Utils/tensorboard_advanced.py
- tensorflow_v0.11/4_Utils/tensorboard_basic.py
- tensorflow_v0.11/4_Utils/save_restore_model.py
- tensorflow_v0.11/2_BasicModels/logistic_regression.py
- tensorflow_v0.11/2_BasicModels/linear_regression.py
- tensorflow_v0.11/2_BasicModels/nearest_neighbor.py
Expand All @@ -27,7 +26,6 @@ analysis:
- tensorflow_v1/1_Introduction/helloworld.py
- tensorflow_v1/4_Utils/tensorboard_advanced.py
- tensorflow_v1/4_Utils/tensorboard_basic.py
- tensorflow_v1/4_Utils/save_restore_model.py
- tensorflow_v1/5_DataManagement/build_an_image_dataset.py
- tensorflow_v1/5_DataManagement/tensorflow_dataset_api.py
- tensorflow_v1/2_BasicModels/random_forest.py
Expand Down
4 changes: 2 additions & 2 deletions tensorflow_v0.11/3_NeuralNetworks/autoencoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@

# Parameters
learning_rate = 0.01
training_epochs = 2
training_epochs = 1
batch_size = 256
display_step = 1
examples_to_show = 10
examples_to_show = 2


# Network Parameters
Expand Down
4 changes: 2 additions & 2 deletions tensorflow_v0.11/3_NeuralNetworks/bidirectional_rnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@

# Parameters
learning_rate = 0.001
training_iters = 100
training_iters = 10
batch_size = 128
display_step = 10
display_step = 1

# Network Parameters
n_input = 28 # MNIST data input (img shape: 28*28)
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_v0.11/3_NeuralNetworks/convolutional_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

# Parameters
learning_rate = 0.001
training_iters = 10
training_iters = 2
batch_size = 128
display_step = 10

Expand Down
4 changes: 2 additions & 2 deletions tensorflow_v0.11/3_NeuralNetworks/dynamic_rnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ def next(self, batch_size):

# Parameters
learning_rate = 0.01
training_iters = 100
training_iters = 10
batch_size = 128
display_step = 10
display_step = 1

# Network Parameters
seq_max_len = 20 # Sequence max length
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_v0.11/3_NeuralNetworks/multilayer_perceptron.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

# Parameters
learning_rate = 0.001
training_epochs = 2
training_epochs = 1
batch_size = 300
display_step = 1

Expand Down
4 changes: 2 additions & 2 deletions tensorflow_v0.11/3_NeuralNetworks/recurrent_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@

# Parameters
learning_rate = 0.001
training_iters = 100
training_iters = 10
batch_size = 256
display_step = 100
display_step = 1

# Network Parameters
n_input = 28 # MNIST data input (img shape: 28*28)
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_v0.11/4_Utils/tensorboard_advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
mnist = input_data.read_data_sets("/tmp/data/", one_hot=True)

learning_rate = 0.01
training_epochs = 2
training_epochs = 1
batch_size = 500
display_step = 1
logs_path = "/tmp/tensorflow_logs/example/"
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_v0.11/4_Utils/tensorboard_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

# Parameters
learning_rate = 0.01
training_epochs = 2
training_epochs = 1
batch_size = 300
display_epoch = 1
logs_path = "/tmp/tensorflow_logs/example/"
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_v1/2_BasicModels/kmeans.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
full_data_x = mnist.train.images

# Parameters
num_steps = 3 # Total steps to train
num_steps = 2 # Total steps to train
batch_size = 1024 # The number of samples per batch
k = 25 # The number of clusters
num_classes = 10 # The 10 digits
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_v1/2_BasicModels/random_forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
mnist = input_data.read_data_sets("/tmp/data/", one_hot=False)

# Parameters
num_steps = 100 # Total steps to train
num_steps = 10 # Total steps to train
batch_size = 1024 # The number of samples per batch
num_classes = 10 # The 10 digits
num_features = 784 # Each image is 28x28 pixels
Expand Down
6 changes: 3 additions & 3 deletions tensorflow_v1/2_BasicModels/word2vec.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
# Training Parameters
learning_rate = 0.1
batch_size = 128
num_steps = 1000
display_step = 100
eval_step = 2000
num_steps = 10
display_step = 1
eval_step = 1

# Evaluation Parameters
eval_words = ["five", "of", "going", "hardware", "american", "britain"]
Expand Down
4 changes: 2 additions & 2 deletions tensorflow_v1/3_NeuralNetworks/autoencoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@

# Training Parameters
learning_rate = 0.01
num_steps = 2 # reduced from 30000 to make faster
num_steps = 1 # reduced from 30000 to make faster
batch_size = 256

display_step = 1
examples_to_show = 10
examples_to_show = 2

# Network Parameters
num_hidden_1 = 256 # 1st layer num features
Expand Down
4 changes: 2 additions & 2 deletions tensorflow_v1/3_NeuralNetworks/bidirectional_rnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@

# Training Parameters
learning_rate = 0.001
training_steps = 100
training_steps = 10
batch_size = 128
display_step = 10
display_step = 1

# Network Parameters
num_input = 28 # MNIST data input (img shape: 28*28)
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_v1/3_NeuralNetworks/convolutional_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

# Training Parameters
learning_rate = 0.001
num_steps = 10
num_steps = 2
batch_size = 128

# Network Parameters
Expand Down
4 changes: 2 additions & 2 deletions tensorflow_v1/3_NeuralNetworks/dynamic_rnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ def next(self, batch_size):

# Parameters
learning_rate = 0.01
training_steps = 100
training_steps = 10
batch_size = 128
display_step = 10
display_step = 1

# Network Parameters
seq_max_len = 20 # Sequence max length
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_v1/3_NeuralNetworks/multilayer_perceptron.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

# Parameters
learning_rate = 0.001
training_epochs = 2
training_epochs = 1
batch_size = 300
display_step = 1

Expand Down
4 changes: 2 additions & 2 deletions tensorflow_v1/3_NeuralNetworks/recurrent_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@

# Training Parameters
learning_rate = 0.001
training_steps = 100
training_steps = 10
batch_size = 256
display_step = 200
display_step = 1


# Network Parameters
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_v1/4_Utils/tensorboard_advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

# Parameters
learning_rate = 0.01
training_epochs = 2
training_epochs = 1
batch_size = 500
display_step = 1
logs_path = "/tmp/tensorflow_logs/example/"
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_v1/4_Utils/tensorboard_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

# Parameters
learning_rate = 0.01
training_epochs = 2
training_epochs = 1
batch_size = 300
display_epoch = 1
logs_path = "/tmp/tensorflow_logs/example/"
Expand Down
4 changes: 2 additions & 2 deletions tensorflow_v1/5_DataManagement/tensorflow_dataset_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@

# Parameters
learning_rate = 0.001
num_steps = 100
num_steps = 10
batch_size = 128
display_step = 100
display_step = 10

# Network Parameters
n_input = 784 # MNIST data input (img shape: 28*28)
Expand Down

0 comments on commit 9fe74b1

Please sign in to comment.