src/main/java/com/feedzai/fos/impl/weka/utils/WekaThreadSafeScorerPool.java
@Override
    public double[] score(Object[] scorable) throws FOSException {
        /* the pool can change while this is processing (reload) so assign a local variable */
        final ObjectPool<Classifier> localPool = pool;

        Classifier classifier = null;
        try {
            classifier = localPool.borrowObject();

            return WekaUtils.score(classifier, scorable, instanceSetters, instances, attributes);
        } catch (Exception e) {
            throw new FOSException(e);
        } finally {
            returnObject(localPool, classifier);
        }
    }
@Override
    public double[] score(Object[] scorable) throws FOSException {
        /* the pool can change while this is processing (reload) so assign a local variable */
        final ObjectPool<Classifier> localPool = pool;

        Classifier classifier = null;
        try {
            classifier = localPool.borrowObject();

            return WekaUtils.score(classifier, scorable, instanceSetters, instances, attributes);
        } catch (Exception e) {
            throw new FOSException(e);
        } finally {
            returnObject(localPool, classifier);
        }
    }
@ Override public double [ ] score ( Object [ ] scorable ) throws FOSException { /* the pool can change while this is processing (reload) so assign a local variable */ final ObjectPool < Classifier > localPool = pool ; Classifier classifier = null ; try { classifier = localPool . borrowObject ( ) ; return WekaUtils . score ( classifier , scorable , instanceSetters , instances , attributes ) ; } catch ( Exception e ) { throw new FOSException ( e ) ; } finally { returnObject ( localPool , classifier ) ; } }
The the given <code>Object[]</code> with this scorer (thread safe!).
<p/>
The score in bound by the configuration <code>minScore</code> and <code>maxScore</code>.


@param scorable the scorable data to score
@return the score value already bound the configuration range
@throws FOSException when classification was not possible
The the given <code > Object [] < / code > with this scorer ( thread safe! ) . <p / > The score in bound by the configuration <code > minScore< / code > and <code > maxScore< / code > .