(arbiter-core) Fixed some typos (#9084)

* Fix some typo

Signed-off-by: Dariusz Zbyrad <dariusz.zbyrad@gmail.com>

* Revert one of the last fix typo

Signed-off-by: Dariusz Zbyrad <dariusz.zbyrad@gmail.com>
master
dariuszzbyrad 2020-09-11 02:58:42 +02:00 committed by GitHub
parent 73b08c7254
commit 913cfcaa4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -31,17 +31,17 @@ public abstract class AbstractParameterSpace<T> implements ParameterSpace<T> {
public Map<String, ParameterSpace> getNestedSpaces() { public Map<String, ParameterSpace> getNestedSpaces() {
Map<String, ParameterSpace> m = new LinkedHashMap<>(); Map<String, ParameterSpace> 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(); Class<?> currClass = this.getClass();
List<Class<?>> classHeirarchy = new ArrayList<>(); List<Class<?>> classHierarchy = new ArrayList<>();
while (currClass != Object.class) { while (currClass != Object.class) {
classHeirarchy.add(currClass); classHierarchy.add(currClass);
currClass = currClass.getSuperclass(); 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... //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) { for (Field f : allFields) {

View File

@ -26,7 +26,7 @@ import org.nd4j.shade.jackson.annotation.JsonTypeInfo;
import java.io.Serializable; 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 * trained model, the score for that model, and index of the model
* *
* @author Alex Black * @author Alex Black

View File

@ -115,7 +115,7 @@ public class OptimizationConfiguration {
/** /**
* DataSource: defines where the data should come from for training and testing. * 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 dataSource Class for the data source
* @param dataSourceProperties May be null. Properties for configuring the data source * @param dataSourceProperties May be null. Properties for configuring the data source
*/ */