@Test public void testIndexDims(){ rpLSH.makeIndex(Nd4j.rand(100, intDimensions)); assertArrayEquals(new long[]{100, hashLength}, rpLSH.index.shape()); }
@Override public void makeIndex(INDArray data) { index = hash(data); indexData = data; }
RandomProjectionLSH implements LSH { @Override public void makeIndex(INDArray data) { index = hash(data); indexData = data; } }
RandomProjectionLSH implements LSH { @Override public void makeIndex(INDArray data) { index = hash(data); indexData = data; } RandomProjectionLSH(int hashLength, int numTables, int inDimension, double radius);  RandomProjectionLSH(int hashLength, int numTables, int inDimension, double radius, Random rng); }
RandomProjectionLSH implements LSH { @Override public void makeIndex(INDArray data) { index = hash(data); indexData = data; } RandomProjectionLSH(int hashLength, int numTables, int inDimension, double radius);  RandomProjectionLSH(int hashLength, int numTables, int inDimension, double radius, Random rng); @Override String getDistanceMeasure(); INDArray entropy(INDArray data); INDArray hash(INDArray data); @Override void makeIndex(INDArray data); @Override INDArray bucket(INDArray query); @Override INDArray search(INDArray query, double maxRange); @Override INDArray search(INDArray query, int k); }
RandomProjectionLSH implements LSH { @Override public void makeIndex(INDArray data) { index = hash(data); indexData = data; } RandomProjectionLSH(int hashLength, int numTables, int inDimension, double radius);  RandomProjectionLSH(int hashLength, int numTables, int inDimension, double radius, Random rng); @Override String getDistanceMeasure(); INDArray entropy(INDArray data); INDArray hash(INDArray data); @Override void makeIndex(INDArray data); @Override INDArray bucket(INDArray query); @Override INDArray search(INDArray query, double maxRange); @Override INDArray search(INDArray query, int k);  }