Re: InacessibleObjectException
Peter Reutemann <[email protected]> Fri, 25 Aug 2023 11:33:14 +1200
| Newsgroups | gmane.comp.ai.weka |
|---|---|
| Message-ID | <CAHoQ12LMQjaTyGZf3sx92URdyMrP=peHZb3UViaQudV61iwYMA@mail.gmail.com> |
> 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 -- Peter Reutemann Dept. of Computer Science University of Waikato, Hamilton, NZ Mobile +64 22 190 2375 https://www.cs.waikato.ac.nz/~fracpete/ http://www.data-mining.co.nz/ _______________________________________________ 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