Search in sources :

Example 11 with DenseIntVector

use of com.tencent.angel.ml.math.vector.DenseIntVector in project angel by Tencent.

the class DenseIntMatrix method initVector.

/**
 * init the vector by set the value
 *
 * @param rowIndex row index
 * @param values the values of row
 * @return
 */
private DenseIntVector initVector(int rowIndex, int[] values) {
    DenseIntVector ret = new DenseIntVector((int) col, values);
    ret.setMatrixId(matrixId);
    ret.setRowId(rowIndex);
    return ret;
}
Also used : DenseIntVector(com.tencent.angel.ml.math.vector.DenseIntVector)

Aggregations

DenseIntVector (com.tencent.angel.ml.math.vector.DenseIntVector)11 Test (org.junit.Test)9 MatrixClient (com.tencent.angel.psagent.matrix.MatrixClient)5 Worker (com.tencent.angel.worker.Worker)3 MasterServiceTest (com.tencent.angel.master.MasterServiceTest)2 TVector (com.tencent.angel.ml.math.TVector)2 PSAttemptId (com.tencent.angel.ps.PSAttemptId)2 ParameterServerId (com.tencent.angel.ps.ParameterServerId)2 MatrixStorageManager (com.tencent.angel.ps.impl.MatrixStorageManager)2 ParameterServer (com.tencent.angel.ps.impl.ParameterServer)2 ServerDenseIntRow (com.tencent.angel.ps.impl.matrix.ServerDenseIntRow)2 ServerMatrix (com.tencent.angel.ps.impl.matrix.ServerMatrix)2 WorkerAttemptId (com.tencent.angel.worker.WorkerAttemptId)2 WorkerGroupId (com.tencent.angel.worker.WorkerGroupId)2 WorkerId (com.tencent.angel.worker.WorkerId)2 TaskContext (com.tencent.angel.worker.task.TaskContext)2 IOException (java.io.IOException)2 IntBuffer (java.nio.IntBuffer)2 Random (java.util.Random)2 DenseIntMatrix (com.tencent.angel.ml.math.matrix.DenseIntMatrix)1