Skip to content

In KMeans intro, why do we use np.random.seed(1) before fitting the model with X target? #1

Description

@HeyItWorked

attempt: from StackoverFlow, i know that the function makes random numbers predictable, having np.random.rand() after calling np.random.seed() will generatate the same set of random number, is that not the case here or which function uses randomization from numpy that requires seed setting?
Screenshot 2022-11-20 at 1 50 09 PM

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions