org.apache.mahout.clustering.spectral.common
Class UnitVectorizerJob
java.lang.Object
org.apache.mahout.clustering.spectral.common.UnitVectorizerJob
public final class UnitVectorizerJob
- extends java.lang.Object
Given a DistributedRowMatrix, this job normalizes each row to unit
vector length. If the input is a matrix U, and the output is a matrix
W, the job follows:
v_ij = u_ij / sqrt(sum_j(u_ij * u_ij))
Method Summary |
static void |
runJob(org.apache.hadoop.fs.Path input,
org.apache.hadoop.fs.Path output)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
runJob
public static void runJob(org.apache.hadoop.fs.Path input,
org.apache.hadoop.fs.Path output)
throws java.io.IOException,
java.lang.InterruptedException,
java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.InterruptedException
java.lang.ClassNotFoundException
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.