Custom Solution Wizard
Total Page:16
File Type:pdf, Size:1020Kb
Custom Solution Wizard Copyright © 2015 by NeuroDimension, Inc.. All Rights Reserved. Custom Solution Wizard Table of contents What is the Custom Solution Wizard? .................................................................... 5 Generating Your First DLL .................................................................................... 5 System Requirements ...................................................................................... 6 Choose Breadboard Type ................................................................................. 6 Select Existing Breadboard ............................................................................... 7 Choose Project Type ....................................................................................... 7 Choose Project Directory .................................................................................. 8 Using the Generated DLL ..................................................................................... 9 Visual Basic, VBA and C# ................................................................................. 9 NeuroSolutions Object Library ...................................................................... 9 Protocol ................................................................................................... 12 NSLearningNetwork ............................................................................... 12 Properties ......................................................................................... 13 dllPathName ................................................................................. 14 inputData ..................................................................................... 15 desiredData .................................................................................. 17 crossValidationEnabled .................................................................. 19 crossValidationInputData ................................................................ 20 crossValidationDesiredData ............................................................. 22 saveBestWeightsEnabled ................................................................ 24 saveBestWeightsForTraining ........................................................... 25 bestWeightsPathName ................................................................... 26 bestCost ....................................................................................... 27 epochOfBestCost ........................................................................... 28 costData ....................................................................................... 29 crossValidationCostData ................................................................. 30 numberOfEpochsTrained ................................................................ 31 autoComputeInputNormCoeff ......................................................... 32 GPUEnabled ................................................................................. 33 inputNormMin ............................................................................... 34 inputNormMax .............................................................................. 35 normalizeInputByChannel ............................................................... 36 autoComputeOutputNormCoeff ....................................................... 37 outputNormMin ............................................................................. 38 outputNormMax ............................................................................ 39 normalizeOutputByChannel ............................................................ 40 messageErrors .............................................................................. 41 Methods ........................................................................................... 41 loadWeights .................................................................................. 42 saveWeights ................................................................................. 43 seedRandom ................................................................................. 44 randomizeWeights ......................................................................... 45 resetNetwork ................................................................................ 46 train ............................................................................................ 47 getResponse ................................................................................. 49 getSensitivity ................................................................................ 50 removeInputNormalization ............................................................. 51 2 / 110 Custom Solution Wizard removeOutputNormalization ........................................................... 52 NSRecallNetwork ................................................................................... 52 Properties ......................................................................................... 53 dllPathName ................................................................................. 54 inputData ..................................................................................... 55 messageErrors .............................................................................. 57 Methods ........................................................................................... 57 loadWeights .................................................................................. 58 saveWeights ................................................................................. 59 randomizeWeights ......................................................................... 60 resetNetwork ................................................................................ 61 getResponse ................................................................................. 62 getSensitivity ................................................................................ 63 Example ................................................................................................... 63 Visual Basic Example ............................................................................. 63 Code .................................................................................................... 65 Reading Data from Text Files ...................................................................... 66 Concepts .............................................................................................. 66 Example ............................................................................................... 68 C++ ............................................................................................................ 69 C++ Code Needed to Load the Generated DLL ............................................. 70 Protocol ................................................................................................... 75 createNetwork ....................................................................................... 75 destroyNetwork ..................................................................................... 76 getInputOutputInfo ............................................................................... 76 loadWeights .......................................................................................... 77 saveWeights ......................................................................................... 78 seedRandom ......................................................................................... 78 randomizeWeights ................................................................................. 79 resetNetwork ........................................................................................ 80 train .................................................................................................... 81 getResponse ......................................................................................... 83 getSensitivity ........................................................................................ 84 getSensitivityByVal ................................................................................ 85 removeInputNormalization ..................................................................... 85 removeOutputNormalization ................................................................... 86 setCrossValidationEnabled / getCrossValidationEnabled ............................. 87 setSaveBestWeightsEnabled / getSaveBestWeightsEnabled .......................... 88 setSaveBestWeightsForTraining / getSaveBestWeightsForTraining ............... 89 setBestWeightsPathName / getBestWeightsPathName ................................ 90 setBestCost / getBestCost ....................................................................... 91 getEpochOfBestCost .............................................................................. 92 getCostData .......................................................................................... 93 getCrossValidationCostData .................................................................... 94 getNumberOfEpochsTrained ................................................................... 95 setAutoComputeInputNormCoeff / getAutoComputeInputNormCoeff .......... 95 setGPUEnabled / getGPUEnabled ............................................................ 97 setInputNormMin / getInputNormMin ...................................................... 97 setInputNormMax / getInputNormMax