From 913cfcaa4f06a722d9afb376ed4a7d0a02b61c99 Mon Sep 17 00:00:00 2001 From: dariuszzbyrad Date: Fri, 11 Sep 2020 02:58:42 +0200 Subject: [PATCH] (arbiter-core) Fixed some typos (#9084) * Fix some typo Signed-off-by: Dariusz Zbyrad * Revert one of the last fix typo Signed-off-by: Dariusz Zbyrad --- .../arbiter/optimize/api/AbstractParameterSpace.java | 10 +++++----- .../arbiter/optimize/api/OptimizationResult.java | 2 +- .../optimize/config/OptimizationConfiguration.java | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arbiter/arbiter-core/src/main/java/org/deeplearning4j/arbiter/optimize/api/AbstractParameterSpace.java b/arbiter/arbiter-core/src/main/java/org/deeplearning4j/arbiter/optimize/api/AbstractParameterSpace.java index 4ff9dd964..babc88238 100644 --- a/arbiter/arbiter-core/src/main/java/org/deeplearning4j/arbiter/optimize/api/AbstractParameterSpace.java +++ b/arbiter/arbiter-core/src/main/java/org/deeplearning4j/arbiter/optimize/api/AbstractParameterSpace.java @@ -31,17 +31,17 @@ public abstract class AbstractParameterSpace implements ParameterSpace { public Map getNestedSpaces() { Map m = new LinkedHashMap<>(); - //Need to manually build and walk the class heirarchy... + //Need to manually build and walk the class hierarchy... Class currClass = this.getClass(); - List> classHeirarchy = new ArrayList<>(); + List> classHierarchy = new ArrayList<>(); while (currClass != Object.class) { - classHeirarchy.add(currClass); + classHierarchy.add(currClass); currClass = currClass.getSuperclass(); } - for (int i = classHeirarchy.size() - 1; i >= 0; i--) { + for (int i = classHierarchy.size() - 1; i >= 0; i--) { //Use reflection here to avoid a mass of boilerplate code... - Field[] allFields = classHeirarchy.get(i).getDeclaredFields(); + Field[] allFields = classHierarchy.get(i).getDeclaredFields(); for (Field f : allFields) { diff --git a/arbiter/arbiter-core/src/main/java/org/deeplearning4j/arbiter/optimize/api/OptimizationResult.java b/arbiter/arbiter-core/src/main/java/org/deeplearning4j/arbiter/optimize/api/OptimizationResult.java index 3acd39ba2..5cdcf68f0 100644 --- a/arbiter/arbiter-core/src/main/java/org/deeplearning4j/arbiter/optimize/api/OptimizationResult.java +++ b/arbiter/arbiter-core/src/main/java/org/deeplearning4j/arbiter/optimize/api/OptimizationResult.java @@ -26,7 +26,7 @@ import org.nd4j.shade.jackson.annotation.JsonTypeInfo; import java.io.Serializable; /** - * An optimization result represents the results of an optimization run, including the canditate configuration, the + * An optimization result represents the results of an optimization run, including the candidate configuration, the * trained model, the score for that model, and index of the model * * @author Alex Black diff --git a/arbiter/arbiter-core/src/main/java/org/deeplearning4j/arbiter/optimize/config/OptimizationConfiguration.java b/arbiter/arbiter-core/src/main/java/org/deeplearning4j/arbiter/optimize/config/OptimizationConfiguration.java index 4f7a9257b..786a45fbc 100644 --- a/arbiter/arbiter-core/src/main/java/org/deeplearning4j/arbiter/optimize/config/OptimizationConfiguration.java +++ b/arbiter/arbiter-core/src/main/java/org/deeplearning4j/arbiter/optimize/config/OptimizationConfiguration.java @@ -115,7 +115,7 @@ public class OptimizationConfiguration { /** * DataSource: defines where the data should come from for training and testing. - * Note that implementations must have a no-argument contsructor + * Note that implementations must have a no-argument constructor * @param dataSource Class for the data source * @param dataSourceProperties May be null. Properties for configuring the data source */