Re: Issues accessing class attributes of external package distance function

Martin Trat <[email protected]> Fri, 15 Jul 2022 07:45:27 +0000
Newsgroups gmane.comp.ai.weka
Message-ID <[email protected]>
Hello Michael,

 

my described approach using the getMatricesDilca method works, but doing that or subclassing from java would still mean I would have to instruct the user, aiming at reproducing my research, to build a new jar and overwrite the existing one, right? I want to avoid this specifically and enable the user to use official-package-extended Weka (without having to use java-related build tools). 

 

Best

Martin

 

Von: Michael Hall <[email protected]> 
Gesendet: Freitag, 15. Juli 2022 09:32
An: Weka machine learning workbench list. <[email protected]>
Betreff: [Wekalist] Re: Issues accessing class attributes of external package distance function

 

 





On Jul 14, 2022, at 7:47 AM, Martin Trat <[email protected] <mailto:[email protected]> > wrote:

 

public class DilcaDistance implements DistanceFunction, Serializable{

 

    // ...

    

    protected Vector<double[][]> matricesDilca;

 

 

From java make a subclass with

 

public Vector<double[][]> matricesDilca;

 

Maybe call it something like AccessibleDilcaDistance

 

I’ve done similar with Weka before

 

Although I’m not exactly following your objections to the public Object[] getMatricesDilca() method.

I think you could in your subclass change that to return the actual Vector<double[][]> type if that is the problem?

My understanding of Python isn’t good enough to know how you would do that from there.

_______________________________________________
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
smime.p7s (application/pkcs7-signature, 6.2 KB) - not displayed