[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wekalist
Subject:    [Wekalist] Re: Error while serializing PrincipalComponents
From:       Eibe Frank <eibe () waikato ! ac ! nz>
Date:       2020-05-16 5:51:58
Message-ID: CAA20C36-7C22-41A3-8138-4969A694E387 () waikato ! ac ! nz
[Download RAW message or body]

Is it possible that this is because you are not using the modified mtj.jar that is \
used in WEKA? In that version of mtj.jar, we modified Matrix.java to extend \
Serializable (and that is the only change).

Cheers,
Eibe

> On 15/05/2020, at 8:00 PM, Tim Lorsbach <lorsbach@envipath.com> wrote:
> 
> Hi,
> 
> in one of my current projects I have to store a \
> weka.filters.unsupervised.attribute.PrincipalComponents object on disk. 
> As it implements the Filter interface, which itself implements the Serializable \
> interface, the PrincipalComponents object should be serializable. 
> However, it throws a error due to the member "UpperSymmDenseMatrix m_Correlation" \
> not being serializable. 
> This field is only used in within the setup step and can be calculated if the setup \
> method is called again. 
> Attached you'll find a diff file making the member transient and recalculate \
> m_Correlation if required. 
> Best regards,
> 
> Tim
> 
> <PrincipalComponents.diff>_______________________________________________
> Wekalist mailing list -- wekalist@list.waikato.ac.nz
> Send posts to wekalist@list.waikato.ac.nz
> To unsubscribe send an email to wekalist-leave@list.waikato.ac.nz
> 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
_______________________________________________
Wekalist mailing list -- wekalist@list.waikato.ac.nz
Send posts to wekalist@list.waikato.ac.nz
To unsubscribe send an email to wekalist-leave@list.waikato.ac.nz
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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic