Search in sources :

Example 1 with ExternalizeTest

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();
}
Also used : IdentityValueMapper(org.apache.ignite.ml.math.IdentityValueMapper) ExternalizeTest(org.apache.ignite.ml.math.ExternalizeTest)

Aggregations

ExternalizeTest (org.apache.ignite.ml.math.ExternalizeTest)1 IdentityValueMapper (org.apache.ignite.ml.math.IdentityValueMapper)1