apparatus icon indicating copy to clipboard operation
apparatus copied to clipboard

logistic_regression.js - epsilon

Open PhilippKrone opened this issue 9 years ago • 2 comments

Hi,

I'm using natural (and thus apparatus) to perform some classification. I'm using the logistic regression classifier for various reasons. I have the issue when learning with about 500 datasets (each set consisting out of approx. 10 words), it's taking quite some time. It'd be nice to be able to set the epsilon

            if(last - current < 0.0001)
                break;
            }

dynamically when using apparatus instead of having to change it in the source code. Is there any possibility to set all those numbers via a config when calling the classifier?

Regards, Philipp Krone

PhilippKrone avatar May 18 '15 12:05 PhilippKrone

+1 as well as learningRate and learning rate "division step"

zzzwx avatar Nov 01 '16 13:11 zzzwx

Why don't you write a PR for that? But if you care about performance, some changes might affect speed. You might want to test both options (with a variable vs. with a constant).

DrDub avatar Nov 03 '16 17:11 DrDub