Examples of columns()


Examples of com.pv.mf.db.mock.impl.SelectBuilder.columns()

   public void buildSelect_MultiObject() {
     
      SelectBuilder builder = (SelectBuilder)_annotationFactory.select();
      User user = builder.mock(User.class);
     
      builder.columns(user.getId(), user.getUserName());
      builder.and(user.getId(), 1L);
     
//      user = builder.mock(User.class);
//     
//      builder.execute();
View Full Code Here

Examples of com.sun.faban.common.TableModel.columns()

                int rows = table.rows();
                if (table != null && rows > 0) {
                    space(8, buffer).append("<customTable name=\"").
                            append(entry.getKey()).append("\">\n");
                    space(12, buffer).append("<head>\n");
                    for (int i = 0; i < table.columns(); i++) {
                    space(16, buffer).append("<th>").append(table.getHeader(i)).
                            append("</th>\n");
                    }
                    space(12, buffer).append("</head>\n");
View Full Code Here

Examples of edu.ucla.sspace.matrix.Matrix.columns()

        Matrix result = Matrices.multiply(queryAsMatrix, UtimesSigmaInv);

        // Copy out the vector itself so that we don't retain a reference to the
        // matrix as a result of its getRowVector call, which isn't guaranteed
        // to return a copy.
        int cols = result.columns();
        DoubleVector projected = new DenseVector(result.columns());
        for (int i = 0; i < cols; ++i)
            projected.set(i, result.get(0, i));
        return projected;
    }
View Full Code Here

Examples of edu.ucla.sspace.matrix.Matrix.columns()

        // Copy out the vector itself so that we don't retain a reference to the
        // matrix as a result of its getRowVector call, which isn't guaranteed
        // to return a copy.
        int cols = result.columns();
        DoubleVector projected = new DenseVector(result.columns());
        for (int i = 0; i < cols; ++i)
            projected.set(i, result.get(0, i));
        return projected;
    }
}
View Full Code Here

Examples of edu.ucla.sspace.matrix.Matrix.columns()

    }

    public static void validateResults(MatrixFactorization reducer) {
        Matrix U = reducer.dataClasses();
        assertEquals(matrix.rows(), U.rows());
        assertEquals(2, U.columns());

        for (int r = 0; r < matrix.rows(); ++r)
            for (int c = 0; c < 2; ++c)
                assertEquals(Math.abs(EXPECTED_U[r][c] * EXPECTED_S[c]),Math.abs(U.get(r,c)),.001);

 
View Full Code Here

Examples of edu.ucla.sspace.matrix.Matrix.columns()

            for (int c = 0; c < 2; ++c)
                assertEquals(Math.abs(EXPECTED_U[r][c] * EXPECTED_S[c]),Math.abs(U.get(r,c)),.001);

        Matrix V = reducer.classFeatures();
        assertEquals(2, V.rows());
        assertEquals(matrix.columns(), V.columns());

        for (int r = 0; r < 2; ++r)
            for (int c = 0; c < matrix.columns(); ++c)
                assertEquals(Math.abs(EXPECTED_V[r][c] * EXPECTED_S[r]),Math.abs(V.get(r,c)),.001);
    }
View Full Code Here

Examples of edu.ucla.sspace.matrix.Matrix.columns()

        reducer.factorize(matrix, 2);

        Matrix W = reducer.dataClasses();
        assertEquals(4, W.rows());
        assertEquals(2, W.columns());

        Matrix H = reducer.classFeatures();
        assertEquals(2, H.rows());
        assertEquals(3, H.columns());
View Full Code Here

Examples of edu.ucla.sspace.matrix.Matrix.columns()

        assertEquals(4, W.rows());
        assertEquals(2, W.columns());

        Matrix H = reducer.classFeatures();
        assertEquals(2, H.rows());
        assertEquals(3, H.columns());

        /*
        for (int r = 0; r < 4; ++r) {
            for (int c = 0; c < 3; ++c) {
                double v = 0;
View Full Code Here

Examples of edu.ucla.sspace.matrix.Matrix.columns()

            SerializableUtil.load(new File(args[0]));

        // Create the top 10 lists for each topic in the word space.
        List<MultiMap<Double, String>> topTerms = new ArrayList<MultiMap<Double, String>>();
        Matrix m = MatrixIO.readMatrix(new File(args[1]), Format.DENSE_TEXT);
        for (int c = 0; c < m.columns(); ++c)
            topTerms.add(new BoundedSortedMultiMap<Double, String>(10));

        for (int r = 0; r < m.rows(); ++r) {
            String term = basis.getDimensionDescription(r);
            for (int c = 0; c < m.columns(); ++c)
View Full Code Here

Examples of edu.ucla.sspace.matrix.Matrix.columns()

        for (int c = 0; c < m.columns(); ++c)
            topTerms.add(new BoundedSortedMultiMap<Double, String>(10));

        for (int r = 0; r < m.rows(); ++r) {
            String term = basis.getDimensionDescription(r);
            for (int c = 0; c < m.columns(); ++c)
                topTerms.get(c).put(m.get(r, c), term);
        }

        for (MultiMap<Double, String> topicTerms : topTerms) {
            for (String term : topicTerms.values())
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.