All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.deeplearning4j.datasets.iterator.callbacks.DataSetDeserializer Maven / Gradle / Ivy

There is a newer version: 1.0.0-M2.1
Show newest version
package org.deeplearning4j.datasets.iterator.callbacks;

import lombok.extern.slf4j.Slf4j;
import org.nd4j.linalg.dataset.DataSet;

import java.io.File;

/**
 * This callback does DataSet deserialization of a given file.
 *
 * @author [email protected]
 */
@Slf4j
public class DataSetDeserializer implements FileCallback {
    @Override
    public  T call(File file) {
        DataSet dataSet = new DataSet();
        dataSet.load(file);
        return (T) dataSet;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy