use of org.apache.ignite.ml.math.ExternalizeTest in project ignite by apache.
the class CacheMatrixTest method testExternalization.
/** */
public void testExternalization() {
IgniteUtils.setCurrentIgniteName(ignite.configuration().getIgniteInstanceName());
MatrixKeyMapper<Integer> keyMapper = getKeyMapper(rows, cols);
IgniteCache<Integer, Double> cache = getCache();
final CacheMatrix<Integer, Double> cacheMatrix = new CacheMatrix<>(rows, cols, cache, keyMapper, new IdentityValueMapper());
ExternalizeTest<CacheMatrix<Integer, Double>> externalizeTest = new ExternalizeTest<CacheMatrix<Integer, Double>>() {
/** {@inheritDoc} */
@Override
public void externalizeTest() {
super.externalizeTest(cacheMatrix);
}
};
externalizeTest.externalizeTest();
}
Aggregations