Re: InacessibleObjectException
Michael Hall <[email protected]> Thu, 24 Aug 2023 18:35:13 -0500
| Newsgroups | gmane.comp.ai.weka |
|---|---|
| Message-ID | <[email protected]> |
> On Aug 24, 2023, at 6:33 PM, Peter Reutemann <[email protected]> wrote: > >> 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. > > It wasn't about efficiency (or whether it makes sense), but about > trying to replicate the exception. And for doing that, I needed to use > the exact same code. > > Cheers, Peter > -- For that reason it makes sense. Otherwise it doesn’t. _______________________________________________ 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