1 / 10

The Universal Java Matrix Package (UJMP)

The Universal Java Matrix Package (UJMP). Everything is a Matrix!. ICML/MLOSS, Haifa, 2010-06-25. Outline Introduction Comparison of Matrix Libraries for Java Concepts for a Next-Generation Matrix Library Integration of Other Matrix Libraries Calculation Methods Matrix Annotation

meena
Download Presentation

The Universal Java Matrix Package (UJMP)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Holger Arndt: The Universal Java Matrix Package The Universal Java Matrix Package (UJMP) Everything is a Matrix! ICML/MLOSS, Haifa, 2010-06-25 Outline • Introduction • Comparison of Matrix Libraries for Java • Concepts for a Next-Generation Matrix Library • Integration of Other Matrix Libraries • Calculation Methods • Matrix Annotation • Automatic Entry Type Conversion • Demo • Summary and Discussion Holger Arndt Technical University of Munich Department of Computer Science Garching, Germany mail@holger-arndt.com http://www.holger-arndt.com Find out more at: http://www.ujmp.org

  2. Holger Arndt: The Universal Java Matrix Package But: No direct support for matrix algebra in JDK Matlab or Octave cannot always be used Other libraries have limitations: JAMA, Colt, MTJ, commons-math Introduction Why do we need yet another Java matrix library? • Matrix computations essential in various fields of computer science (machine learning, data mining, etc.) • Collaborative networks require large sparse adjacency matrices • Increasing amount of data Online Marketing Bio-Medical Data Analysis Collaborative Networks 2 0 1 1 1 0 1 0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 0 1 0 1 3 4 5

  3. Holger Arndt: The Universal Java Matrix Package Comparison of Matrix Libraries for Java No single Java matrix library can fulfill all needs! We need a „universal“ matrix package...

  4. Holger Arndt: The Universal Java Matrix Package Concepts for a Next-Generation Matrix Library Abstract Matrix Matrix Implementations Data in Memory double[][] int[][] String[][] Data on Disk CSV, TXT Matrix Libraries Database Tables JAMA Custom Function Implementations ojAlgo Java Libraries JDBC Default Function Implementations The actual implementation of a matrix becomes secondary! • Matrix Interfacemulti-dimensional, dense/sparse, 2^63 rows/columns, various cell types size get/set cell plus, minus multiply, divide transpose min, max, mean variance, std sin, cos, tan select rows/cols get submatrix import/export visualization Function Declarations (list not complete)

  5. Holger Arndt: The Universal Java Matrix Package Integration of Other Matrix Libraries Switching to faster libraries for better performance. Example: SVD using JAMA switching to ojAlgo

  6. Holger Arndt: The Universal Java Matrix Package Calculation Methods There are three different „modes“ to perform a calculation. Calculation Matrix original: Matrix Matrix Calculation copy: Matrix Calculation link:

  7. Holger Arndt: The Universal Java Matrix Package Matrix Annotation matrix label column labels axis label Report June 2009 product data in stock product id # of sales margin price [US$] label for row axis row1 row2 row3 row4 row5 row6 row7 row8 row9 row10 Data requires annotation to be valuable.

  8. Holger Arndt: The Universal Java Matrix Package Automatic Entry Type Conversion Not all matrices contain numerical data. Matrix imported from CSV getAsString(3,1) "This" "5.7" "1.2" "matrix" "1.9" getAsDouble(3,1) 1.2 "contains" "4.0" getAsInt(3,1) "Strings," "1.2" 1 "data" "9.1" getAsLong(3,1) 1l "must" "0.5" getAsBoolean(3,1) "be" "7.7" true "converted" "3.8" float, double, byte, char, short, int, long, boolean, Date, BigDecimal, BigInteger, String, Object, <Generic> Supported value types:

  9. Holger Arndt: The Universal Java Matrix Package Demo It is important to visualize data. additional visualization modules 2D overview editor Example Code: 20GB of data!

  10. Holger Arndt: The Universal Java Matrix Package Summary and Discussion The Universal Java Matrix Package: A novel and innovative matrix library for Java. Summary • Extendable architecture • Ready for large amounts of data • Integration of other libraries • Flexible calculation methods • Open Source LGPL • Online forum for Q&A Future Work: • Documentation • Developers wanted! Homepage: http://www.ujmp.org

More Related