libcm is a C development framework with an emphasis on audio signal processing applications.
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

cmRbm.h 857B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef cmRbm_h
  2. #define cmRbm_h
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. enum
  7. {
  8. kOkRbmRC = cmOkRC,
  9. kInvalidParmRbmRC,
  10. kStackFailRbmRC,
  11. kMonitorWrFailRbmRC
  12. };
  13. typedef cmHandle_t cmRbmH_t;
  14. typedef cmRC_t cmRbmRC_t;
  15. extern cmRbmH_t cmRbmNullHandle;
  16. cmRbmRC_t cmRbmAllocate( cmCtx_t* ctx, cmRbmH_t* hp, const unsigned nodesPerLayer[], unsigned layerCnt );
  17. cmRbmRC_t cmRbmFree( cmRbmH_t* hp );
  18. bool cmRbmIsValid( cmRbmH_t h );
  19. cmRbmRC_t cmRbmConfigure( cmRbmH_t h, const unsigned nodesPerLayerV[], unsigned layerCnt );
  20. typedef struct
  21. {
  22. double maxX;
  23. double minX;
  24. double initW;
  25. double eta; // learning rate
  26. double holdOutFrac;
  27. unsigned epochCnt;
  28. unsigned batchCnt;
  29. double momentum;
  30. } cmRbmTrainParms_t;
  31. void cmRbmBinaryTest(cmCtx_t* ctx);
  32. #ifdef __cplusplus
  33. }
  34. #endif
  35. #endif