Class BaseEvaluation<T extends BaseEvaluation>

    • Constructor Detail

      • BaseEvaluation

        public BaseEvaluation()
    • Method Detail

      • fromYaml

        public static <T extends IEvaluation> T fromYaml​(String yaml,
                                                         Class<T> clazz)
        Type Parameters:
        T - Type to return
        Parameters:
        yaml - YAML representation
        clazz - Class
        Returns:
        Evaluation instance
      • fromJson

        public static <T extends IEvaluation> T fromJson​(String json,
                                                         Class<T> clazz)
        Type Parameters:
        T - Type to return
        Parameters:
        json - Jason representation of the evaluation instance
        clazz - Class
        Returns:
        Evaluation instance
      • attempFromLegacyFromJson

        protected static <T extends IEvaluation> T attempFromLegacyFromJson​(String json,
                                                                            org.nd4j.shade.jackson.databind.exc.InvalidTypeIdException originalException)
                                                                     throws org.nd4j.shade.jackson.databind.exc.InvalidTypeIdException
        Attempt to load DL4J IEvaluation JSON from 1.0.0-beta2 or earlier. Given IEvaluation classes were moved to ND4J with no major changes, a simple "find and replace" for the class names is used.
        Parameters:
        json - JSON to attempt to deserialize
        originalException - Original exception to be re-thrown if it isn't legacy JSON
        Throws:
        org.nd4j.shade.jackson.databind.exc.InvalidTypeIdException