Dear Wiki user, You have subscribed to a wiki page or wiki category on "Lucene-hadoop Wiki" for change notification. The following page has been changed by udanax: http://wiki.apache.org/lucene-hadoop/Hbase/HbaseShell/ShellPlans ------------------------------------------------------------------------------ [[TableOfContents(4)]] = Hbase Shell Commands Plans = + + ||'''Command''' ||'''Explanation''' || + ||Matrix ||<99%>'''Matrix''' command constructs the configuration of the logic matrix.[[BR]]'''Options''' : features not yet. [[BR]][[BR]]~-''Matrix(table_name, columnfamily_name[, option]);''-~ || === Sparse Linear Algebra === * Proof of concept implementation for hbase-based Matrix Computing * https://issues.apache.org/jira/browse/HADOOP-1655 (Click the "Vote it" button!!) - work in progress + * Load Matrix + {{{ + //Set up the matrix M from mapped matrix in hbase. + Hbase > M = Matrix('m_table','cf_1'); + + M ([1, 2], + [3, 4]) + }}} + + + + * Matrix Addition + * ~-'''''C = A + B = (a,,ij,, + b,,ij,,)'''''-~ + + {{{ + //Set up the matrix A, B from mapped matrix in hbase. + + Hbase > A = Matrix('m_table','cf_1'); + Hbase > B = Matrix('m_table','cf_2'); + Hbase > C = A + B; + }}} + + + + * The product C of two matrices A and B + * ~-'''''C,,ij,, = ΣA,,ik,,B,,kj,, (1 ≤ i ≤ m , 1 ≤ j ≤n)'''''-~ + + {{{ + //Set up the matrix A, B from mapped matrix in hbase. + + Hbase > A = Matrix('m_table','cf_1'); + Hbase > B = Matrix('m_table','cf_2'); + Hbase > C = A * B; + }}} + + * To find the Singular Value decomposition in Altools, do the following: + * ~-'''''M = UΣV*'''''-~ + + {{{ + Hbase > A = M.SVDdecomposition(); + Hbase > U = A.getU(); + Hbase > S = A.getS(); + Hbase > V = A.getV(); + + U ([[-0.40455358, -0.9145143 ], + [-0.9145143 , 0.40455358]]) + + S ([ 5.4649857 , 0.36596619]) + + V ([[-0.57604844, -0.81741556], + [ 0.81741556, -0.57604844]]) + }}} + + * To find the QR decomposition in Altools, do the following: + * ~-'''''M = QR'''''-~ + + {{{ + Hbase > A = M.QRDecomposition(); + Hbase > U = A.getQ(); + Hbase > U = A.getR(); + + Q ([[-0.31622777, -0.9486833 ], + [-0.9486833 , 0.31622777]]) + + R ([[-3.16227766, -4.42718872], + [ 0. , -0.63245553]]) + }}} ----