Skip to content

how to assign values to parameters? #25

Description

@wantaoliu
import tensorflow as tf
import matplotlib.pyplot as plt
import numpy as np

tf.set_random_seed(1)
np.random.seed(1)


n_data = np.ones((100, 2))

x0 = np.random.normal(2*n_data, 1)      # class0 x shape=(100, 2)

By referring to the documentation, we can know the defination:
def normal(loc=0.0, scale=1.0, size=None):

but how to understand"np.random.normal(2*n_data, 1)",please

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions