Examples of HyperbolicTangentActivator


Examples of trust.jfcm.HyperbolicTangentActivator

          paramElem.setAttribute("name", "k");
          paramElem.setAttribute("value", Double.toString(act.getK()));
          elemConcept.appendChild(paramElem);

        } else if (c.getConceptActivator() instanceof HyperbolicTangentActivator) {
          HyperbolicTangentActivator act = (HyperbolicTangentActivator) c
              .getConceptActivator();
          elemConcept.setAttribute("act", "TANH");
          Element paramElem = doc.createElement("param");
          paramElem.setAttribute("name", "threshold");
          paramElem.setAttribute("value", Double.toString(act.getThreshold()));
          elemConcept.appendChild(paramElem);
        }
      }
      if (c.getInput() != null) {
        elemConcept.setAttribute("input", c.getInput().toString());
View Full Code Here

Examples of trust.jfcm.HyperbolicTangentActivator

        act.setK(k);
      }
      c.setConceptActivator(act);

    } else if ("TANH".equals(actAttr)) {
      HyperbolicTangentActivator act = new HyperbolicTangentActivator();
      //add alpha parameter
      Element alphaParam = (Element) xpath.evaluate("param[@name='alpha']", conceptElem,
          XPathConstants.NODE);
      Double alpha = null;
      if (alphaParam != null) {
        alpha = Double.parseDouble(xpath.evaluate("@value", alphaParam));
      }
      if (alpha != null) {
        act.setAlpha(alpha);
      }
     
      if (threshold != null) {
        act.setThreshold(threshold);
      }
      c.setConceptActivator(act);
    } else if ("IDENTITY".equals(actAttr)) {
      IdentityActivator act = new IdentityActivator();
      c.setConceptActivator(act);
View Full Code Here

Examples of trust.jfcm.HyperbolicTangentActivator

        act.setK(k);
      }
      c.setConceptActivator(act);
   
    } else if ("TANH".equals(actAttr)) {
      HyperbolicTangentActivator act = new HyperbolicTangentActivator();
      /* add alpha parameter */
      Element alphaParam = (Element) xpath.evaluate("param[@name='alpha']", conceptElem,
          XPathConstants.NODE);
      Double alpha = null;
      if (alphaParam != null) {
        alpha = Double.parseDouble(xpath.evaluate("@value", alphaParam));
      }
      if (alpha != null) {
        act.setAlpha(alpha);
      }
     
      if (threshold != null) {
        act.setThreshold(threshold);
      }
      c.setConceptActivator(act);
    } else if ("IDENTITY".equals(actAttr)) {
      IdentityActivator act = new IdentityActivator();
      c.setConceptActivator(act);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.