You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Joern Kottmann (JIRA)" <ji...@apache.org> on 2016/11/08 11:58:58 UTC

[jira] [Updated] (OPENNLP-759) Speed up GIS training by saving Executor in the GISTrainer

     [ https://issues.apache.org/jira/browse/OPENNLP-759?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joern Kottmann updated OPENNLP-759:
-----------------------------------
    Fix Version/s: 1.7.0

> Speed up GIS training by saving Executor in the GISTrainer
> ----------------------------------------------------------
>
>                 Key: OPENNLP-759
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-759
>             Project: OpenNLP
>          Issue Type: Improvement
>          Components: Machine Learning
>    Affects Versions: maxent-3.0.3
>            Reporter: Daniel Russ
>            Assignee: Joern Kottmann
>            Priority: Minor
>              Labels: Patch
>             Fix For: 1.7.0
>
>         Attachments: GISTrainer.patch
>
>
> In GISTrainer.nextIteration(double) an ExecutorService is created and shutdown.  I don't see a reason to create a ExecutorService for each iteration.  
> If you create the ExecutorService in the TrainModels(int, dataindexer, Prior, int, int) method you can save it as a field in GISTrainer or pass it as an argument to findParameters(int, double).
> To test it out, I made a MyGIS and MyGISTrainer classes with the fixes.  There was a 5% speedup with 100 my dataset and 100 iterations of GIS.
> I would be happy to share the code with you.  (I can not share my data though, sorry data-use agreements).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)