GithubHelp home page GithubHelp logo

Comments (1)

Sentdex avatar Sentdex commented on July 24, 2024

Yeah, I came across this, I honestly have no idea what is happening there, makes no sense to me why that'd be happening. The way I "solved" it was to put the data into a pandas dataframe, and shuffle that. Doing that gives the results one would expect.

A few models were trained by me on the old method and it still appears to work, and I looked into the data itself and it appeared correct, but the behavior of the counts still baffles me.

Here's the code I have been using to do the shuffling:

        train_data = np.load('training_data-{}.npy'.format(i))
        df = pd.DataFrame(train_data)
        df = df.iloc[np.random.permutation(len(df))]

I will soon be updating the repo as well with these changes.

from pygta5.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.