Giter Site home page Giter Site logo

Comments (3)

dilabbiog avatar dilabbiog commented on July 27, 2024

May also be a memory issue. For example, the following works:
load('badtrain.mat');
tic; trn1 = train(b); toc;
clear all;
load('badtrain.mat');
tic; trn2 = train(b); toc;

from braidlab.

jeanluct avatar jeanluct commented on July 27, 2024

I checked that this bug is also present on Linux with CLang and GCC compilers. Interesting! I wonder what persists between calls. I would have thought that even any global variables used by trains would be reset. Not totally clear if this is a trains or a Matlab issue.

from braidlab.

jeanluct avatar jeanluct commented on July 27, 2024

I pushed a proposed fix to the develop branch. It's because of the crazy, surprising fact that Matlab remembers globals in a C++ file. Hence, the braid you were trying was decreasing tolerance, then the next function call started with a tolerance that was too low. Or something. But basically you're dealing with braids that are close to causing trains to hang.

from braidlab.

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.