public final class MatrixColumnMeansJob extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MatrixColumnMeansJob.MatrixColumnMeansMapper
Mapper for calculation of column-wise mean.
|
static class |
MatrixColumnMeansJob.MatrixColumnMeansReducer
The reducer adds the partial column-wise sums from each of the mappers to
compute the total column-wise sum.
|
Modifier and Type | Field and Description |
---|---|
static String |
VECTOR_CLASS |
Modifier and Type | Method and Description |
---|---|
static Vector |
run(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path inputPath,
org.apache.hadoop.fs.Path outputVectorTmpPath) |
static Vector |
run(org.apache.hadoop.conf.Configuration initialConf,
org.apache.hadoop.fs.Path inputPath,
org.apache.hadoop.fs.Path outputVectorTmpPath,
String vectorClass)
Job for calculating column-wise mean of a DistributedRowMatrix
|
public static final String VECTOR_CLASS
public static Vector run(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path inputPath, org.apache.hadoop.fs.Path outputVectorTmpPath) throws IOException
IOException
public static Vector run(org.apache.hadoop.conf.Configuration initialConf, org.apache.hadoop.fs.Path inputPath, org.apache.hadoop.fs.Path outputVectorTmpPath, String vectorClass) throws IOException
initialConf
- inputPath
- path to DistributedRowMatrix inputoutputVectorTmpPath
- path for temporary files created during jobvectorClass
- String of desired class for returned vector e.g. DenseVector,
RandomAccessSparseVector (may be null for DenseVector
)IOException
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.