Environment
BIGtensor (Hadoop) runs on any machine that supports hadoop.
However, the shell scripts and code packaging scripts works easily in Linux or Unix machines.
BIGtensor (Hadoop) needs the following softwares to be installed in the system:
Download and Install
Installation is as simple as downloading and extracting the installation file.
BIGtensor Library
cd bin
in the installation directory. The BIGtensor library(.jar file) appears.Detailed explanations about how to use this library is on USER Guide and API Doc below.
Code example
Here is a demo code that decomposes a tensor by PARAFAC. Note that you can use PARAFAC using 13 lines of code!
import bigtensor.Decompositions.PARAFAC;
public class PARAFAC {
public static void main (final String[] args) throws Exception {
String testInputPath = "test.tensor";
String testOutputPath = "parafac_out";
long[] testdims = {5,4,3};
int rank = 10;
int nmachines = 2;
int max_iteration = 10;
PARAFAC.TF_PARAFAC(testInputPath, testOutputPath, testdims, rank, nmachines, max_iterations);
}
}
The User Guide provides information on the general overview, installation, and supported functions of BIGtensor.