What means mean and stddev in keras/tensorflow
up vote
0
down vote
favorite
in below part of code what means mean and stddev ?
I know the seed is put to 1 so if you generate random values those are always the same. But don't know about mean and stddev?
I know the seed is put on 1 so you should have always the same values generated
with tf.Session() as test:
tf.set_random_seed(1)
y_true = (None, None, None)
y_pred = (tf.random_normal([3, 128], mean=6, stddev=0.1, seed = 1),
tf.random_normal([3, 128], mean=1, stddev=1, seed = 1),
tf.random_normal([3, 128], mean=3, stddev=4, seed = 1))
loss = triplet_loss(y_true, y_pred)
print("loss = " + str(loss.eval()))
tensorflow keras conv-neural-network
add a comment |
up vote
0
down vote
favorite
in below part of code what means mean and stddev ?
I know the seed is put to 1 so if you generate random values those are always the same. But don't know about mean and stddev?
I know the seed is put on 1 so you should have always the same values generated
with tf.Session() as test:
tf.set_random_seed(1)
y_true = (None, None, None)
y_pred = (tf.random_normal([3, 128], mean=6, stddev=0.1, seed = 1),
tf.random_normal([3, 128], mean=1, stddev=1, seed = 1),
tf.random_normal([3, 128], mean=3, stddev=4, seed = 1))
loss = triplet_loss(y_true, y_pred)
print("loss = " + str(loss.eval()))
tensorflow keras conv-neural-network
they are the parameters of the normal distribution from which you are sampling
– Russ Hyde
Nov 8 at 10:45
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
in below part of code what means mean and stddev ?
I know the seed is put to 1 so if you generate random values those are always the same. But don't know about mean and stddev?
I know the seed is put on 1 so you should have always the same values generated
with tf.Session() as test:
tf.set_random_seed(1)
y_true = (None, None, None)
y_pred = (tf.random_normal([3, 128], mean=6, stddev=0.1, seed = 1),
tf.random_normal([3, 128], mean=1, stddev=1, seed = 1),
tf.random_normal([3, 128], mean=3, stddev=4, seed = 1))
loss = triplet_loss(y_true, y_pred)
print("loss = " + str(loss.eval()))
tensorflow keras conv-neural-network
in below part of code what means mean and stddev ?
I know the seed is put to 1 so if you generate random values those are always the same. But don't know about mean and stddev?
I know the seed is put on 1 so you should have always the same values generated
with tf.Session() as test:
tf.set_random_seed(1)
y_true = (None, None, None)
y_pred = (tf.random_normal([3, 128], mean=6, stddev=0.1, seed = 1),
tf.random_normal([3, 128], mean=1, stddev=1, seed = 1),
tf.random_normal([3, 128], mean=3, stddev=4, seed = 1))
loss = triplet_loss(y_true, y_pred)
print("loss = " + str(loss.eval()))
tensorflow keras conv-neural-network
tensorflow keras conv-neural-network
asked Nov 8 at 10:41
Ilse
217
217
they are the parameters of the normal distribution from which you are sampling
– Russ Hyde
Nov 8 at 10:45
add a comment |
they are the parameters of the normal distribution from which you are sampling
– Russ Hyde
Nov 8 at 10:45
they are the parameters of the normal distribution from which you are sampling
– Russ Hyde
Nov 8 at 10:45
they are the parameters of the normal distribution from which you are sampling
– Russ Hyde
Nov 8 at 10:45
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
Mean is the average of the numbers which will be generated by tf.random_normal(). Similarly, stddev stands for Standard deviation of the data.
- if mean=1.2 and stddev=3.4 then, the number matrix generated by tf.random_normal() will have mean and standard deviation as 1.2 and 3.4 respectively.
I'm I right if I say that the command y_pred = (tf.random_normal([3, 128], mean=6, stddev=0.1, seed = 1) will produce a set of numbers where the mean is 6 and stddev = 0.1 ?
– Ilse
Nov 8 at 11:46
Yes you are absolutely right.
– Shubham Panchal
Nov 8 at 11:53
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
Mean is the average of the numbers which will be generated by tf.random_normal(). Similarly, stddev stands for Standard deviation of the data.
- if mean=1.2 and stddev=3.4 then, the number matrix generated by tf.random_normal() will have mean and standard deviation as 1.2 and 3.4 respectively.
I'm I right if I say that the command y_pred = (tf.random_normal([3, 128], mean=6, stddev=0.1, seed = 1) will produce a set of numbers where the mean is 6 and stddev = 0.1 ?
– Ilse
Nov 8 at 11:46
Yes you are absolutely right.
– Shubham Panchal
Nov 8 at 11:53
add a comment |
up vote
0
down vote
accepted
Mean is the average of the numbers which will be generated by tf.random_normal(). Similarly, stddev stands for Standard deviation of the data.
- if mean=1.2 and stddev=3.4 then, the number matrix generated by tf.random_normal() will have mean and standard deviation as 1.2 and 3.4 respectively.
I'm I right if I say that the command y_pred = (tf.random_normal([3, 128], mean=6, stddev=0.1, seed = 1) will produce a set of numbers where the mean is 6 and stddev = 0.1 ?
– Ilse
Nov 8 at 11:46
Yes you are absolutely right.
– Shubham Panchal
Nov 8 at 11:53
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
Mean is the average of the numbers which will be generated by tf.random_normal(). Similarly, stddev stands for Standard deviation of the data.
- if mean=1.2 and stddev=3.4 then, the number matrix generated by tf.random_normal() will have mean and standard deviation as 1.2 and 3.4 respectively.
Mean is the average of the numbers which will be generated by tf.random_normal(). Similarly, stddev stands for Standard deviation of the data.
- if mean=1.2 and stddev=3.4 then, the number matrix generated by tf.random_normal() will have mean and standard deviation as 1.2 and 3.4 respectively.
answered Nov 8 at 11:27
Shubham Panchal
12218
12218
I'm I right if I say that the command y_pred = (tf.random_normal([3, 128], mean=6, stddev=0.1, seed = 1) will produce a set of numbers where the mean is 6 and stddev = 0.1 ?
– Ilse
Nov 8 at 11:46
Yes you are absolutely right.
– Shubham Panchal
Nov 8 at 11:53
add a comment |
I'm I right if I say that the command y_pred = (tf.random_normal([3, 128], mean=6, stddev=0.1, seed = 1) will produce a set of numbers where the mean is 6 and stddev = 0.1 ?
– Ilse
Nov 8 at 11:46
Yes you are absolutely right.
– Shubham Panchal
Nov 8 at 11:53
I'm I right if I say that the command y_pred = (tf.random_normal([3, 128], mean=6, stddev=0.1, seed = 1) will produce a set of numbers where the mean is 6 and stddev = 0.1 ?
– Ilse
Nov 8 at 11:46
I'm I right if I say that the command y_pred = (tf.random_normal([3, 128], mean=6, stddev=0.1, seed = 1) will produce a set of numbers where the mean is 6 and stddev = 0.1 ?
– Ilse
Nov 8 at 11:46
Yes you are absolutely right.
– Shubham Panchal
Nov 8 at 11:53
Yes you are absolutely right.
– Shubham Panchal
Nov 8 at 11:53
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53206037%2fwhat-means-mean-and-stddev-in-keras-tensorflow%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
they are the parameters of the normal distribution from which you are sampling
– Russ Hyde
Nov 8 at 10:45