| 1 | /* praat_FFNet_init.cpp |
| 2 | * |
| 3 | * Copyright (C) 1994-2024,2026 David Weenink |
| 4 | * |
| 5 | * This code is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 3 of the License, or (at |
| 8 | * your option) any later version. |
| 9 | * |
| 10 | * This code is distributed in the hope that it will be useful, but |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | /* |
| 20 | djmw 20020408 GPL |
| 21 | djmw 20020408 added FFNet_help |
| 22 | djmw 20030701 Removed non-GPL minimizations |
| 23 | djmw 20040526 Removed bug in FFNet_drawCostHistory interface. |
| 24 | djmw 20041123 Latest modification |
| 25 | djmw 20061218 Changed to Melder_information<x> format. |
| 26 | djmw 20080902 Melder_error<1...> |
| 27 | djmw 20071011 REQUIRE requires U"". |
| 28 | djmw 20071024 Use MelderString_append in FFNet_createNameFromTopology |
| 29 | djmw 20100511 FFNet query outputs |
| 30 | */ |
| 31 | |
| 32 | #include "Discriminant.h"cxx . . $ `<file>/dwtools/Discriminant.h`/ |
| 33 | #include "PCA.h"cxx . . $ `<file>/dwtools/PCA.h`/ |
| 34 | #include "Minimizers.h"cxx . . $ `<file>/dwtools/Minimizers.h`/ |
| 35 | #include "FFNet_Eigen.h"cxx . . $ `<file>/FFNet/FFNet_Eigen.h`/ |
| 36 | #include "FFNet_Matrix.h"cxx . . $ `<file>/FFNet/FFNet_Matrix.h`/ |
| 37 | #include "FFNet_PatternList.h"cxx . . $ `<file>/FFNet/FFNet_PatternList.h`/ |
| 38 | #include "FFNet_ActivationList_Categories.h"cxx . . $ `<file>/FFNet/FFNet_ActivationList_Categories.h`/ |
| 39 | #include "FFNet_PatternList_ActivationList.h"cxx . . $ `<file>/FFNet/FFNet_PatternList_ActivationList.h`/ |
| 40 | #include "FFNet_PatternList_Categories.h"cxx . . $ `<file>/FFNet/FFNet_PatternList_Categories.h`/ |
| 41 | |
| 42 | #include "praat_FFNet.h"cxx . . $ `<file>/FFNet/praat_FFNet.h`/ |
| 43 | |
| 44 | /* Routines to be removed sometime in the future: |
| 45 | 20040422, 2.4.04: FFNet_drawWeightsToLayer use FFNet_drawWeights |
| 46 | 20040422, 2.4.04: FFNet_weightsToMatrix use FFNet_extractWeights |
| 47 | */ |
| 48 | |
| 49 | static char32cxx . . $ char32# const *QUERY_BUTTONcxx . . $ QUERY_BUTTON. = U"Query -"; |
| 50 | static char32cxx . . $ char32# const *DRAW_BUTTONcxx . . $ DRAW_BUTTON. = U"Draw -"; |
| 51 | static char32cxx . . $ char32# const *MODIFY_BUTTONcxx . . $ MODIFY_BUTTON. = U"Modify -"; |
| 52 | static char32cxx . . $ char32# const *EXTRACT_BUTTONcxx . . $ EXTRACT_BUTTON. = U"Extract -"; |
| 53 | |
| 54 | /**************** New FFNet ***************************/ |
| 55 | |
| 56 | FORMcxx . . $ `sys/praatM.h:79:9`! (CREATE_ONE__FFNet_create, U"Create FFNet", U"Create FFNet...") { |
| 57 | WORDcxx . . $ `sys/praatM.h:122:9`! (name, U"Name", U"4-3") |
| 58 | NATURALcxx . . $ `sys/praatM.h:120:9`! (numberOfInputs, U"Number of inputs", U"4") |
| 59 | NATURALcxx . . $ `sys/praatM.h:120:9`! (numberOfOutputs, U"Number of outputs", U"3") |
| 60 | INTEGERcxx . . $ `sys/praatM.h:108:9`! (numberOfUnits1, U"Number of units in hidden layer 1", U"0") |
| 61 | INTEGERcxx . . $ `sys/praatM.h:108:9`! (numberOfUnits2, U"Number of units in hidden layer 2", U"0") |
| 62 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 63 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 64 | CREATE_ONEcxx . . $ `sys/praatM.h:485:9`! |
| 65 | autoFFNetcxx . . $ autoFFNet# result = FFNet_createcxx . . $ FFNet_create(b4b9df7d991baee1). (numberOfInputs, numberOfUnits1, numberOfUnits2, numberOfOutputs, false); |
| 66 | CREATE_ONE_ENDcxx . . $ `sys/praatM.h:486:9`! (name); |
| 67 | } |
| 68 | |
| 69 | FORMcxx . . $ `sys/praatM.h:79:9`! (CREATE_MULTIPLE__FFNet_createIrisExample, U"Create iris example", U"Create iris example...") { |
| 70 | COMMENTcxx . . $ `sys/praatM.h:136:9`! (U"For the feedforward neural net we need to know the:") |
| 71 | INTEGERcxx . . $ `sys/praatM.h:108:9`! (numberOfUnits1, U"Number of units in hidden layer 1", U"0") |
| 72 | INTEGERcxx . . $ `sys/praatM.h:108:9`! (numberOfUnits2, U"Number of units in hidden layer 2", U"0") |
| 73 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 74 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 75 | CREATE_MULTIPLEcxx . . $ `sys/praatM.h:479:9`! |
| 76 | autoCollectioncxx . . $ autoCollection# result = FFNet_createIrisExamplecxx . . $ FFNet_createIrisExample(19d59450daf2638f). (numberOfUnits1, numberOfUnits2); |
| 77 | praat_newcxx . . $ praat_new(90806586bd778ea4). (resultcxx . . $ autoSomeThing#autoSomeThing(327dc2ad7b4df21)..movecxx . . $ autoSomeThing#move(25acc3554b7d1642).()); |
| 78 | CREATE_MULTIPLE_ENDcxx . . $ `sys/praatM.h:480:9`! |
| 79 | } |
| 80 | |
| 81 | FORMcxx . . $ `sys/praatM.h:79:9`! (CREATE_ONE__FFNet_create_linearOutputs, U"Create FFNet", U"Create FFNet (linear outputs)...") { |
| 82 | WORDcxx . . $ `sys/praatM.h:122:9`! (name, U"Name", U"4-3") |
| 83 | NATURALcxx . . $ `sys/praatM.h:120:9`! (numberOfInputs, U"Number of inputs", U"4") |
| 84 | NATURALcxx . . $ `sys/praatM.h:120:9`! (numberOfOutputs, U"Number of outputs", U"3") |
| 85 | INTEGERcxx . . $ `sys/praatM.h:108:9`! (numberOfUnits1, U"Number of units in hidden layer 1", U"0") |
| 86 | INTEGERcxx . . $ `sys/praatM.h:108:9`! (numberOfUnits2, U"Number of units in hidden layer 2", U"0") |
| 87 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 88 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 89 | CREATE_ONEcxx . . $ `sys/praatM.h:485:9`! |
| 90 | autoFFNetcxx . . $ autoFFNet# result = FFNet_createcxx . . $ FFNet_create(b4b9df7d991baee1). (numberOfInputs, numberOfUnits1, numberOfUnits2, numberOfOutputs, true); |
| 91 | CREATE_ONE_ENDcxx . . $ `sys/praatM.h:486:9`! (name); |
| 92 | } |
| 93 | |
| 94 | /**************** New PatternList ***************************/ |
| 95 | |
| 96 | FORMcxx . . $ `sys/praatM.h:79:9`! (CREATE_ONE__PatternList_create, U"Create PatternList", nullptr) { |
| 97 | WORDcxx . . $ `sys/praatM.h:122:9`! (name, U"Name", U"1x1") |
| 98 | NATURALcxx . . $ `sys/praatM.h:120:9`! (patternDimension, U"Dimension of a pattern", U"1") |
| 99 | NATURALcxx . . $ `sys/praatM.h:120:9`! (numberOfPatterns, U"Number of patterns", U"1") |
| 100 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 101 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 102 | CREATE_ONEcxx . . $ `sys/praatM.h:485:9`! |
| 103 | autoPatternListcxx . . $ autoPatternList# result = PatternList_createcxx . . $ PatternList_create(aadf1a410a0e0153). (numberOfPatterns, patternDimension); |
| 104 | CREATE_ONE_ENDcxx . . $ `sys/praatM.h:486:9`! (name); |
| 105 | } |
| 106 | |
| 107 | /**************** New Categories ***************************/ |
| 108 | |
| 109 | FORMcxx . . $ `sys/praatM.h:79:9`! (CREATE_ONE__Categories_create, U"Create Categories", nullptr) { |
| 110 | WORDcxx . . $ `sys/praatM.h:122:9`! (name, U"Name", U"empty") |
| 111 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 112 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 113 | CREATE_ONEcxx . . $ `sys/praatM.h:485:9`! |
| 114 | autoCategoriescxx . . $ autoCategories# result = Categories_createcxx . . $ Categories_create(8007a1fe88fa0475). (); |
| 115 | CREATE_ONE_ENDcxx . . $ `sys/praatM.h:486:9`! (name); |
| 116 | } |
| 117 | |
| 118 | DIRECTcxx . . $ `sys/praatM.h:412:9`! (HELP__FFNet_help) { |
| 119 | HELPcxx . . $ `sys/praatM.h:616:9`! (U"Feedforward neural networks") |
| 120 | } |
| 121 | |
| 122 | |
| 123 | DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_EACH__FFNet_drawTopology) { |
| 124 | GRAPHICS_EACHcxx . . $ `sys/praatM.h:697:9`! (FFNet) |
| 125 | FFNet_drawTopologycxx . . $ FFNet_drawTopology(1f8f5a95f8d14e97). (me, GRAPHICScxx . . $ `sys/praat.h:204:9`!); |
| 126 | GRAPHICS_EACH_ENDcxx . . $ `sys/praatM.h:700:9`! |
| 127 | } |
| 128 | |
| 129 | FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_EACH__FFNet_drawWeights, U"FFNet: Draw weights", U"FFNet: Draw weights...") { |
| 130 | NATURALcxx . . $ `sys/praatM.h:120:9`! (layer, U"Layer number", U"1") |
| 131 | BOOLEANcxx . . $ `sys/praatM.h:130:9`! (garnish, U"Garnish", true) |
| 132 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 133 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 134 | GRAPHICS_EACHcxx . . $ `sys/praatM.h:697:9`! (FFNet) |
| 135 | FFNet_drawWeightscxx . . $ FFNet_drawWeights(997d05aa38f4b38). (me, GRAPHICScxx . . $ `sys/praat.h:204:9`!, layer, garnish); |
| 136 | GRAPHICS_EACH_ENDcxx . . $ `sys/praatM.h:700:9`! |
| 137 | } |
| 138 | |
| 139 | FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_EACH__FFNet_drawWeightsToLayer, U"FFNet: Draw weights to layer", nullptr) { |
| 140 | COMMENTcxx . . $ `sys/praatM.h:136:9`! (U"Warning: Disapproved. Use \"Draw weights..\" instead.") |
| 141 | NATURALcxx . . $ `sys/praatM.h:120:9`! (layer, U"Layer number", U"1") |
| 142 | CHOICEcxx . . $ `sys/praatM.h:216:9`! (scale, U"Scale", 1) |
| 143 | OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"by maximum of all weights to layer") |
| 144 | OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"by maximum weight from 'from-unit'") |
| 145 | OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"by maximum weight to 'to-unit'") |
| 146 | BOOLEANcxx . . $ `sys/praatM.h:130:9`! (garnish, U"Garnish", true) |
| 147 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 148 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 149 | GRAPHICS_EACHcxx . . $ `sys/praatM.h:697:9`! (FFNet) |
| 150 | FFNet_drawWeightsToLayercxx . . $ FFNet_drawWeightsToLayer(2f448188820de6aa). (me, GRAPHICScxx . . $ `sys/praat.h:204:9`!, layer, scale, garnish); |
| 151 | GRAPHICS_EACH_ENDcxx . . $ `sys/praatM.h:700:9`! |
| 152 | } |
| 153 | |
| 154 | FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_EACH__FFNet_drawCostHistory, U"FFNet: Draw cost history", U"FFNet: Draw cost history...") { |
| 155 | INTEGERcxx . . $ `sys/praatM.h:108:9`! (fromIteration, U"left Iteration_range", U"0") |
| 156 | INTEGERcxx . . $ `sys/praatM.h:108:9`! (toIteration, U"right Iteration_range", U"0") |
| 157 | REALcxx . . $ `sys/praatM.h:92:9`! (fromCost, U"left Cost_range", U"0.0") |
| 158 | REALcxx . . $ `sys/praatM.h:92:9`! (toCost, U"right Cost_range", U"0.0") |
| 159 | BOOLEANcxx . . $ `sys/praatM.h:130:9`! (garnish, U"Garnish", true) |
| 160 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 161 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 162 | GRAPHICS_EACHcxx . . $ `sys/praatM.h:697:9`! (FFNet) |
| 163 | FFNet_drawCostHistorycxx . . $ FFNet_drawCostHistory(1f22b713dfef5782). (me, GRAPHICScxx . . $ `sys/praat.h:204:9`!, fromIteration, toIteration, fromCost, toCost, garnish); |
| 164 | GRAPHICS_EACH_ENDcxx . . $ `sys/praatM.h:700:9`! |
| 165 | } |
| 166 | |
| 167 | DIRECTcxx . . $ `sys/praatM.h:412:9`! (QUERY_ONE_FOR_INTEGER__FFNet_getNumberOfLayers) { |
| 168 | QUERY_ONE_FOR_INTEGERcxx . . $ `sys/praatM.h:838:9`! (FFNet) |
| 169 | integercxx . . $ integer# result = mycxx . . $ `melder/melder.h:44:9`! numberOfLayerscxx . . $ structFFNet#numberOfLayers.; |
| 170 | QUERY_ONE_FOR_INTEGER_ENDcxx . . $ `sys/praatM.h:840:9`! (U" layer", (mycxx . . $ `melder/melder.h:44:9`! numberOfLayers > 1 ? U"s" : U"")) |
| 171 | } |
| 172 | |
| 173 | DIRECTcxx . . $ `sys/praatM.h:412:9`! (QUERY_ONE_FOR_INTEGER__FFNet_getNumberOfOutputs) { |
| 174 | QUERY_ONE_FOR_INTEGERcxx . . $ `sys/praatM.h:838:9`! (FFNet) |
| 175 | integercxx . . $ integer# result = mycxx . . $ `melder/melder.h:44:9`! numberOfUnitsInLayercxx . . $ structFFNet#numberOfUnitsInLayer. [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).mycxx . . $ `melder/melder.h:44:9`! numberOfLayerscxx . . $ structFFNet#numberOfLayers.]; |
| 176 | QUERY_ONE_FOR_INTEGER_ENDcxx . . $ `sys/praatM.h:840:9`! (U" units") |
| 177 | } |
| 178 | |
| 179 | FORMcxx . . $ `sys/praatM.h:79:9`! (QUERY_ONE_FOR_INTEGER__FFNet_getNumberOfHiddenUnits, U"FFNet: Get number of hidden units", U"FFNet: Get number of hidden units...") { |
| 180 | NATURALcxx . . $ `sys/praatM.h:120:9`! (layer, U"Hidden layer number", U"1") |
| 181 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 182 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 183 | QUERY_ONE_FOR_INTEGERcxx . . $ `sys/praatM.h:838:9`! (FFNet) |
| 184 | integercxx . . $ integer# result = layer > 0 && layer <= mycxx . . $ `melder/melder.h:44:9`! numberOfLayerscxx . . $ structFFNet#numberOfLayers. - 1 ? mycxx . . $ `melder/melder.h:44:9`! numberOfUnitsInLayercxx . . $ structFFNet#numberOfUnitsInLayer. [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).layer] : 0; |
| 185 | QUERY_ONE_FOR_INTEGER_ENDcxx . . $ `sys/praatM.h:840:9`! (U" units") |
| 186 | } |
| 187 | |
| 188 | DIRECTcxx . . $ `sys/praatM.h:412:9`! (QUERY_ONE_FOR_INTEGER__FFNet_getNumberOfInputs) { |
| 189 | QUERY_ONE_FOR_INTEGERcxx . . $ `sys/praatM.h:838:9`! (FFNet) |
| 190 | integercxx . . $ integer# result = mycxx . . $ `melder/melder.h:44:9`! numberOfInputscxx . . $ structFFNet#numberOfInputs.; |
| 191 | QUERY_ONE_FOR_INTEGER_ENDcxx . . $ `sys/praatM.h:840:9`! (U" units") |
| 192 | } |
| 193 | |
| 194 | FORMcxx . . $ `sys/praatM.h:79:9`! (QUERY_ONE_FOR_INTEGER__FFNet_getNumberOfHiddenWeights, U"FFNet: Get number of hidden weights", U"FFNet: Get number of hidden weights...") { |
| 195 | NATURALcxx . . $ `sys/praatM.h:120:9`! (layer, U"Hidden layer number", U"1") |
| 196 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 197 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 198 | QUERY_ONE_FOR_INTEGERcxx . . $ `sys/praatM.h:838:9`! (FFNet) |
| 199 | integercxx . . $ integer# result = 0; |
| 200 | if (layer <= mycxx . . $ `melder/melder.h:44:9`! numberOfLayerscxx . . $ structFFNet#numberOfLayers. - 1) { |
| 201 | integercxx . . $ integer# numberOfUnitsInPreviousLayer = ( layer == 1 ? mycxx . . $ `melder/melder.h:44:9`! numberOfInputscxx . . $ structFFNet#numberOfInputs. : mycxx . . $ `melder/melder.h:44:9`! numberOfUnitsInLayercxx . . $ structFFNet#numberOfUnitsInLayer. [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).layer - 1] ); |
| 202 | result = mycxx . . $ `melder/melder.h:44:9`! numberOfUnitsInLayercxx . . $ structFFNet#numberOfUnitsInLayer. [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).layer] * (numberOfUnitsInPreviousLayer + 1); |
| 203 | } |
| 204 | QUERY_ONE_FOR_INTEGER_ENDcxx . . $ `sys/praatM.h:840:9`! (U" weights (including biases)") |
| 205 | } |
| 206 | |
| 207 | DIRECTcxx . . $ `sys/praatM.h:412:9`! (QUERY_ONE_FOR_INTEGER__FFNet_getNumberOfOutputWeights) { |
| 208 | QUERY_ONE_FOR_INTEGERcxx . . $ `sys/praatM.h:838:9`! (FFNet) |
| 209 | integercxx . . $ integer# numberOfUnitsInPreviousLayer = ( mycxx . . $ `melder/melder.h:44:9`! numberOfLayerscxx . . $ structFFNet#numberOfLayers. == 1 ? mycxx . . $ `melder/melder.h:44:9`! numberOfInputscxx . . $ structFFNet#numberOfInputs. : mycxx . . $ `melder/melder.h:44:9`! numberOfUnitsInLayercxx . . $ structFFNet#numberOfUnitsInLayer. [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).mycxx . . $ `melder/melder.h:44:9`! numberOfLayerscxx . . $ structFFNet#numberOfLayers. - 1] ); |
| 210 | integercxx . . $ integer# result = mycxx . . $ `melder/melder.h:44:9`! numberOfUnitsInLayercxx . . $ structFFNet#numberOfUnitsInLayer. [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).mycxx . . $ `melder/melder.h:44:9`! numberOfLayerscxx . . $ structFFNet#numberOfLayers.] * (numberOfUnitsInPreviousLayer + 1); |
| 211 | QUERY_ONE_FOR_INTEGER_ENDcxx . . $ `sys/praatM.h:840:9`! (U" weights"); |
| 212 | } |
| 213 | |
| 214 | FORMcxx . . $ `sys/praatM.h:79:9`! (QUERY_ONE_FOR_STRING__FFNet_getCategoryOfOutputUnit, U"FFNet: Get category of output unit", nullptr) { |
| 215 | NATURALcxx . . $ `sys/praatM.h:120:9`! (outputUnit, U"Output unit", U"1") |
| 216 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 217 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 218 | QUERY_ONE_FOR_STRINGcxx . . $ `sys/praatM.h:931:9`! (FFNet) |
| 219 | conststring32cxx . . $ conststring32# result = FFNet_getCategoryOfOutputUnitcxx . . $ FFNet_getCategoryOfOutputUnit(6eeb6b2418f592b4). (me, outputUnit); |
| 220 | QUERY_ONE_FOR_STRING_ENDcxx . . $ `sys/praatM.h:933:9`! |
| 221 | } |
| 222 | |
| 223 | FORMcxx . . $ `sys/praatM.h:79:9`! (QUERY_ONE_FOR_INTEGER__FFNet_getOutputUnitOfCategory, U"FFNet: Get output unit of category", nullptr) { |
| 224 | SENTENCEcxx . . $ `sys/praatM.h:126:9`! (category, U"Category", U"u") |
| 225 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 226 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 227 | QUERY_ONE_FOR_INTEGERcxx . . $ `sys/praatM.h:838:9`! (FFNet) |
| 228 | integercxx . . $ integer# result = FFNet_getOutputUnitOfCategorycxx . . $ FFNet_getOutputUnitOfCategory(fcf66cc57df20487). (me, category); |
| 229 | QUERY_ONE_FOR_INTEGER_ENDcxx . . $ `sys/praatM.h:840:9`! (U" (output unit)") |
| 230 | } |
| 231 | |
| 232 | |
| 233 | FORMcxx . . $ `sys/praatM.h:79:9`! (QUERY_ONE_FOR_REAL__FFNet_getBias, U"FFNet: Get bias", nullptr) { |
| 234 | NATURALcxx . . $ `sys/praatM.h:120:9`! (layer, U"Layer", U"1") |
| 235 | NATURALcxx . . $ `sys/praatM.h:120:9`! (unit, U"Unit", U"1") |
| 236 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 237 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 238 | QUERY_ONE_FOR_REALcxx . . $ `sys/praatM.h:827:9`! (FFNet) |
| 239 | const double result = FFNet_getBiascxx . . $ FFNet_getBias(817895fdeae8b5e8). (me, layer, unit); |
| 240 | QUERY_ONE_FOR_REAL_ENDcxx . . $ `sys/praatM.h:829:9`! (U" (bias)") |
| 241 | } |
| 242 | |
| 243 | |
| 244 | FORMcxx . . $ `sys/praatM.h:79:9`! (QUERY_ONE_FOR_REAL__FFNet_getWeight, U"FFNet: Get weight", nullptr) { |
| 245 | NATURALcxx . . $ `sys/praatM.h:120:9`! (layer, U"Layer", U"1") |
| 246 | NATURALcxx . . $ `sys/praatM.h:120:9`! (unitTo, U"Unit", U"1") |
| 247 | NATURALcxx . . $ `sys/praatM.h:120:9`! (unitFrom, U"Unit from", U"1") |
| 248 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 249 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 250 | QUERY_ONE_FOR_REALcxx . . $ `sys/praatM.h:827:9`! (FFNet) |
| 251 | const double result = FFNet_getWeightcxx . . $ FFNet_getWeight(90cd55f92d15b08c). (me, layer, unitTo, unitFrom); |
| 252 | QUERY_ONE_FOR_REAL_ENDcxx . . $ `sys/praatM.h:829:9`! (U" (weight between unit ", unitTo, U" in layer ", layer, U", and unit ", unitFrom, U" in layer ", layer - 1, U")") |
| 253 | } |
| 254 | |
| 255 | DIRECTcxx . . $ `sys/praatM.h:412:9`! (QUERY_ONE_FOR_REAL__FFNet_getMinimum) { |
| 256 | QUERY_ONE_FOR_REALcxx . . $ `sys/praatM.h:827:9`! (FFNet) |
| 257 | const double result = FFNet_getMinimumcxx . . $ FFNet_getMinimum(c565b63288669986). (me); |
| 258 | QUERY_ONE_FOR_REAL_ENDcxx . . $ `sys/praatM.h:829:9`! (U" (minimum)"); |
| 259 | } |
| 260 | |
| 261 | FORMcxx . . $ `sys/praatM.h:79:9`! (MODIFY_EACH__FFNet_setBias, U"FFNet: Set bias", nullptr) { |
| 262 | NATURALcxx . . $ `sys/praatM.h:120:9`! (layer, U"Layer", U"1") |
| 263 | NATURALcxx . . $ `sys/praatM.h:120:9`! (unit, U"Unit", U"1") |
| 264 | REALcxx . . $ `sys/praatM.h:92:9`! (value, U"Value", U"0.0") |
| 265 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 266 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 267 | MODIFY_EACHcxx . . $ `sys/praatM.h:1017:9`! (FFNet) |
| 268 | FFNet_setBiascxx . . $ FFNet_setBias(34542abea2e9fe0). (me, layer, unit, value); |
| 269 | MODIFY_EACH_ENDcxx . . $ `sys/praatM.h:1020:9`! |
| 270 | } |
| 271 | |
| 272 | FORMcxx . . $ `sys/praatM.h:79:9`! (MODIFY_EACH__FFNet_setWeight, U"FFNet: Set weight", nullptr) { |
| 273 | NATURALcxx . . $ `sys/praatM.h:120:9`! (layer, U"Layer", U"1") |
| 274 | NATURALcxx . . $ `sys/praatM.h:120:9`! (unitTo, U"Unit", U"1") |
| 275 | NATURALcxx . . $ `sys/praatM.h:120:9`! (unitFrom, U"Unit (from)", U"1") |
| 276 | REALcxx . . $ `sys/praatM.h:92:9`! (value, U"Value", U"0.0") |
| 277 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 278 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 279 | MODIFY_EACHcxx . . $ `sys/praatM.h:1017:9`! (FFNet) |
| 280 | FFNet_setWeightcxx . . $ FFNet_setWeight(d5a0143623e7172a). (me, layer, unitTo, unitFrom, value); |
| 281 | MODIFY_EACH_ENDcxx . . $ `sys/praatM.h:1020:9`! |
| 282 | } |
| 283 | |
| 284 | FORMcxx . . $ `sys/praatM.h:79:9`! (MODIFY_EACH__FFNet_reset, U"FFNet: Reset", U"FFNet: Reset...") { |
| 285 | COMMENTcxx . . $ `sys/praatM.h:136:9`! (U"Warning: this command destroys all previous learning.") |
| 286 | COMMENTcxx . . $ `sys/praatM.h:136:9`! (U"New weights will be randomly chosen from the interval [-range, +range].") |
| 287 | POSITIVEcxx . . $ `sys/praatM.h:104:9`! (range, U"Range", U"0.1") |
| 288 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 289 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 290 | MODIFY_EACHcxx . . $ `sys/praatM.h:1017:9`! (FFNet) |
| 291 | FFNet_resetcxx . . $ FFNet_reset(18677638c4811baa). (me, range); |
| 292 | MODIFY_EACH_ENDcxx . . $ `sys/praatM.h:1020:9`! |
| 293 | } |
| 294 | |
| 295 | FORMcxx . . $ `sys/praatM.h:79:9`! (MODIFY_EACH__FFNet_selectBiasesInLayer, U"FFNet: Select biases", U"FFNet: Select biases...") { |
| 296 | COMMENTcxx . . $ `sys/praatM.h:136:9`! (U"WARNING: This command induces very specific behaviour ") |
| 297 | COMMENTcxx . . $ `sys/praatM.h:136:9`! (U"during a following learning phase.") |
| 298 | NATURALcxx . . $ `sys/praatM.h:120:9`! (layer, U"Layer number", U"1") |
| 299 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 300 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 301 | MODIFY_EACHcxx . . $ `sys/praatM.h:1017:9`! (FFNet) |
| 302 | FFNet_selectBiasesInLayercxx . . $ FFNet_selectBiasesInLayer(bdd36ac37469be2a). (me, layer); |
| 303 | MODIFY_EACH_ENDcxx . . $ `sys/praatM.h:1020:9`! |
| 304 | } |
| 305 | |
| 306 | DIRECTcxx . . $ `sys/praatM.h:412:9`! (MODIFY_EACH__FFNet_selectAllWeights) { |
| 307 | MODIFY_EACHcxx . . $ `sys/praatM.h:1017:9`! (FFNet) |
| 308 | FFNet_selectAllWeightscxx . . $ FFNet_selectAllWeights(c48706d70006b0b5). (me); |
| 309 | MODIFY_EACH_ENDcxx . . $ `sys/praatM.h:1020:9`! |
| 310 | } |
| 311 | |
| 312 | FORMcxx . . $ `sys/praatM.h:79:9`! (NEW_FFNet_extractWeights, U"FFNet: Extract weights", U"FFNet: Extract weights...") { |
| 313 | NATURALcxx . . $ `sys/praatM.h:120:9`! (layer, U"Layer number", U"1") |
| 314 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 315 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 316 | CONVERT_EACH_TO_ONEcxx . . $ `sys/praatM.h:1119:9`! (FFNet) |
| 317 | autoTableOfRealcxx . . $ autoTableOfReal# result = FFNet_extractWeightscxx . . $ FFNet_extractWeights(94e04f3805c099a). (me, layer); |
| 318 | CONVERT_EACH_TO_ONE_ENDcxx . . $ `sys/praatM.h:1121:9`! (mycxx . . $ `melder/melder.h:44:9`! name.get()) |
| 319 | } |
| 320 | |
| 321 | FORMcxx . . $ `sys/praatM.h:79:9`! (NEW_FFNet_weightsToMatrix, U"FFNet: Weights to Matrix ", nullptr) { |
| 322 | COMMENTcxx . . $ `sys/praatM.h:136:9`! (U"Warning: Use \"Extract weights..\" instead.") |
| 323 | NATURAL1cxx . . $ `sys/praatM.h:116:9`! (layer, U"Layer number", U"1") |
| 324 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 325 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 326 | CONVERT_EACH_TO_ONEcxx . . $ `sys/praatM.h:1119:9`! (FFNet) |
| 327 | autoMatrixcxx . . $ autoMatrix# result = FFNet_weightsToMatrixcxx . . $ FFNet_weightsToMatrix(f8113d85bd23988). (me, layer, false); |
| 328 | CONVERT_EACH_TO_ONE_ENDcxx . . $ `sys/praatM.h:1121:9`! (mycxx . . $ `melder/melder.h:44:9`! name.get()) |
| 329 | } |
| 330 | |
| 331 | DIRECTcxx . . $ `sys/praatM.h:412:9`! (HINT__hint_FFNet_PatternList_classify) { |
| 332 | INFO_NONEcxx . . $ `sys/praatM.h:583:9`! |
| 333 | Melder_informationcxx . . $ Melder_information(3eb398314feba58b). (U"You can use the FFNet as a classifier by selecting a\n" |
| 334 | "FFNet and a PatternList together and choosing \"To Categories...\"."); |
| 335 | INFO_NONE_ENDcxx . . $ `sys/praatM.h:584:9`! |
| 336 | } |
| 337 | |
| 338 | DIRECTcxx . . $ `sys/praatM.h:412:9`! (HINT__hint_FFNet_PatternList_Categories_learn) { |
| 339 | INFO_NONEcxx . . $ `sys/praatM.h:583:9`! |
| 340 | Melder_informationcxx . . $ Melder_information(3eb398314feba58b). (U"You can teach a FFNet to classify by selecting a\n" |
| 341 | "FFNet, a PatternList and a Categories together and choosing \"Learn...\"."); |
| 342 | INFO_NONE_ENDcxx . . $ `sys/praatM.h:584:9`! |
| 343 | } |
| 344 | |
| 345 | /******************* FFNet && ActivationList ******************************************/ |
| 346 | |
| 347 | FORMcxx . . $ `sys/praatM.h:79:9`! (CONVERT_ONE_AND_ONE_TO_ONE__FFNet_ActivationList_to_Categories, U"FFNet & ActivationList: To Categories", 0) { |
| 348 | CHOICEcxx . . $ `sys/praatM.h:216:9`! (categorizationgMethod, U"Categorization method", 1) |
| 349 | OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"winner-takes-all") |
| 350 | OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"stochastic") |
| 351 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 352 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 353 | CONVERT_ONE_AND_ONE_TO_ONEcxx . . $ `sys/praatM.h:1165:9`! (FFNet, ActivationList) |
| 354 | autoCategoriescxx . . $ autoCategories# result = FFNet_ActivationList_to_Categoriescxx . . $ FFNet_ActivationList_to_Categories(6f76bf592dbe1a89). (me, you, categorizationgMethod); |
| 355 | CONVERT_ONE_AND_ONE_TO_ONE_ENDcxx . . $ `sys/praatM.h:1167:9`! (mycxx . . $ `melder/melder.h:44:9`! name.get(), U"_", yourcxx . . $ `melder/melder.h:46:9`! name.get()) |
| 356 | } |
| 357 | |
| 358 | /******************* FFNet && Eigen ******************************************/ |
| 359 | |
| 360 | FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_ONE_AND_ONE__FFNet_Eigen_drawIntersection, U"FFnet & Eigen: Draw intersection", 0) { |
| 361 | NATURAL1cxx . . $ `sys/praatM.h:116:9`! (pcx, U"X-component", U"1") |
| 362 | NATURAL1cxx . . $ `sys/praatM.h:116:9`! (pcy, U"Y-component", U"2") |
| 363 | REALcxx . . $ `sys/praatM.h:92:9`! (xmin, U"Xmin", U"0.0") |
| 364 | REALcxx . . $ `sys/praatM.h:92:9`! (xmax, U"Xmax", U"0.0") |
| 365 | REALcxx . . $ `sys/praatM.h:92:9`! (ymin, U"Ymin", U"0.0") |
| 366 | REALcxx . . $ `sys/praatM.h:92:9`! (ymax, U"Ymax", U"0.0") |
| 367 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 368 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 369 | GRAPHICS_ONE_AND_ONEcxx . . $ `sys/praatM.h:704:9`! (FFNet, Eigen) |
| 370 | FFNet_Eigen_drawIntersectioncxx . . $ FFNet_Eigen_drawIntersection(e9287a0ac5849478). (me, you, GRAPHICScxx . . $ `sys/praat.h:204:9`!, pcx, pcy, xmin, xmax, ymin, ymax); |
| 371 | GRAPHICS_ONE_AND_ONE_ENDcxx . . $ `sys/praatM.h:707:9`! |
| 372 | } |
| 373 | |
| 374 | /************************* FFNet && Categories **********************************/ |
| 375 | |
| 376 | DIRECTcxx . . $ `sys/praatM.h:412:9`! (CONVERT_ONE_AND_ONE_TO_ONE__FFNet_Categories_to_ActivationList) { |
| 377 | CONVERT_ONE_AND_ONE_TO_ONEcxx . . $ `sys/praatM.h:1165:9`! (FFNet, Categories) |
| 378 | autoActivationListcxx . . $ autoActivationList# result = FFNet_Categories_to_ActivationListcxx . . $ FFNet_Categories_to_ActivationList(d329d20655707d20). (me, you); |
| 379 | CONVERT_ONE_AND_ONE_TO_ONE_ENDcxx . . $ `sys/praatM.h:1167:9`! (mycxx . . $ `melder/melder.h:44:9`! name.get()); |
| 380 | } |
| 381 | |
| 382 | /************************* FFNet && Matrix **********************************/ |
| 383 | |
| 384 | FORMcxx . . $ `sys/praatM.h:79:9`! (CONVERT_ONE_AND_ONE_TO_ONE__FFNet_weightsFromMatrix, U"Replace weights by values from Matrix", nullptr) { |
| 385 | NATURAL1cxx . . $ `sys/praatM.h:116:9`! (layer, U"Layer", U"1") |
| 386 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 387 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 388 | CONVERT_ONE_AND_ONE_TO_ONEcxx . . $ `sys/praatM.h:1165:9`! (FFNet, Matrix) |
| 389 | autoFFNetcxx . . $ autoFFNet# result = FFNet_weightsFromMatrixcxx . . $ FFNet_weightsFromMatrix(f90347ced9fd4329). (me, you, layer); |
| 390 | CONVERT_ONE_AND_ONE_TO_ONE_ENDcxx . . $ `sys/praatM.h:1167:9`! (mycxx . . $ `melder/melder.h:44:9`! name.get()); |
| 391 | } |
| 392 | |
| 393 | /************************* FFNet && PatternList **********************************/ |
| 394 | |
| 395 | FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_ONE_AND_ONE__FFNet_PatternList_drawActivation, U"Draw an activation", nullptr) { |
| 396 | NATURAL1cxx . . $ `sys/praatM.h:116:9`! (row, U"PatternList (row) number", U"1"); |
| 397 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 398 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 399 | GRAPHICS_ONE_AND_ONEcxx . . $ `sys/praatM.h:704:9`! (FFNet, PatternList) |
| 400 | FFNet_PatternList_drawActivationcxx . . $ FFNet_PatternList_drawActivation(2a047a82cf73d891). (me, you, GRAPHICScxx . . $ `sys/praat.h:204:9`!, row); |
| 401 | GRAPHICS_ONE_AND_ONE_ENDcxx . . $ `sys/praatM.h:707:9`! |
| 402 | } |
| 403 | |
| 404 | FORMcxx . . $ `sys/praatM.h:79:9`! (CONVERT_ONE_AND_ONE_TO_ONE__FFNet_PatternList_to_Categories, U"FFNet & PatternList: To Categories", U"FFNet & PatternList: To Categories...") { |
| 405 | CHOICEcxx . . $ `sys/praatM.h:216:9`! (categorizationgMethod, U"Categorization method", 1) |
| 406 | OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"winner-takes-all") |
| 407 | OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"stochastic") |
| 408 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 409 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 410 | CONVERT_ONE_AND_ONE_TO_ONEcxx . . $ `sys/praatM.h:1165:9`! (FFNet, PatternList) |
| 411 | autoCategoriescxx . . $ autoCategories# result = FFNet_PatternList_to_Categoriescxx . . $ FFNet_PatternList_to_Categories(336e43d973dbd70d). (me, you, categorizationgMethod); |
| 412 | CONVERT_ONE_AND_ONE_TO_ONE_ENDcxx . . $ `sys/praatM.h:1167:9`! (mycxx . . $ `melder/melder.h:44:9`! name.get(), U"_", yourcxx . . $ `melder/melder.h:46:9`! name.get()) |
| 413 | } |
| 414 | |
| 415 | FORMcxx . . $ `sys/praatM.h:79:9`! (CONVERT_ONE_AND_ONE_TO_ONE__FFNet_PatternList_to_ActivationList, U"To activations in layer", nullptr) { |
| 416 | NATURALcxx . . $ `sys/praatM.h:120:9`! (layer, U"Layer", U"1") //TODO Change behaviour layer==0 now giveslayer = my numberOfLayers ?? |
| 417 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 418 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 419 | CONVERT_ONE_AND_ONE_TO_ONEcxx . . $ `sys/praatM.h:1165:9`! (FFNet, PatternList) |
| 420 | autoActivationListcxx . . $ autoActivationList# result = FFNet_PatternList_to_ActivationListcxx . . $ FFNet_PatternList_to_ActivationList(1cd8b75cf5b58fa3). (me, you, layer); |
| 421 | CONVERT_ONE_AND_ONE_TO_ONE_ENDcxx . . $ `sys/praatM.h:1167:9`! (mycxx . . $ `melder/melder.h:44:9`! name.get(), U"_", yourcxx . . $ `melder/melder.h:46:9`! name.get()) |
| 422 | } |
| 423 | |
| 424 | /*********** FFNet & PatternList & ActivationList **********************************/ |
| 425 | |
| 426 | FORMcxx . . $ `sys/praatM.h:79:9`! (QUERY_ONE_AND_ONE_AND_ONE_FOR_REAL__FFNet_PatternList_ActivationList_getTotalCosts, U"FFNet & PatternList & ActivationList: Get total costs", U"FFNet & PatternList & ActivationList: Get total costs...") { |
| 427 | CHOICEcxx . . $ `sys/praatM.h:216:9`! (costFunctionType, U"Cost function", 1) |
| 428 | OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"minimum-squared-error") |
| 429 | OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"minimum-cross-entropy") |
| 430 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 431 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 432 | QUERY_ONE_AND_ONE_AND_ONE_FOR_REALcxx . . $ `sys/praatM.h:893:9`! (FFNet, PatternList, ActivationList) |
| 433 | const double result = FFNet_PatternList_ActivationList_getCosts_totalcxx . . $ FFNet_PatternList_ActivationList_getCosts_total(7631ef2e6bcfefc). (me, you, him, costFunctionType); |
| 434 | QUERY_ONE_AND_ONE_AND_ONE_FOR_REAL_ENDcxx . . $ `sys/praatM.h:895:9`! (U"") |
| 435 | } |
| 436 | |
| 437 | FORMcxx . . $ `sys/praatM.h:79:9`! (QUERY_ONE_AND_ONE_AND_ONE_FOR_REAL__FFNet_PatternList_ActivationList_getAverageCosts, U"FFNet & PatternList & ActivationList: Get average costs", U"FFNet & PatternList & ActivationList: Get average costs...") { |
| 438 | CHOICEcxx . . $ `sys/praatM.h:216:9`! (costFunctionType, U"Cost function", 1) |
| 439 | OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"minimum-squared-error") |
| 440 | OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"minimum-cross-entropy") |
| 441 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 442 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 443 | QUERY_ONE_AND_ONE_AND_ONE_FOR_REALcxx . . $ `sys/praatM.h:893:9`! (FFNet, PatternList, ActivationList) |
| 444 | const double result = FFNet_PatternList_ActivationList_getCosts_averagecxx . . $ FFNet_PatternList_ActivationList_getCosts_average(7631ef2e6bcfefc). (me, you, him, costFunctionType); |
| 445 | QUERY_ONE_AND_ONE_AND_ONE_FOR_REAL_ENDcxx . . $ `sys/praatM.h:895:9`! (U"") |
| 446 | } |
| 447 | |
| 448 | FORMcxx . . $ `sys/praatM.h:79:9`! (MODIFY_FIRST_OF_ONE_AND_ONE_AND_ONE__FFNet_PatternList_ActivationList_learn, U"FFNet & PatternList & ActivationList: Learn", nullptr) { |
| 449 | // NATURAL (U"Layer", U"1") |
| 450 | NATURAL1cxx . . $ `sys/praatM.h:116:9`! (maximumNumberOfEpochs, U"Maximum number of epochs", U"100") |
| 451 | POSITIVEcxx . . $ `sys/praatM.h:104:9`! (tolerance, U"Tolerance of minimizer", U"1e-7") |
| 452 | CHOICEcxx . . $ `sys/praatM.h:216:9`! (costFunctionType, U"Cost function", 1) |
| 453 | OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"minimum-squared-error") |
| 454 | OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"minimum-cross-entropy") |
| 455 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 456 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 457 | MODIFY_FIRST_OF_ONE_AND_ONE_AND_ONEcxx . . $ `sys/praatM.h:1069:9`! (FFNet, PatternList, ActivationList) |
| 458 | FFNet_PatternList_ActivationList_learnSMcxx . . $ FFNet_PatternList_ActivationList_learnSM(204eec4d511c83df). (me, you, him, maximumNumberOfEpochs, tolerance, costFunctionType); |
| 459 | MODIFY_FIRST_OF_ONE_AND_ONE_AND_ONE_ENDcxx . . $ `sys/praatM.h:1072:9`! |
| 460 | } |
| 461 | |
| 462 | |
| 463 | FORMcxx . . $ `sys/praatM.h:79:9`! (MODIFY_FIRST_OF_ONE_AND_ONE_AND_ONE__FFNet_PatternList_ActivationList_learnSlow, U"FFNet & PatternList & ActivationList: Learn slow", nullptr) { |
| 464 | // NATURAL (U"Layer", U"1") |
| 465 | NATURALcxx . . $ `sys/praatM.h:120:9`! (maximumNumberOfEpochs, U"Maximum number of epochs", U"100") |
| 466 | POSITIVEcxx . . $ `sys/praatM.h:104:9`! (tolerance, U"Tolerance of minimizer", U"1e-7") |
| 467 | COMMENTcxx . . $ `sys/praatM.h:136:9`! (U"Specific for this minimization") |
| 468 | POSITIVEcxx . . $ `sys/praatM.h:104:9`! (learningRate, U"Learning rate", U"0.1") |
| 469 | REALcxx . . $ `sys/praatM.h:92:9`! (momentum, U"Momentum", U"0.9") |
| 470 | CHOICEcxx . . $ `sys/praatM.h:216:9`! (costFunctionType, U"Cost function", 1) |
| 471 | OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"minimum-squared-error") |
| 472 | OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"minimum-cross-entropy") |
| 473 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 474 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 475 | MODIFY_FIRST_OF_ONE_AND_ONE_AND_ONEcxx . . $ `sys/praatM.h:1069:9`! (FFNet, PatternList, ActivationList) |
| 476 | FFNet_PatternList_ActivationList_learnSDcxx . . $ FFNet_PatternList_ActivationList_learnSD(833ed74a47f2a4d2). (me, you, him, maximumNumberOfEpochs, tolerance, learningRate, momentum, costFunctionType); |
| 477 | MODIFY_FIRST_OF_ONE_AND_ONE_AND_ONE_ENDcxx . . $ `sys/praatM.h:1072:9`! |
| 478 | } |
| 479 | |
| 480 | /*********** FFNet & PatternList & Categories **********************************/ |
| 481 | |
| 482 | FORMcxx . . $ `sys/praatM.h:79:9`! (QUERY_ONE_AND_ONE_AND_ONE_FOR_REAL__FFNet_PatternList_Categories_getTotalCosts, U"FFNet & PatternList & Categories: Get total costs", U"FFNet & PatternList & Categories: Get total costs...") { |
| 483 | CHOICEcxx . . $ `sys/praatM.h:216:9`! (costFunctionType, U"Cost function", 1) |
| 484 | OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"minimum-squared-error") |
| 485 | OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"minimum-cross-entropy") |
| 486 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 487 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 488 | QUERY_ONE_AND_ONE_AND_ONE_FOR_REALcxx . . $ `sys/praatM.h:893:9`! (FFNet, PatternList, Categories) |
| 489 | const double result = FFNet_PatternList_Categories_getCosts_totalcxx . . $ FFNet_PatternList_Categories_getCosts_total(75399e830abd2f4f). (me, you, him, costFunctionType); |
| 490 | QUERY_ONE_AND_ONE_AND_ONE_FOR_REAL_ENDcxx . . $ `sys/praatM.h:895:9`! (U" (total costs)") |
| 491 | } |
| 492 | |
| 493 | FORMcxx . . $ `sys/praatM.h:79:9`! (QUERY_ONE_AND_ONE_AND_ONE_FOR_REAL__FFNet_PatternList_Categories_getAverageCosts, U"FFNet & PatternList & Categories: Get average costs", U"FFNet & PatternList & Categories: Get average costs...") { |
| 494 | CHOICEcxx . . $ `sys/praatM.h:216:9`! (costFunctionType, U"Cost function", 1) |
| 495 | OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"minimum-squared-error") |
| 496 | OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"minimum-cross-entropy") |
| 497 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 498 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 499 | QUERY_ONE_AND_ONE_AND_ONE_FOR_REALcxx . . $ `sys/praatM.h:893:9`! (FFNet, PatternList, Categories) |
| 500 | const double result = FFNet_PatternList_Categories_getCosts_averagecxx . . $ FFNet_PatternList_Categories_getCosts_average(75399e830abd2f4f). (me, you, him, costFunctionType); |
| 501 | QUERY_ONE_AND_ONE_AND_ONE_FOR_REAL_ENDcxx . . $ `sys/praatM.h:895:9`! (U" (average costs)") |
| 502 | } |
| 503 | |
| 504 | FORMcxx . . $ `sys/praatM.h:79:9`! (MODIFY_FIRST_OF_ONE_AND_ONE_AND_ONE__FFNet_PatternList_Categories_learn, U"FFNet & PatternList & Categories: Learn", U"FFNet & PatternList & Categories: Learn...") { |
| 505 | NATURALcxx . . $ `sys/praatM.h:120:9`! (maximumNumberOfEpochs, U"Maximum number of epochs", U"100") |
| 506 | POSITIVEcxx . . $ `sys/praatM.h:104:9`! (tolerance, U"Tolerance of minimizer", U"1e-7") |
| 507 | CHOICEcxx . . $ `sys/praatM.h:216:9`! (costFunctionType, U"Cost function", 1) |
| 508 | OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"minimum-squared-error") |
| 509 | OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"minimum-cross-entropy") |
| 510 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 511 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 512 | MODIFY_FIRST_OF_ONE_AND_ONE_AND_ONEcxx . . $ `sys/praatM.h:1069:9`! (FFNet, PatternList, Categories) |
| 513 | FFNet_PatternList_Categories_learnSMcxx . . $ FFNet_PatternList_Categories_learnSM(bdb6f2b0dfbc4cd3). (me, you, him, maximumNumberOfEpochs, tolerance, costFunctionType); |
| 514 | MODIFY_FIRST_OF_ONE_AND_ONE_AND_ONE_ENDcxx . . $ `sys/praatM.h:1072:9`! |
| 515 | } |
| 516 | |
| 517 | FORMcxx . . $ `sys/praatM.h:79:9`! (MODIFY_FIRST_OF_ONE_AND_ONE_AND_ONE__FFNet_PatternList_Categories_learnSlow, U"FFNet & PatternList & Categories: Learn slow", U"FFNet & PatternList & Categories: Learn slow...") { |
| 518 | NATURALcxx . . $ `sys/praatM.h:120:9`! (maximumNumberOfEpochs, U"Maximum number of epochs", U"100") |
| 519 | POSITIVEcxx . . $ `sys/praatM.h:104:9`! (tolerance, U"Tolerance of minimizer", U"1e-7") |
| 520 | COMMENTcxx . . $ `sys/praatM.h:136:9`! (U"Specific for this minimization") |
| 521 | POSITIVEcxx . . $ `sys/praatM.h:104:9`! (learningRate, U"Learning rate", U"0.1") |
| 522 | REALcxx . . $ `sys/praatM.h:92:9`! (momentum, U"Momentum", U"0.9") |
| 523 | CHOICEcxx . . $ `sys/praatM.h:216:9`! (costFunctionType, U"Cost function", 1) |
| 524 | OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"minimum-squared-error") |
| 525 | OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"minimum-cross-entropy") |
| 526 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 527 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 528 | MODIFY_FIRST_OF_ONE_AND_ONE_AND_ONEcxx . . $ `sys/praatM.h:1069:9`! (FFNet, PatternList, Categories) |
| 529 | FFNet_PatternList_Categories_learnSDcxx . . $ FFNet_PatternList_Categories_learnSD(3f5505a6bae7c94a). (me, you, him, maximumNumberOfEpochs,tolerance, learningRate, momentum, costFunctionType); |
| 530 | MODIFY_FIRST_OF_ONE_AND_ONE_AND_ONE_ENDcxx . . $ `sys/praatM.h:1072:9`! |
| 531 | } |
| 532 | |
| 533 | /*********** FFNet & PCA **********************************/ |
| 534 | |
| 535 | FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_ONE_AND_ONE__FFNet_PCA_drawDecisionPlaneInEigenspace, U"FFNet & PCA: Draw decision plane", nullptr) { |
| 536 | NATURAL1cxx . . $ `sys/praatM.h:116:9`! (unitNumber, U"Unit number", U"1") |
| 537 | NATURAL1cxx . . $ `sys/praatM.h:116:9`! (layer, U"Layer number", U"1") |
| 538 | NATURAL1cxx . . $ `sys/praatM.h:116:9`! (horizontalEigenvectorNumber, U"Horizontal eigenvector number", U"1") |
| 539 | NATURAL1cxx . . $ `sys/praatM.h:116:9`! (verticalEigenvectorNumber, U"Vertical eigenvector number", U"2") |
| 540 | REALcxx . . $ `sys/praatM.h:92:9`! (xmin, U"left Horizontal range", U"0.0") |
| 541 | REALcxx . . $ `sys/praatM.h:92:9`! (xmax, U"right Horizontal range", U"0.0") |
| 542 | REALcxx . . $ `sys/praatM.h:92:9`! (ymin, U"left Vertical range", U"0.0") |
| 543 | REALcxx . . $ `sys/praatM.h:92:9`! (ymax, U"right Vertical range", U"0.0") |
| 544 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 545 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 546 | GRAPHICS_ONE_AND_ONEcxx . . $ `sys/praatM.h:704:9`! (FFNet, PCA) |
| 547 | FFNet_Eigen_drawDecisionPlaneInEigenspacecxx . . $ FFNet_Eigen_drawDecisionPlaneInEigenspace(636ce0592cd4cc71). (me, you, GRAPHICScxx . . $ `sys/praat.h:204:9`!, unitNumber, layer, horizontalEigenvectorNumber, verticalEigenvectorNumber, xmin, xmax, ymin, ymax); |
| 548 | GRAPHICS_ONE_AND_ONE_ENDcxx . . $ `sys/praatM.h:707:9`! |
| 549 | } |
| 550 | |
| 551 | /*********** PatternList & Categories **********************************/ |
| 552 | |
| 553 | FORMcxx . . $ `sys/praatM.h:79:9`! (CONVERT_ONE_AND_ONE_TO_ONE__PatternList_Categories_to_FFNet, U"PatternList & Categories: To FFNet", U"PatternList & Categories: To FFNet...") { |
| 554 | NATURAL0cxx . . $ `sys/praatM.h:112:9`! (numberOfUnitsInHiddenLayer1, U"Number of units in hidden layer 1", U"0") |
| 555 | NATURAL0cxx . . $ `sys/praatM.h:112:9`! (numberOfUnitsInHiddenLayer2, U"Number of units in hidden layer 2", U"0") |
| 556 | OKcxx . . $ `sys/praatM.h:327:9`! |
| 557 | DOcxx . . $ `sys/praatM.h:354:9`! |
| 558 | CONVERT_ONE_AND_ONE_TO_ONEcxx . . $ `sys/praatM.h:1165:9`! (PatternList, Categories) |
| 559 | autoFFNetcxx . . $ autoFFNet# result = PatternList_Categories_to_FFNetcxx . . $ PatternList_Categories_to_FFNet(b83e1b8b7bb92144). (me, you, numberOfUnitsInHiddenLayer1, numberOfUnitsInHiddenLayer2); |
| 560 | autostring32cxx . . $ autostring32# name = resultcxx . . $ _autostring#_autostring(39021ecceedcc7d2). ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). namecxx . . $ structThing#name..movecxx . . $ _autostring#move(bd43c759570f178f).(); |
| 561 | CONVERT_ONE_AND_ONE_TO_ONE_ENDcxx . . $ `sys/praatM.h:1167:9`! (name.get()) |
| 562 | } |
| 563 | |
| 564 | void praat_uvafon_FFNet_initcxx . . $ praat_uvafon_FFNet_init(49f6e7a06ebc5aa8). () { |
| 565 | Thing_recognizeClassesByNamecxx . . $ Thing_recognizeClassesByName(b2b8400651464df9). (classFFNetcxx . . $ classFFNet.); |
| 566 | |
| 567 | praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Objects", U"New", U"Feedforward neural networks", nullptr, 0, nullptr); |
| 568 | praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Objects", U"New", U"Create FFNet...", nullptr, 1, |
| 569 | CREATE_ONE__FFNet_create); |
| 570 | praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Objects", U"New", U"Create iris example...", nullptr, 1, |
| 571 | CREATE_MULTIPLE__FFNet_createIrisExample); |
| 572 | praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Objects", U"New", U"Advanced", nullptr, 1, nullptr); |
| 573 | praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Objects", U"New", U"Create FFNet (linear outputs)...", nullptr, 2, |
| 574 | CREATE_ONE__FFNet_create_linearOutputs); |
| 575 | praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Objects", U"New", U"Create PatternList... || Create Pattern...", |
| 576 | nullptr, 2, CREATE_ONE__PatternList_create); // alternative GuiMenu_DEPRECATED_2015 |
| 577 | praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Objects", U"New", U"Create Categories...", nullptr, 2, |
| 578 | CREATE_ONE__Categories_create); |
| 579 | |
| 580 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 0, U"FFNet help", nullptr, 0, |
| 581 | HELP__FFNet_help); |
| 582 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 0, DRAW_BUTTON, nullptr, 0, nullptr); |
| 583 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 0, U"Draw topology", nullptr, 1, |
| 584 | GRAPHICS_EACH__FFNet_drawTopology); |
| 585 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 0, U"Draw weights...", nullptr, 1, |
| 586 | GRAPHICS_EACH__FFNet_drawWeights); |
| 587 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 0, U"Draw weights to layer...", nullptr, GuiMenu_DEPTH_1cxx . . $ `sys/Gui.h:862:9`! | GuiMenu_HIDDENcxx . . $ `sys/Gui.h:869:9`!, |
| 588 | GRAPHICS_EACH__FFNet_drawWeightsToLayer); |
| 589 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 0, U"Draw cost history...", nullptr, 1, |
| 590 | GRAPHICS_EACH__FFNet_drawCostHistory); |
| 591 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 0, QUERY_BUTTON, nullptr, 0, nullptr); |
| 592 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 0, U"Query structure", nullptr, 1, nullptr); |
| 593 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 1, U"Get number of layers", nullptr, 2, |
| 594 | QUERY_ONE_FOR_INTEGER__FFNet_getNumberOfLayers); |
| 595 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 1, U"Get number of outputs", nullptr, 2, |
| 596 | QUERY_ONE_FOR_INTEGER__FFNet_getNumberOfOutputs); |
| 597 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 1, U"Get number of hidden units...", nullptr, 2, |
| 598 | QUERY_ONE_FOR_INTEGER__FFNet_getNumberOfHiddenUnits); |
| 599 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 1, U"Get number of inputs", nullptr, 2, |
| 600 | QUERY_ONE_FOR_INTEGER__FFNet_getNumberOfInputs); |
| 601 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 1, U"Get number of hidden weights...", nullptr, 2, |
| 602 | QUERY_ONE_FOR_INTEGER__FFNet_getNumberOfHiddenWeights); |
| 603 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 1, U"Get number of output weights", nullptr, 2, |
| 604 | QUERY_ONE_FOR_INTEGER__FFNet_getNumberOfOutputWeights); |
| 605 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 1, U"Get category of output unit...", nullptr, 2, |
| 606 | QUERY_ONE_FOR_STRING__FFNet_getCategoryOfOutputUnit); |
| 607 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 1, U"Get output unit of category...", nullptr, 2, |
| 608 | QUERY_ONE_FOR_INTEGER__FFNet_getOutputUnitOfCategory); |
| 609 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 0, U"-- FFNet weights --", nullptr, 1, nullptr); |
| 610 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 1, U"Get bias...", nullptr, 1, |
| 611 | QUERY_ONE_FOR_REAL__FFNet_getBias); |
| 612 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 1, U"Get weight...", nullptr, 1, |
| 613 | QUERY_ONE_FOR_REAL__FFNet_getWeight); |
| 614 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 1, U"Get minimum", nullptr, 1, |
| 615 | QUERY_ONE_FOR_REAL__FFNet_getMinimum); |
| 616 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 0, MODIFY_BUTTON, nullptr, 0, nullptr); |
| 617 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 0, U"Set bias...", nullptr, 1, |
| 618 | MODIFY_EACH__FFNet_setBias); |
| 619 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 0, U"Set weight...", nullptr, 1, |
| 620 | MODIFY_EACH__FFNet_setWeight); |
| 621 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 0, U"Reset...", nullptr, 1, |
| 622 | MODIFY_EACH__FFNet_reset); |
| 623 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 0, U"Select biases...", nullptr, 1, |
| 624 | MODIFY_EACH__FFNet_selectBiasesInLayer); |
| 625 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 0, U"Select all weights", nullptr, 1, |
| 626 | MODIFY_EACH__FFNet_selectAllWeights); |
| 627 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 0, EXTRACT_BUTTON, nullptr, 0, nullptr); |
| 628 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 0, U"Extract weights...", nullptr, 1, |
| 629 | NEW_FFNet_extractWeights); |
| 630 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 0, U"Weights to Matrix...", nullptr, GuiMenu_DEPTH_1cxx . . $ `sys/Gui.h:862:9`! | GuiMenu_HIDDENcxx . . $ `sys/Gui.h:869:9`!, |
| 631 | NEW_FFNet_weightsToMatrix); |
| 632 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 0, U"& PatternList: Classify?", nullptr, 0, |
| 633 | HINT__hint_FFNet_PatternList_classify); |
| 634 | praat_addAction1cxx . . $ `sys/praat.h:72:9`! (classFFNet, 0, U"& PatternList & Categories: Learn?", nullptr, 0, |
| 635 | HINT__hint_FFNet_PatternList_Categories_learn); |
| 636 | |
| 637 | praat_addAction2cxx . . $ `sys/praat.h:73:9`! (classFFNet, 1, classActivationList, 1, U"Analyse", nullptr, 0, nullptr); |
| 638 | praat_addAction2cxx . . $ `sys/praat.h:73:9`! (classFFNet, 1, classActivationList, 1, U"To Categories...", nullptr, 0, |
| 639 | CONVERT_ONE_AND_ONE_TO_ONE__FFNet_ActivationList_to_Categories); |
| 640 | |
| 641 | praat_addAction2cxx . . $ `sys/praat.h:73:9`! (classFFNet, 1, classEigen, 1, U"Draw", nullptr, 0, nullptr); |
| 642 | praat_addAction2cxx . . $ `sys/praat.h:73:9`! (classFFNet, 1, classEigen, 1, U"Draw hyperplane intersections", nullptr, 0, |
| 643 | GRAPHICS_ONE_AND_ONE__FFNet_Eigen_drawIntersection); |
| 644 | |
| 645 | praat_addAction2cxx . . $ `sys/praat.h:73:9`! (classFFNet, 1, classCategories, 1, U"Analyse", nullptr, 0, nullptr); |
| 646 | praat_addAction2cxx . . $ `sys/praat.h:73:9`! (classFFNet, 1, classCategories, 1, U"To ActivationList", nullptr, 0, |
| 647 | CONVERT_ONE_AND_ONE_TO_ONE__FFNet_Categories_to_ActivationList); |
| 648 | |
| 649 | praat_addAction2cxx . . $ `sys/praat.h:73:9`! (classFFNet, 1, classMatrix, 1, U"Modify", nullptr, 0, nullptr); |
| 650 | praat_addAction2cxx . . $ `sys/praat.h:73:9`! (classFFNet, 1, classMatrix, 1, U"Weights from Matrix...", nullptr, 0, |
| 651 | CONVERT_ONE_AND_ONE_TO_ONE__FFNet_weightsFromMatrix); |
| 652 | |
| 653 | praat_addAction2cxx . . $ `sys/praat.h:73:9`! (classFFNet, 1, classPatternList, 1, U"Draw", nullptr, 0, nullptr); |
| 654 | praat_addAction2cxx . . $ `sys/praat.h:73:9`! (classFFNet, 1, classPatternList, 1, U"Draw activation...", nullptr, 0, |
| 655 | GRAPHICS_ONE_AND_ONE__FFNet_PatternList_drawActivation); |
| 656 | praat_addAction2cxx . . $ `sys/praat.h:73:9`! (classFFNet, 1, classPatternList, 1, U"Analyse", nullptr, 0, nullptr); |
| 657 | praat_addAction2cxx . . $ `sys/praat.h:73:9`! (classFFNet, 1, classPatternList, 1, U"To Categories...", nullptr, 0, |
| 658 | CONVERT_ONE_AND_ONE_TO_ONE__FFNet_PatternList_to_Categories); |
| 659 | praat_addAction2cxx . . $ `sys/praat.h:73:9`! (classFFNet, 1, classPatternList, 1, U"To ActivationList...", nullptr, 0, |
| 660 | CONVERT_ONE_AND_ONE_TO_ONE__FFNet_PatternList_to_ActivationList); |
| 661 | |
| 662 | praat_addAction3cxx . . $ `sys/praat.h:74:9`! (classFFNet, 1, classPatternList, 1, classActivationList, 1, U"Get total costs...", nullptr, 0, |
| 663 | QUERY_ONE_AND_ONE_AND_ONE_FOR_REAL__FFNet_PatternList_ActivationList_getTotalCosts); |
| 664 | praat_addAction3cxx . . $ `sys/praat.h:74:9`! (classFFNet, 1, classPatternList, 1, classActivationList, 1, U"Get average costs...", nullptr, 0, |
| 665 | QUERY_ONE_AND_ONE_AND_ONE_FOR_REAL__FFNet_PatternList_ActivationList_getAverageCosts); |
| 666 | praat_addAction3cxx . . $ `sys/praat.h:74:9`! (classFFNet, 1, classPatternList, 1, classActivationList, 1, U"Learn", nullptr, 0, nullptr); |
| 667 | praat_addAction3cxx . . $ `sys/praat.h:74:9`! (classFFNet, 1, classPatternList, 1, classActivationList, 1, U"Learn...", nullptr, 0, |
| 668 | MODIFY_FIRST_OF_ONE_AND_ONE_AND_ONE__FFNet_PatternList_ActivationList_learn); |
| 669 | praat_addAction3cxx . . $ `sys/praat.h:74:9`! (classFFNet, 1, classPatternList, 1, classActivationList, 1, U"Learn slow...", nullptr, 0, |
| 670 | MODIFY_FIRST_OF_ONE_AND_ONE_AND_ONE__FFNet_PatternList_ActivationList_learnSlow); |
| 671 | |
| 672 | praat_addAction3cxx . . $ `sys/praat.h:74:9`! (classFFNet, 1, classPatternList, 1, classCategories, 1, U"Get total costs...", nullptr, 0, |
| 673 | QUERY_ONE_AND_ONE_AND_ONE_FOR_REAL__FFNet_PatternList_Categories_getTotalCosts); |
| 674 | praat_addAction3cxx . . $ `sys/praat.h:74:9`! (classFFNet, 1, classPatternList, 1, classCategories, 1, U"Get average costs...", nullptr, 0, |
| 675 | QUERY_ONE_AND_ONE_AND_ONE_FOR_REAL__FFNet_PatternList_Categories_getAverageCosts); |
| 676 | praat_addAction3cxx . . $ `sys/praat.h:74:9`! (classFFNet, 1, classPatternList, 1, classCategories, 1, U"Learn", nullptr, 0, nullptr); |
| 677 | praat_addAction3cxx . . $ `sys/praat.h:74:9`! (classFFNet, 1, classPatternList, 1, classCategories, 1, U"Learn...", nullptr, 0, |
| 678 | MODIFY_FIRST_OF_ONE_AND_ONE_AND_ONE__FFNet_PatternList_Categories_learn); |
| 679 | praat_addAction3cxx . . $ `sys/praat.h:74:9`! (classFFNet, 1, classPatternList, 1, classCategories, 1, U"Learn slow...", nullptr, 0, |
| 680 | MODIFY_FIRST_OF_ONE_AND_ONE_AND_ONE__FFNet_PatternList_Categories_learnSlow); |
| 681 | |
| 682 | praat_addAction2cxx . . $ `sys/praat.h:73:9`! (classFFNet, 1, classPCA, 1, U"Draw decision plane...", nullptr, 0, |
| 683 | GRAPHICS_ONE_AND_ONE__FFNet_PCA_drawDecisionPlaneInEigenspace); |
| 684 | |
| 685 | praat_addAction2cxx . . $ `sys/praat.h:73:9`! (classPatternList, 1, classCategories, 1, U"To FFNet...", nullptr, 0, |
| 686 | CONVERT_ONE_AND_ONE_TO_ONE__PatternList_Categories_to_FFNet); |
| 687 | |
| 688 | INCLUDE_MANPAGEScxx . . $ `sys/praat.h:239:9`! (manual_FFNet_init) |
| 689 | } |
| 690 | |
| 691 | /* End of file praat_FFnet_init.cpp */ |