Hello!

I'm trying to map three-dimensional array from PostgreSQL with Hibernate. A need to store weights of Multi layer neural network. How should I do it better?

All source I've met was too old. It seems to me that there are more convenient ways to cope with it.

Thank you!!!

UPD: I need Double[][][]

share|improve this question
    
What model do you want to represent in the DB exactly? Multi-dimensional array is a loose concept, i.e. Java has an array-of-arrays concept, while PostgreSQL's array must be "rectangular". -- Hibernate does not support array types out-of-the-box. – pozs 21 hours ago
    
@pozs I need Double[][][] – Vlad Yurevich 21 hours ago
    
we'll need slightly more information. i.e. will it always be rectangular, or do you use that fact that in Java, you have array-of-arrays? Some example data (a few rows) and how you are going to use the elements' value, etc. – pozs 21 hours ago
    
this could be useful , stackoverflow.com/questions/1647583/… – parlad neupane 20 hours ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.