Re: InacessibleObjectException

Michael Hall <[email protected]> Thu, 24 Aug 2023 18:23:00 -0500
Newsgroups gmane.comp.ai.weka
Message-ID <[email protected]>

> On Aug 24, 2023, at 6:10 PM, Peter Reutemann <[email protected]> wrote:
> 
>  for (int i = 0; i < data.numAttributes(); i++) {
>      GainRatioAttributeEval gainRatioAttributeEval = new
> GainRatioAttributeEval();
>      gainRatioAttributeEval.buildEvaluator(data);
>      gainRatios[i] = gainRatioAttributeEval.evaluateAttribute(i);
>    }

Again doing the buildEvaluator(data)
Every time through the loop seems _very_ inefficient. 
I see no reason it can’t be done once before the loop.

_______________________________________________
Wekalist mailing list -- [email protected]
Send posts to [email protected]
To unsubscribe send an email to [email protected]
To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html