You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by to...@apache.org on 2012/07/27 23:29:57 UTC
svn commit: r1366541 - in /labs/yay/trunk/core/src/main/java/org/apache/yay:
BackPropagationLearningStrategy.java BasicElaborationUnit.java
CostFunction.java
Author: tommaso
Date: Fri Jul 27 21:29:57 2012
New Revision: 1366541
URL: http://svn.apache.org/viewvc?rev=1366541&view=rev
Log:
some minor fixes to javadoc and adding CostFunction interface
Added:
labs/yay/trunk/core/src/main/java/org/apache/yay/CostFunction.java
Modified:
labs/yay/trunk/core/src/main/java/org/apache/yay/BackPropagationLearningStrategy.java
labs/yay/trunk/core/src/main/java/org/apache/yay/BasicElaborationUnit.java
Modified: labs/yay/trunk/core/src/main/java/org/apache/yay/BackPropagationLearningStrategy.java
URL: http://svn.apache.org/viewvc/labs/yay/trunk/core/src/main/java/org/apache/yay/BackPropagationLearningStrategy.java?rev=1366541&r1=1366540&r2=1366541&view=diff
==============================================================================
--- labs/yay/trunk/core/src/main/java/org/apache/yay/BackPropagationLearningStrategy.java (original)
+++ labs/yay/trunk/core/src/main/java/org/apache/yay/BackPropagationLearningStrategy.java Fri Jul 27 21:29:57 2012
@@ -22,7 +22,8 @@ import java.util.Collection;
import java.util.Set;
/**
- * Backpropagation learning algorithm for neural networks implementation (see http://en.wikipedia.org/wiki/Backpropagation).
+ * Backpropagation learning algorithm for neural networks implementation (see
+ * <code>http://en.wikipedia.org/wiki/Backpropagation</code>).
*/
public class BackPropagationLearningStrategy implements LearningStrategy<Long, Long> {
Modified: labs/yay/trunk/core/src/main/java/org/apache/yay/BasicElaborationUnit.java
URL: http://svn.apache.org/viewvc/labs/yay/trunk/core/src/main/java/org/apache/yay/BasicElaborationUnit.java?rev=1366541&r1=1366540&r2=1366541&view=diff
==============================================================================
--- labs/yay/trunk/core/src/main/java/org/apache/yay/BasicElaborationUnit.java (original)
+++ labs/yay/trunk/core/src/main/java/org/apache/yay/BasicElaborationUnit.java Fri Jul 27 21:29:57 2012
@@ -19,7 +19,7 @@
package org.apache.yay;
/**
- *
+ * A node in a neural network
*/
public class BasicElaborationUnit<T> {
Added: labs/yay/trunk/core/src/main/java/org/apache/yay/CostFunction.java
URL: http://svn.apache.org/viewvc/labs/yay/trunk/core/src/main/java/org/apache/yay/CostFunction.java?rev=1366541&view=auto
==============================================================================
--- labs/yay/trunk/core/src/main/java/org/apache/yay/CostFunction.java (added)
+++ labs/yay/trunk/core/src/main/java/org/apache/yay/CostFunction.java Fri Jul 27 21:29:57 2012
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.apache.yay;
+
+/**
+ * A cost function helps on figuring out how to fit best a specific model to
+ * given data (inputs)
+ */
+public interface CostFunction {
+
+ public Double calculateCost(Double... parameters);
+
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org