Skip to content

Commit

Permalink
Set seed in FeedForwardNet example
Browse files Browse the repository at this point in the history
  • Loading branch information
wilrich-msft committed Sep 8, 2016
1 parent 44a998b commit 0101e91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bindings/python/examples/NumpyInterop/FeedForwardNet.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
sys.path.append(os.path.join(abs_path, "..", ".."))
from examples.common.nn import fully_connected_classifier_net, print_training_progress

# make sure we get always the same "randomness"
np.random.seed(0)

def generate_random_data(sample_size, feature_dim, num_classes):
# Create synthetic data using NumPy.
Y = np.random.randint(size=(sample_size, 1), low=0, high=num_classes)
Expand Down

0 comments on commit 0101e91

Please sign in to comment.