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

org.deeplearning4j.spark.api.RDDTrainingApproach Maven / Gradle / Ivy

There is a newer version: 1.0.0-beta_spark_2
Show newest version
/*
 *  * Copyright 2016 Skymind,Inc.
 *  *
 *  *    Licensed under the Apache License, Version 2.0 (the "License");
 *  *    you may not use this file except in compliance with the License.
 *  *    You may obtain a copy of the License at
 *  *
 *  *        http://www.apache.org/licenses/LICENSE-2.0
 *  *
 *  *    Unless required by applicable law or agreed to in writing, software
 *  *    distributed under the License is distributed on an "AS IS" BASIS,
 *  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  *    See the License for the specific language governing permissions and
 *  *    limitations under the License.
 */

package org.deeplearning4j.spark.api;

/**
 * Approach to use when training from a {@code JavaRDD} or {@code JavaRDD}.
 *
 * Export: first export the RDD to disk (temporary directory) and train from that.
 * Direct: aka 'legacy mode': train directly from the RDD. This has higher memory requirements and lower performance
 *  compared to the Export approach. It does not export the data to disk first, hence uses less space.
 *
 * @author Alex Black
 */
public enum RDDTrainingApproach {
    Export,
    Direct
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy