Skip to content

self.y? #12

@YbjFJ

Description

@YbjFJ

when run the function "setup_dataset":
i have a question:
self.y = np.array([0 if i < int(self.ecount/2) else 1 for i in range(self.ecount)]+[2](self.ecount2))
why we do that?Why do we need to stretch the length to three times the original?just like [0,0,1,1,2,2,2,2,2,2,2,2]
I am a second-year undergraduate student. I'm a bit slow-witted. If you are willing to answer my questions, I will be very happy. Finally, thank you for the code.

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