Giter VIP home page Giter VIP logo

Comments (9)

trevorstephens avatar trevorstephens commented on June 16, 2024

No, that is not normal. Can you give me more details?

  • What does "take forever" mean?
  • What version of gplearn are you running?
  • Are you running all the commands in the notebook sequentially without modification?

from gplearn.

trevorstephens avatar trevorstephens commented on June 16, 2024

Just released the new version, can you try again with the latest? Let me know more about your error/environment/etc?

from gplearn.

hubokitty avatar hubokitty commented on June 16, 2024

Trevor, thanks a lot for your response. Somehow I didn't receive any notifications from Git for your replies. I will download the latest version and give it a try. I am running Python3.4 on Windows 7 machine with 8 cores. Hope this helps.

from gplearn.

hubokitty avatar hubokitty commented on June 16, 2024

Trevor, I tried the latest version and still have the same issue. Right now I use the default function set for now. I do have an extra question: I know gp._programs stores the symbolic expressions for each generation. Assume that I set population_size = 800, generations = 40, n_components = 20, and want to output the expressions of final results, shall I output gp._programs[39][0:19]?

Thank you so much for your patience.

from gplearn.

hubokitty avatar hubokitty commented on June 16, 2024

Update: we tested the same code on Linux environment and the same user-defined function takes No time to run. The same code ran for days on Windows without generating even the first iteration. There's no error information either. It's indeed related to the environment.

from gplearn.

trevorstephens avatar trevorstephens commented on June 16, 2024

Thanks for the follow up @hubokitty ... I'll attempt to set up Appveyor to run tests on Windows to see if it can replicate the problem.

Are you using a distribution like anaconda to install python and the numpy stack?

from gplearn.

trevorstephens avatar trevorstephens commented on June 16, 2024

SymbolicTransformer stores the final solutions in the attribute _best_programs. _programs contains all of the generations but it does not sort them so the [0:19] in your code will just get a random selection of the final generation.

from gplearn.

trevorstephens avatar trevorstephens commented on June 16, 2024

@hubokitty ... Tests are passing on Windows. I added a new test in #70 that performs the example in the docs with the logical function. It completes just fine on AppVeyor which runs on Anaconda in Windows.

The only difference I see that might be an issue for you is that that example uses the n_jobs attribute which invokes the joblib library. Can you try to run some other tests using joblib and see if that is the issue. If that is the case then the problem lies upstream of this package.

from gplearn.

hubokitty avatar hubokitty commented on June 16, 2024

Trevor, thanks a lot for your reply. I saw you opened another issue related to this. I look forward to the solution.

from gplearn.

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.