FFNet_PatternList_ActivationList.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef _FFNet_PatternList_ActivationList_h_
  2. #define _FFNet_PatternList_ActivationList_h_
  3. /* FFNet_PatternList_ActivationList.h
  4. *
  5. * Copyright (C) 1994-2017 David Weenink, 2015 Paul Boersma
  6. *
  7. * This code is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or (at
  10. * your option) any later version.
  11. *
  12. * This code is distributed in the hope that it will be useful, but
  13. * WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this work. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. /*
  21. djmw 1994.
  22. djmw 20020712 GPL header.
  23. djmw 20030701 Removed non-GPL minimizations.
  24. djmw 20110714 Latest modification.
  25. */
  26. #include "FFNet.h"
  27. #include "PatternList.h"
  28. #include "ActivationList.h"
  29. #include "Minimizers.h"
  30. void FFNet_PatternList_ActivationList_learnSD (FFNet me, PatternList p, ActivationList a, integer maxNumOfEpochs,
  31. double tolerance, double learningRate, double momentum, int costFunctionType);
  32. /* Steepest Descent minimization */
  33. void FFNet_PatternList_ActivationList_learnSM (FFNet me, PatternList p, ActivationList a, integer maxNumOfEpochs,
  34. double tolerance, int costFunctionType);
  35. double FFNet_PatternList_ActivationList_getCosts_total (FFNet me, PatternList p, ActivationList a, int costFunctionType);
  36. double FFNet_PatternList_ActivationList_getCosts_average (FFNet me, PatternList p, ActivationList a, int costFunctionType);
  37. autoActivationList FFNet_PatternList_to_ActivationList (FFNet me, PatternList p, integer layer);
  38. /* Calculate the activations at a layer */
  39. /* if (layer<1 || layer > my nLayers) layer = my nLayers; */
  40. #endif /* _FFNet_PatternList_ActivationList_h_ */