Git Product home page Git Product logo

Comments (3)

keiffster avatar keiffster commented on July 19, 2024

Hey, its actually something I'm working on, on a branch. It seems that I am able to pickle the entire aiml parse tree and then reload it in a fraction of the time. Just running some tests now and should be uploading in a day or so.

Also with this branch, I've added some further speed improvements which reduce individual aiml file loading by a factor of 3-5 so that will help speed up the binary brain too

from program-y.

keiffster avatar keiffster commented on July 19, 2024

Ok, I've pushed a new release to Master which contains the code for saving and reloading a brain to a binary file, I'm seeing about a 4x times speed increase in loading times after the initial save.

Documentation to follow on the wiki, but to get a head start the 3 configuration items that control it are

brain:
save_binary: false <---- Save a binary file to the filename below
load_binary: false <---- Load a binary file, previously saved
binary_filename: /tmp/y-bot.brain <---- Name of the binary file

So you first set save to true load to false, run your bot and you will have a binary version of the brain
Then set save to false and load to true and every subsequent run will load the binary version of the file

from program-y.

maxjread avatar maxjread commented on July 19, 2024

Brilliant, thanks.

from program-y.

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.