Re: Issues accessing class attributes of external package distance function

Michael Hall <[email protected]> Tue, 19 Jul 2022 22:15:17 -0500
Newsgroups gmane.comp.ai.weka
Message-ID <[email protected]>
...
Fine on all prior to here.

> 
> 
>> If the intention isn’t to include this in a Weka java based package I’m still unclear on how it is meant to be provided. Again possibly I don’t understand well enough how the Python works.
> 
> Not quite sure what you mean. The DilcaDistance class (which is
> already available as a Weka package) has a protected field. OP wants
> to access this field directly and turn the stored matrices into numpy
> arrays with no precision loss which currently happens when parsing the
> toString() output of said class.

How it is intended to use the earlier python without somehow adding them to a package is what isn’t clear to me. 
A concern for how the research was going to be made available was indicated by the OP.
That this is somehow possible in a python way without a package or java involved is what I’m not quite understanding.
> 
> Accessing non-public members/methods is not a very common use-case,
> but sometimes required when you need internally computed/held data
> structures for further processing.
> Over the years, I've had to sub-class plenty of classes to get access
> to such data structures. Annoying, but not really a biggie when you're
> already programming in Java.
> 
Yes. As I mentioned I’ve done it before. Not plenty of times but once or twice.
Really pretty simple and would work well I’d think if a package were provided. Without the need for a cross-language hack.
But I tend to a java bias anyhow.


_______________________________________________
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