tx · 77xeX439fatJQmcWto8xu7HGjenab7FzkEMitYqdTE7J 3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY: -0.01000000 Waves 2024.05.28 01:36 [3125009] smart account 3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY > SELF 0.00000000 Waves
{ "type": 13, "id": "77xeX439fatJQmcWto8xu7HGjenab7FzkEMitYqdTE7J", "fee": 1000000, "feeAssetId": null, "timestamp": 1716849355926, "version": 2, "chainId": 84, "sender": "3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY", "senderPublicKey": "2AWdnJuBMzufXSjTvzVcawBQQhnhF1iXR6QNVgwn33oc", "proofs": [ "5QHXF2qDCN2YLekVugMzKFkMM9ot4MBxrDbWqkCNAvpgmF3istd7hVpein7XwyVWYhZUo1LhmjRrVaFH1mygk4JN" ], "script": "base64:BwIICAISBAoCAQELAA93ZWlnaHRzX2xheWVyXzEJAMwIAgkAzAgCALCr+v///////wEJAMwIAgCN5gMFA25pbAkAzAgCCQDMCAIAjrH6////////AQkAzAgCAPeC/P///////wEFA25pbAkAzAgCCQDMCAIAyYj/////////AQkAzAgCAMf+BgUDbmlsCQDMCAIJAMwIAgCQtPv///////8BCQDMCAIA4Kf8////////AQUDbmlsBQNuaWwADmJpYXNlc19sYXllcl8xCQDMCAIAoLf+////////AQkAzAgCANW0AQkAzAgCANeM/f///////wEJAMwIAgCHlAEFA25pbAAPd2VpZ2h0c19sYXllcl8yCQDMCAIJAMwIAgCYsPv///////8BCQDMCAIAwa8DCQDMCAIAk4IECQDMCAIA5KYCBQNuaWwJAMwIAgkAzAgCAIKYBAkAzAgCAJrC/P///////wEJAMwIAgC9qPz///////8BCQDMCAIArfz9////////AQUDbmlsBQNuaWwADmJpYXNlc19sYXllcl8yCQDMCAIAgIn+////////AQkAzAgCAIrmAQUDbmlsAA93ZWlnaHRzX2xheWVyXzMJAMwIAgkAzAgCAMzF+v///////wEJAMwIAgDF5wUFA25pbAUDbmlsAA5iaWFzZXNfbGF5ZXJfMwkAzAgCAP3w/////////wEFA25pbAEQbGluZWFyX2ZvcndhcmRfMQMFaW5wdXQHd2VpZ2h0cwZiaWFzZXMEDXdlaWdodGVkX3N1bTEJAGQCCQBpAgkAZAIJAGgCCQCRAwIFBWlucHV0AAAJAJEDAgkAkQMCBQd3ZWlnaHRzAAAAAAkAaAIJAJEDAgUFaW5wdXQAAQkAkQMCCQCRAwIFB3dlaWdodHMAAAABAJBOCQCRAwIFBmJpYXNlcwAABA13ZWlnaHRlZF9zdW0yCQBkAgkAaQIJAGQCCQBoAgkAkQMCBQVpbnB1dAAACQCRAwIJAJEDAgUHd2VpZ2h0cwABAAAJAGgCCQCRAwIFBWlucHV0AAEJAJEDAgkAkQMCBQd3ZWlnaHRzAAEAAQCQTgkAkQMCBQZiaWFzZXMAAQQNd2VpZ2h0ZWRfc3VtMwkAZAIJAGkCCQBkAgkAaAIJAJEDAgUFaW5wdXQAAAkAkQMCCQCRAwIFB3dlaWdodHMAAgAACQBoAgkAkQMCBQVpbnB1dAABCQCRAwIJAJEDAgUHd2VpZ2h0cwACAAEAkE4JAJEDAgUGYmlhc2VzAAIEDXdlaWdodGVkX3N1bTQJAGQCCQBpAgkAZAIJAGgCCQCRAwIFBWlucHV0AAAJAJEDAgkAkQMCBQd3ZWlnaHRzAAMAAAkAaAIJAJEDAgUFaW5wdXQAAQkAkQMCCQCRAwIFB3dlaWdodHMAAwABAJBOCQCRAwIFBmJpYXNlcwADCQDMCAIFDXdlaWdodGVkX3N1bTEJAMwIAgUNd2VpZ2h0ZWRfc3VtMgkAzAgCBQ13ZWlnaHRlZF9zdW0zCQDMCAIFDXdlaWdodGVkX3N1bTQFA25pbAEQbGluZWFyX2ZvcndhcmRfMgMFaW5wdXQHd2VpZ2h0cwZiaWFzZXMEDXdlaWdodGVkX3N1bTEJAGQCCQBpAgkAZAIJAGQCCQBkAgkAaAIJAJEDAgUFaW5wdXQAAAkAkQMCCQCRAwIFB3dlaWdodHMAAAAACQBoAgkAkQMCBQVpbnB1dAABCQCRAwIJAJEDAgUHd2VpZ2h0cwAAAAEJAGgCCQCRAwIFBWlucHV0AAIJAJEDAgkAkQMCBQd3ZWlnaHRzAAAAAgkAaAIJAJEDAgUFaW5wdXQAAwkAkQMCCQCRAwIFB3dlaWdodHMAAAADAJBOCQCRAwIFBmJpYXNlcwAABA13ZWlnaHRlZF9zdW0yCQBkAgkAaQIJAGQCCQBkAgkAZAIJAGgCCQCRAwIFBWlucHV0AAAJAJEDAgkAkQMCBQd3ZWlnaHRzAAEAAAkAaAIJAJEDAgUFaW5wdXQAAQkAkQMCCQCRAwIFB3dlaWdodHMAAQABCQBoAgkAkQMCBQVpbnB1dAACCQCRAwIJAJEDAgUHd2VpZ2h0cwABAAIJAGgCCQCRAwIFBWlucHV0AAMJAJEDAgkAkQMCBQd3ZWlnaHRzAAEAAwCQTgkAkQMCBQZiaWFzZXMAAQkAzAgCBQ13ZWlnaHRlZF9zdW0xCQDMCAIFDXdlaWdodGVkX3N1bTIFA25pbAEQbGluZWFyX2ZvcndhcmRfMwMFaW5wdXQHd2VpZ2h0cwZiaWFzZXMEDXdlaWdodGVkX3N1bTEJAGQCCQBpAgkAZAIJAGgCCQCRAwIFBWlucHV0AAAJAJEDAgkAkQMCBQd3ZWlnaHRzAAAAAAkAaAIJAJEDAgUFaW5wdXQAAQkAkQMCCQCRAwIFB3dlaWdodHMAAAABAJBOCQCRAwIFBmJpYXNlcwAACQDMCAIFDXdlaWdodGVkX3N1bTEFA25pbAEHc2lnbW9pZAEFaW5wdXQDCQBmAgDwsf////////8BBQVpbnB1dAAAAwkAZgIFBWlucHV0AJBOAJBOCQBkAgCIJwkAaQIFBWlucHV0AAIBEnNpZ21vaWRfYWN0aXZhdGlvbgIGaW5wdXRzC251bV9vdXRwdXRzCQDMCAIJAQdzaWdtb2lkAQkAkQMCBQZpbnB1dHMAAAkAzAgCCQEHc2lnbW9pZAEJAJEDAgUGaW5wdXRzAAEJAMwIAgkBB3NpZ21vaWQBCQCRAwIFBmlucHV0cwACCQDMCAIJAQdzaWdtb2lkAQkAkQMCBQZpbnB1dHMAAwUDbmlsAQFpAQdwcmVkaWN0AgJ4MQJ4MgQJeDFfc2NhbGVkCQBoAgUCeDEAkE4ECXgyX3NjYWxlZAkAaAIFAngyAJBOBAZpbnB1dHMJAMwIAgUJeDFfc2NhbGVkCQDMCAIFCXgyX3NjYWxlZAUDbmlsBAJ6MQkBEGxpbmVhcl9mb3J3YXJkXzEDBQZpbnB1dHMFD3dlaWdodHNfbGF5ZXJfMQUOYmlhc2VzX2xheWVyXzEEAmExCQESc2lnbW9pZF9hY3RpdmF0aW9uAgUCejEABAQCejIJARBsaW5lYXJfZm9yd2FyZF8yAwUCYTEFD3dlaWdodHNfbGF5ZXJfMgUOYmlhc2VzX2xheWVyXzIEAmEyCQESc2lnbW9pZF9hY3RpdmF0aW9uAgUCejIAAgQCejMJARBsaW5lYXJfZm9yd2FyZF8zAwUCYTIFD3dlaWdodHNfbGF5ZXJfMwUOYmlhc2VzX2xheWVyXzMEAmEzCQEHc2lnbW9pZAEJAJEDAgUCejMAAAQGcmVzdWx0CQBpAgUCYTMAkE4EDWRlYnVnX291dHB1dHMJAMwIAgkBDEludGVnZXJFbnRyeQICCmRlYnVnX3oxXzEJAJEDAgUCejEAAAkAzAgCCQEMSW50ZWdlckVudHJ5AgIKZGVidWdfYTFfMQkAkQMCBQJhMQAACQDMCAIJAQxJbnRlZ2VyRW50cnkCAgpkZWJ1Z196MV8yCQCRAwIFAnoxAAEJAMwIAgkBDEludGVnZXJFbnRyeQICCmRlYnVnX2ExXzIJAJEDAgUCYTEAAQkAzAgCCQEMSW50ZWdlckVudHJ5AgIKZGVidWdfejFfMwkAkQMCBQJ6MQACCQDMCAIJAQxJbnRlZ2VyRW50cnkCAgpkZWJ1Z19hMV8zCQCRAwIFAmExAAIJAMwIAgkBDEludGVnZXJFbnRyeQICCmRlYnVnX3oxXzQJAJEDAgUCejEAAwkAzAgCCQEMSW50ZWdlckVudHJ5AgIKZGVidWdfYTFfNAkAkQMCBQJhMQADCQDMCAIJAQxJbnRlZ2VyRW50cnkCAgpkZWJ1Z196Ml8xCQCRAwIFAnoyAAAJAMwIAgkBDEludGVnZXJFbnRyeQICCmRlYnVnX2EyXzEJAJEDAgUCYTIAAAkAzAgCCQEMSW50ZWdlckVudHJ5AgIKZGVidWdfejJfMgkAkQMCBQJ6MgABCQDMCAIJAQxJbnRlZ2VyRW50cnkCAgpkZWJ1Z19hMl8yCQCRAwIFAmEyAAEJAMwIAgkBDEludGVnZXJFbnRyeQICCmRlYnVnX3ozXzEJAJEDAgUCejMAAAkAzAgCCQEMSW50ZWdlckVudHJ5AgIIZGVidWdfYTMFAmEzCQDMCAIJAQxJbnRlZ2VyRW50cnkCAgxkZWJ1Z19yZXN1bHQFBnJlc3VsdAUDbmlsCQCUCgIFDWRlYnVnX291dHB1dHMFBnJlc3VsdAAm9hna", "height": 3125009, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CNFpZGM2nh9eCv3Be6tZCpsq56xEdT5MZiPrBPSRSzQy Next: 7gyyxq7kNy5MpuqG5QeQt6N6eZaZWMxXWRCpNMeumV2 Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 7 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let weights_layer_1 = [[ | |
4 | + | let weights_layer_1 = [[-92752, 62221], [-92018, -65161], [-15287, 114503], [-75248, -60448]] | |
5 | 5 | ||
6 | - | let biases_layer_1 = [- | |
6 | + | let biases_layer_1 = [-25696, 23125, -47529, 18951] | |
7 | 7 | ||
8 | - | let weights_layer_2 = [[- | |
8 | + | let weights_layer_2 = [[-75752, 55233, 65811, 37732], [68610, -57062, -60355, -33235]] | |
9 | 9 | ||
10 | - | let biases_layer_2 = [- | |
10 | + | let biases_layer_2 = [-31616, 29450] | |
11 | 11 | ||
12 | - | let weights_layer_3 = [[- | |
12 | + | let weights_layer_3 = [[-89396, 95173]] | |
13 | 13 | ||
14 | - | let biases_layer_3 = [ | |
14 | + | let biases_layer_3 = [-1923] | |
15 | 15 | ||
16 | 16 | func linear_forward_1 (input,weights,biases) = { | |
17 | - | let weighted_sum1 = (((((((((((input[0] * weights[0][0]) + (input[1] * weights[0][1])) + (input[2] * weights[0][2])) + (input[3] * weights[0][3])) + (input[4] * weights[0][4])) + (input[5] * weights[0][5])) + (input[6] * weights[0][6])) + (input[7] * weights[0][7])) + (input[8] * weights[0][8])) / 10000) + biases[0]) | |
18 | - | let weighted_sum2 = (((((((((((input[0] * weights[1][0]) + (input[1] * weights[1][1])) + (input[2] * weights[1][2])) + (input[3] * weights[1][3])) + (input[4] * weights[1][4])) + (input[5] * weights[1][5])) + (input[6] * weights[1][6])) + (input[7] * weights[1][7])) + (input[8] * weights[1][8])) / 10000) + biases[1]) | |
19 | - | let weighted_sum3 = (((((((((((input[0] * weights[2][0]) + (input[1] * weights[2][1])) + (input[2] * weights[2][2])) + (input[3] * weights[2][3])) + (input[4] * weights[2][4])) + (input[5] * weights[2][5])) + (input[6] * weights[2][6])) + (input[7] * weights[2][7])) + (input[8] * weights[2][8])) / 10000) + biases[2]) | |
20 | - | let weighted_sum4 = (((((((((((input[0] * weights[3][0]) + (input[1] * weights[3][1])) + (input[2] * weights[3][2])) + (input[3] * weights[3][3])) + (input[4] * weights[3][4])) + (input[5] * weights[3][5])) + (input[6] * weights[3][6])) + (input[7] * weights[3][7])) + (input[8] * weights[3][8])) / 10000) + biases[3]) | |
21 | - | let weighted_sum5 = (((((((((((input[0] * weights[4][0]) + (input[1] * weights[4][1])) + (input[2] * weights[4][2])) + (input[3] * weights[4][3])) + (input[4] * weights[4][4])) + (input[5] * weights[4][5])) + (input[6] * weights[4][6])) + (input[7] * weights[4][7])) + (input[8] * weights[4][8])) / 10000) + biases[4]) | |
22 | - | let weighted_sum6 = (((((((((((input[0] * weights[5][0]) + (input[1] * weights[5][1])) + (input[2] * weights[5][2])) + (input[3] * weights[5][3])) + (input[4] * weights[5][4])) + (input[5] * weights[5][5])) + (input[6] * weights[5][6])) + (input[7] * weights[5][7])) + (input[8] * weights[5][8])) / 10000) + biases[5]) | |
23 | - | let weighted_sum7 = (((((((((((input[0] * weights[6][0]) + (input[1] * weights[6][1])) + (input[2] * weights[6][2])) + (input[3] * weights[6][3])) + (input[4] * weights[6][4])) + (input[5] * weights[6][5])) + (input[6] * weights[6][6])) + (input[7] * weights[6][7])) + (input[8] * weights[6][8])) / 10000) + biases[6]) | |
24 | - | let weighted_sum8 = (((((((((((input[0] * weights[7][0]) + (input[1] * weights[7][1])) + (input[2] * weights[7][2])) + (input[3] * weights[7][3])) + (input[4] * weights[7][4])) + (input[5] * weights[7][5])) + (input[6] * weights[7][6])) + (input[7] * weights[7][7])) + (input[8] * weights[7][8])) / 10000) + biases[7]) | |
25 | - | let weighted_sum9 = (((((((((((input[0] * weights[8][0]) + (input[1] * weights[8][1])) + (input[2] * weights[8][2])) + (input[3] * weights[8][3])) + (input[4] * weights[8][4])) + (input[5] * weights[8][5])) + (input[6] * weights[8][6])) + (input[7] * weights[8][7])) + (input[8] * weights[8][8])) / 10000) + biases[8]) | |
26 | - | let weighted_sum10 = (((((((((((input[0] * weights[9][0]) + (input[1] * weights[9][1])) + (input[2] * weights[9][2])) + (input[3] * weights[9][3])) + (input[4] * weights[9][4])) + (input[5] * weights[9][5])) + (input[6] * weights[9][6])) + (input[7] * weights[9][7])) + (input[8] * weights[9][8])) / 10000) + biases[9]) | |
27 | - | let weighted_sum11 = (((((((((((input[0] * weights[10][0]) + (input[1] * weights[10][1])) + (input[2] * weights[10][2])) + (input[3] * weights[10][3])) + (input[4] * weights[10][4])) + (input[5] * weights[10][5])) + (input[6] * weights[10][6])) + (input[7] * weights[10][7])) + (input[8] * weights[10][8])) / 10000) + biases[10]) | |
28 | - | let weighted_sum12 = (((((((((((input[0] * weights[11][0]) + (input[1] * weights[11][1])) + (input[2] * weights[11][2])) + (input[3] * weights[11][3])) + (input[4] * weights[11][4])) + (input[5] * weights[11][5])) + (input[6] * weights[11][6])) + (input[7] * weights[11][7])) + (input[8] * weights[11][8])) / 10000) + biases[11]) | |
29 | - | let weighted_sum13 = (((((((((((input[0] * weights[12][0]) + (input[1] * weights[12][1])) + (input[2] * weights[12][2])) + (input[3] * weights[12][3])) + (input[4] * weights[12][4])) + (input[5] * weights[12][5])) + (input[6] * weights[12][6])) + (input[7] * weights[12][7])) + (input[8] * weights[12][8])) / 10000) + biases[12]) | |
30 | - | let weighted_sum14 = (((((((((((input[0] * weights[13][0]) + (input[1] * weights[13][1])) + (input[2] * weights[13][2])) + (input[3] * weights[13][3])) + (input[4] * weights[13][4])) + (input[5] * weights[13][5])) + (input[6] * weights[13][6])) + (input[7] * weights[13][7])) + (input[8] * weights[13][8])) / 10000) + biases[13]) | |
31 | - | let weighted_sum15 = (((((((((((input[0] * weights[14][0]) + (input[1] * weights[14][1])) + (input[2] * weights[14][2])) + (input[3] * weights[14][3])) + (input[4] * weights[14][4])) + (input[5] * weights[14][5])) + (input[6] * weights[14][6])) + (input[7] * weights[14][7])) + (input[8] * weights[14][8])) / 10000) + biases[14]) | |
32 | - | let weighted_sum16 = (((((((((((input[0] * weights[15][0]) + (input[1] * weights[15][1])) + (input[2] * weights[15][2])) + (input[3] * weights[15][3])) + (input[4] * weights[15][4])) + (input[5] * weights[15][5])) + (input[6] * weights[15][6])) + (input[7] * weights[15][7])) + (input[8] * weights[15][8])) / 10000) + biases[15]) | |
33 | - | let weighted_sum17 = (((((((((((input[0] * weights[16][0]) + (input[1] * weights[16][1])) + (input[2] * weights[16][2])) + (input[3] * weights[16][3])) + (input[4] * weights[16][4])) + (input[5] * weights[16][5])) + (input[6] * weights[16][6])) + (input[7] * weights[16][7])) + (input[8] * weights[16][8])) / 10000) + biases[16]) | |
34 | - | let weighted_sum18 = (((((((((((input[0] * weights[17][0]) + (input[1] * weights[17][1])) + (input[2] * weights[17][2])) + (input[3] * weights[17][3])) + (input[4] * weights[17][4])) + (input[5] * weights[17][5])) + (input[6] * weights[17][6])) + (input[7] * weights[17][7])) + (input[8] * weights[17][8])) / 10000) + biases[17]) | |
35 | - | let weighted_sum19 = (((((((((((input[0] * weights[18][0]) + (input[1] * weights[18][1])) + (input[2] * weights[18][2])) + (input[3] * weights[18][3])) + (input[4] * weights[18][4])) + (input[5] * weights[18][5])) + (input[6] * weights[18][6])) + (input[7] * weights[18][7])) + (input[8] * weights[18][8])) / 10000) + biases[18]) | |
36 | - | let weighted_sum20 = (((((((((((input[0] * weights[19][0]) + (input[1] * weights[19][1])) + (input[2] * weights[19][2])) + (input[3] * weights[19][3])) + (input[4] * weights[19][4])) + (input[5] * weights[19][5])) + (input[6] * weights[19][6])) + (input[7] * weights[19][7])) + (input[8] * weights[19][8])) / 10000) + biases[19]) | |
37 | - | let weighted_sum21 = (((((((((((input[0] * weights[20][0]) + (input[1] * weights[20][1])) + (input[2] * weights[20][2])) + (input[3] * weights[20][3])) + (input[4] * weights[20][4])) + (input[5] * weights[20][5])) + (input[6] * weights[20][6])) + (input[7] * weights[20][7])) + (input[8] * weights[20][8])) / 10000) + biases[20]) | |
38 | - | let weighted_sum22 = (((((((((((input[0] * weights[21][0]) + (input[1] * weights[21][1])) + (input[2] * weights[21][2])) + (input[3] * weights[21][3])) + (input[4] * weights[21][4])) + (input[5] * weights[21][5])) + (input[6] * weights[21][6])) + (input[7] * weights[21][7])) + (input[8] * weights[21][8])) / 10000) + biases[21]) | |
39 | - | let weighted_sum23 = (((((((((((input[0] * weights[22][0]) + (input[1] * weights[22][1])) + (input[2] * weights[22][2])) + (input[3] * weights[22][3])) + (input[4] * weights[22][4])) + (input[5] * weights[22][5])) + (input[6] * weights[22][6])) + (input[7] * weights[22][7])) + (input[8] * weights[22][8])) / 10000) + biases[22]) | |
40 | - | let weighted_sum24 = (((((((((((input[0] * weights[23][0]) + (input[1] * weights[23][1])) + (input[2] * weights[23][2])) + (input[3] * weights[23][3])) + (input[4] * weights[23][4])) + (input[5] * weights[23][5])) + (input[6] * weights[23][6])) + (input[7] * weights[23][7])) + (input[8] * weights[23][8])) / 10000) + biases[23]) | |
41 | - | let weighted_sum25 = (((((((((((input[0] * weights[24][0]) + (input[1] * weights[24][1])) + (input[2] * weights[24][2])) + (input[3] * weights[24][3])) + (input[4] * weights[24][4])) + (input[5] * weights[24][5])) + (input[6] * weights[24][6])) + (input[7] * weights[24][7])) + (input[8] * weights[24][8])) / 10000) + biases[24]) | |
42 | - | let weighted_sum26 = (((((((((((input[0] * weights[25][0]) + (input[1] * weights[25][1])) + (input[2] * weights[25][2])) + (input[3] * weights[25][3])) + (input[4] * weights[25][4])) + (input[5] * weights[25][5])) + (input[6] * weights[25][6])) + (input[7] * weights[25][7])) + (input[8] * weights[25][8])) / 10000) + biases[25]) | |
43 | - | let weighted_sum27 = (((((((((((input[0] * weights[26][0]) + (input[1] * weights[26][1])) + (input[2] * weights[26][2])) + (input[3] * weights[26][3])) + (input[4] * weights[26][4])) + (input[5] * weights[26][5])) + (input[6] * weights[26][6])) + (input[7] * weights[26][7])) + (input[8] * weights[26][8])) / 10000) + biases[26]) | |
44 | - | let weighted_sum28 = (((((((((((input[0] * weights[27][0]) + (input[1] * weights[27][1])) + (input[2] * weights[27][2])) + (input[3] * weights[27][3])) + (input[4] * weights[27][4])) + (input[5] * weights[27][5])) + (input[6] * weights[27][6])) + (input[7] * weights[27][7])) + (input[8] * weights[27][8])) / 10000) + biases[27]) | |
45 | - | let weighted_sum29 = (((((((((((input[0] * weights[28][0]) + (input[1] * weights[28][1])) + (input[2] * weights[28][2])) + (input[3] * weights[28][3])) + (input[4] * weights[28][4])) + (input[5] * weights[28][5])) + (input[6] * weights[28][6])) + (input[7] * weights[28][7])) + (input[8] * weights[28][8])) / 10000) + biases[28]) | |
46 | - | let weighted_sum30 = (((((((((((input[0] * weights[29][0]) + (input[1] * weights[29][1])) + (input[2] * weights[29][2])) + (input[3] * weights[29][3])) + (input[4] * weights[29][4])) + (input[5] * weights[29][5])) + (input[6] * weights[29][6])) + (input[7] * weights[29][7])) + (input[8] * weights[29][8])) / 10000) + biases[29]) | |
47 | - | let weighted_sum31 = (((((((((((input[0] * weights[30][0]) + (input[1] * weights[30][1])) + (input[2] * weights[30][2])) + (input[3] * weights[30][3])) + (input[4] * weights[30][4])) + (input[5] * weights[30][5])) + (input[6] * weights[30][6])) + (input[7] * weights[30][7])) + (input[8] * weights[30][8])) / 10000) + biases[30]) | |
48 | - | let weighted_sum32 = (((((((((((input[0] * weights[31][0]) + (input[1] * weights[31][1])) + (input[2] * weights[31][2])) + (input[3] * weights[31][3])) + (input[4] * weights[31][4])) + (input[5] * weights[31][5])) + (input[6] * weights[31][6])) + (input[7] * weights[31][7])) + (input[8] * weights[31][8])) / 10000) + biases[31]) | |
49 | - | let weighted_sum33 = (((((((((((input[0] * weights[32][0]) + (input[1] * weights[32][1])) + (input[2] * weights[32][2])) + (input[3] * weights[32][3])) + (input[4] * weights[32][4])) + (input[5] * weights[32][5])) + (input[6] * weights[32][6])) + (input[7] * weights[32][7])) + (input[8] * weights[32][8])) / 10000) + biases[32]) | |
50 | - | let weighted_sum34 = (((((((((((input[0] * weights[33][0]) + (input[1] * weights[33][1])) + (input[2] * weights[33][2])) + (input[3] * weights[33][3])) + (input[4] * weights[33][4])) + (input[5] * weights[33][5])) + (input[6] * weights[33][6])) + (input[7] * weights[33][7])) + (input[8] * weights[33][8])) / 10000) + biases[33]) | |
51 | - | let weighted_sum35 = (((((((((((input[0] * weights[34][0]) + (input[1] * weights[34][1])) + (input[2] * weights[34][2])) + (input[3] * weights[34][3])) + (input[4] * weights[34][4])) + (input[5] * weights[34][5])) + (input[6] * weights[34][6])) + (input[7] * weights[34][7])) + (input[8] * weights[34][8])) / 10000) + biases[34]) | |
52 | - | let weighted_sum36 = (((((((((((input[0] * weights[35][0]) + (input[1] * weights[35][1])) + (input[2] * weights[35][2])) + (input[3] * weights[35][3])) + (input[4] * weights[35][4])) + (input[5] * weights[35][5])) + (input[6] * weights[35][6])) + (input[7] * weights[35][7])) + (input[8] * weights[35][8])) / 10000) + biases[35]) | |
53 | - | [weighted_sum1, weighted_sum2, weighted_sum3, weighted_sum4, weighted_sum5, weighted_sum6, weighted_sum7, weighted_sum8, weighted_sum9, weighted_sum10, weighted_sum11, weighted_sum12, weighted_sum13, weighted_sum14, weighted_sum15, weighted_sum16, weighted_sum17, weighted_sum18, weighted_sum19, weighted_sum20, weighted_sum21, weighted_sum22, weighted_sum23, weighted_sum24, weighted_sum25, weighted_sum26, weighted_sum27, weighted_sum28, weighted_sum29, weighted_sum30, weighted_sum31, weighted_sum32, weighted_sum33, weighted_sum34, weighted_sum35, weighted_sum36] | |
17 | + | let weighted_sum1 = ((((input[0] * weights[0][0]) + (input[1] * weights[0][1])) / 10000) + biases[0]) | |
18 | + | let weighted_sum2 = ((((input[0] * weights[1][0]) + (input[1] * weights[1][1])) / 10000) + biases[1]) | |
19 | + | let weighted_sum3 = ((((input[0] * weights[2][0]) + (input[1] * weights[2][1])) / 10000) + biases[2]) | |
20 | + | let weighted_sum4 = ((((input[0] * weights[3][0]) + (input[1] * weights[3][1])) / 10000) + biases[3]) | |
21 | + | [weighted_sum1, weighted_sum2, weighted_sum3, weighted_sum4] | |
54 | 22 | } | |
55 | 23 | ||
56 | 24 | ||
57 | 25 | func linear_forward_2 (input,weights,biases) = { | |
58 | - | let weighted_sum1 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[0][0]) + (input[1] * weights[0][1])) + (input[2] * weights[0][2])) + (input[3] * weights[0][3])) + (input[4] * weights[0][4])) + (input[5] * weights[0][5])) + (input[6] * weights[0][6])) + (input[7] * weights[0][7])) + (input[8] * weights[0][8])) + (input[9] * weights[0][9])) + (input[10] * weights[0][10])) + (input[11] * weights[0][11])) + (input[12] * weights[0][12])) + (input[13] * weights[0][13])) + (input[14] * weights[0][14])) + (input[15] * weights[0][15])) + (input[16] * weights[0][16])) + (input[17] * weights[0][17])) + (input[18] * weights[0][18])) + (input[19] * weights[0][19])) + (input[20] * weights[0][20])) + (input[21] * weights[0][21])) + (input[22] * weights[0][22])) + (input[23] * weights[0][23])) + (input[24] * weights[0][24])) + (input[25] * weights[0][25])) + (input[26] * weights[0][26])) + (input[27] * weights[0][27])) + (input[28] * weights[0][28])) + (input[29] * weights[0][29])) + (input[30] * weights[0][30])) + (input[31] * weights[0][31])) + (input[32] * weights[0][32])) + (input[33] * weights[0][33])) + (input[34] * weights[0][34])) + (input[35] * weights[0][35])) / 10000) + biases[0]) | |
59 | - | let weighted_sum2 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[1][0]) + (input[1] * weights[1][1])) + (input[2] * weights[1][2])) + (input[3] * weights[1][3])) + (input[4] * weights[1][4])) + (input[5] * weights[1][5])) + (input[6] * weights[1][6])) + (input[7] * weights[1][7])) + (input[8] * weights[1][8])) + (input[9] * weights[1][9])) + (input[10] * weights[1][10])) + (input[11] * weights[1][11])) + (input[12] * weights[1][12])) + (input[13] * weights[1][13])) + (input[14] * weights[1][14])) + (input[15] * weights[1][15])) + (input[16] * weights[1][16])) + (input[17] * weights[1][17])) + (input[18] * weights[1][18])) + (input[19] * weights[1][19])) + (input[20] * weights[1][20])) + (input[21] * weights[1][21])) + (input[22] * weights[1][22])) + (input[23] * weights[1][23])) + (input[24] * weights[1][24])) + (input[25] * weights[1][25])) + (input[26] * weights[1][26])) + (input[27] * weights[1][27])) + (input[28] * weights[1][28])) + (input[29] * weights[1][29])) + (input[30] * weights[1][30])) + (input[31] * weights[1][31])) + (input[32] * weights[1][32])) + (input[33] * weights[1][33])) + (input[34] * weights[1][34])) + (input[35] * weights[1][35])) / 10000) + biases[1]) | |
60 | - | let weighted_sum3 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[2][0]) + (input[1] * weights[2][1])) + (input[2] * weights[2][2])) + (input[3] * weights[2][3])) + (input[4] * weights[2][4])) + (input[5] * weights[2][5])) + (input[6] * weights[2][6])) + (input[7] * weights[2][7])) + (input[8] * weights[2][8])) + (input[9] * weights[2][9])) + (input[10] * weights[2][10])) + (input[11] * weights[2][11])) + (input[12] * weights[2][12])) + (input[13] * weights[2][13])) + (input[14] * weights[2][14])) + (input[15] * weights[2][15])) + (input[16] * weights[2][16])) + (input[17] * weights[2][17])) + (input[18] * weights[2][18])) + (input[19] * weights[2][19])) + (input[20] * weights[2][20])) + (input[21] * weights[2][21])) + (input[22] * weights[2][22])) + (input[23] * weights[2][23])) + (input[24] * weights[2][24])) + (input[25] * weights[2][25])) + (input[26] * weights[2][26])) + (input[27] * weights[2][27])) + (input[28] * weights[2][28])) + (input[29] * weights[2][29])) + (input[30] * weights[2][30])) + (input[31] * weights[2][31])) + (input[32] * weights[2][32])) + (input[33] * weights[2][33])) + (input[34] * weights[2][34])) + (input[35] * weights[2][35])) / 10000) + biases[2]) | |
61 | - | let weighted_sum4 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[3][0]) + (input[1] * weights[3][1])) + (input[2] * weights[3][2])) + (input[3] * weights[3][3])) + (input[4] * weights[3][4])) + (input[5] * weights[3][5])) + (input[6] * weights[3][6])) + (input[7] * weights[3][7])) + (input[8] * weights[3][8])) + (input[9] * weights[3][9])) + (input[10] * weights[3][10])) + (input[11] * weights[3][11])) + (input[12] * weights[3][12])) + (input[13] * weights[3][13])) + (input[14] * weights[3][14])) + (input[15] * weights[3][15])) + (input[16] * weights[3][16])) + (input[17] * weights[3][17])) + (input[18] * weights[3][18])) + (input[19] * weights[3][19])) + (input[20] * weights[3][20])) + (input[21] * weights[3][21])) + (input[22] * weights[3][22])) + (input[23] * weights[3][23])) + (input[24] * weights[3][24])) + (input[25] * weights[3][25])) + (input[26] * weights[3][26])) + (input[27] * weights[3][27])) + (input[28] * weights[3][28])) + (input[29] * weights[3][29])) + (input[30] * weights[3][30])) + (input[31] * weights[3][31])) + (input[32] * weights[3][32])) + (input[33] * weights[3][33])) + (input[34] * weights[3][34])) + (input[35] * weights[3][35])) / 10000) + biases[3]) | |
62 | - | let weighted_sum5 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[4][0]) + (input[1] * weights[4][1])) + (input[2] * weights[4][2])) + (input[3] * weights[4][3])) + (input[4] * weights[4][4])) + (input[5] * weights[4][5])) + (input[6] * weights[4][6])) + (input[7] * weights[4][7])) + (input[8] * weights[4][8])) + (input[9] * weights[4][9])) + (input[10] * weights[4][10])) + (input[11] * weights[4][11])) + (input[12] * weights[4][12])) + (input[13] * weights[4][13])) + (input[14] * weights[4][14])) + (input[15] * weights[4][15])) + (input[16] * weights[4][16])) + (input[17] * weights[4][17])) + (input[18] * weights[4][18])) + (input[19] * weights[4][19])) + (input[20] * weights[4][20])) + (input[21] * weights[4][21])) + (input[22] * weights[4][22])) + (input[23] * weights[4][23])) + (input[24] * weights[4][24])) + (input[25] * weights[4][25])) + (input[26] * weights[4][26])) + (input[27] * weights[4][27])) + (input[28] * weights[4][28])) + (input[29] * weights[4][29])) + (input[30] * weights[4][30])) + (input[31] * weights[4][31])) + (input[32] * weights[4][32])) + (input[33] * weights[4][33])) + (input[34] * weights[4][34])) + (input[35] * weights[4][35])) / 10000) + biases[4]) | |
63 | - | let weighted_sum6 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[5][0]) + (input[1] * weights[5][1])) + (input[2] * weights[5][2])) + (input[3] * weights[5][3])) + (input[4] * weights[5][4])) + (input[5] * weights[5][5])) + (input[6] * weights[5][6])) + (input[7] * weights[5][7])) + (input[8] * weights[5][8])) + (input[9] * weights[5][9])) + (input[10] * weights[5][10])) + (input[11] * weights[5][11])) + (input[12] * weights[5][12])) + (input[13] * weights[5][13])) + (input[14] * weights[5][14])) + (input[15] * weights[5][15])) + (input[16] * weights[5][16])) + (input[17] * weights[5][17])) + (input[18] * weights[5][18])) + (input[19] * weights[5][19])) + (input[20] * weights[5][20])) + (input[21] * weights[5][21])) + (input[22] * weights[5][22])) + (input[23] * weights[5][23])) + (input[24] * weights[5][24])) + (input[25] * weights[5][25])) + (input[26] * weights[5][26])) + (input[27] * weights[5][27])) + (input[28] * weights[5][28])) + (input[29] * weights[5][29])) + (input[30] * weights[5][30])) + (input[31] * weights[5][31])) + (input[32] * weights[5][32])) + (input[33] * weights[5][33])) + (input[34] * weights[5][34])) + (input[35] * weights[5][35])) / 10000) + biases[5]) | |
64 | - | let weighted_sum7 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[6][0]) + (input[1] * weights[6][1])) + (input[2] * weights[6][2])) + (input[3] * weights[6][3])) + (input[4] * weights[6][4])) + (input[5] * weights[6][5])) + (input[6] * weights[6][6])) + (input[7] * weights[6][7])) + (input[8] * weights[6][8])) + (input[9] * weights[6][9])) + (input[10] * weights[6][10])) + (input[11] * weights[6][11])) + (input[12] * weights[6][12])) + (input[13] * weights[6][13])) + (input[14] * weights[6][14])) + (input[15] * weights[6][15])) + (input[16] * weights[6][16])) + (input[17] * weights[6][17])) + (input[18] * weights[6][18])) + (input[19] * weights[6][19])) + (input[20] * weights[6][20])) + (input[21] * weights[6][21])) + (input[22] * weights[6][22])) + (input[23] * weights[6][23])) + (input[24] * weights[6][24])) + (input[25] * weights[6][25])) + (input[26] * weights[6][26])) + (input[27] * weights[6][27])) + (input[28] * weights[6][28])) + (input[29] * weights[6][29])) + (input[30] * weights[6][30])) + (input[31] * weights[6][31])) + (input[32] * weights[6][32])) + (input[33] * weights[6][33])) + (input[34] * weights[6][34])) + (input[35] * weights[6][35])) / 10000) + biases[6]) | |
65 | - | let weighted_sum8 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[7][0]) + (input[1] * weights[7][1])) + (input[2] * weights[7][2])) + (input[3] * weights[7][3])) + (input[4] * weights[7][4])) + (input[5] * weights[7][5])) + (input[6] * weights[7][6])) + (input[7] * weights[7][7])) + (input[8] * weights[7][8])) + (input[9] * weights[7][9])) + (input[10] * weights[7][10])) + (input[11] * weights[7][11])) + (input[12] * weights[7][12])) + (input[13] * weights[7][13])) + (input[14] * weights[7][14])) + (input[15] * weights[7][15])) + (input[16] * weights[7][16])) + (input[17] * weights[7][17])) + (input[18] * weights[7][18])) + (input[19] * weights[7][19])) + (input[20] * weights[7][20])) + (input[21] * weights[7][21])) + (input[22] * weights[7][22])) + (input[23] * weights[7][23])) + (input[24] * weights[7][24])) + (input[25] * weights[7][25])) + (input[26] * weights[7][26])) + (input[27] * weights[7][27])) + (input[28] * weights[7][28])) + (input[29] * weights[7][29])) + (input[30] * weights[7][30])) + (input[31] * weights[7][31])) + (input[32] * weights[7][32])) + (input[33] * weights[7][33])) + (input[34] * weights[7][34])) + (input[35] * weights[7][35])) / 10000) + biases[7]) | |
66 | - | let weighted_sum9 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[8][0]) + (input[1] * weights[8][1])) + (input[2] * weights[8][2])) + (input[3] * weights[8][3])) + (input[4] * weights[8][4])) + (input[5] * weights[8][5])) + (input[6] * weights[8][6])) + (input[7] * weights[8][7])) + (input[8] * weights[8][8])) + (input[9] * weights[8][9])) + (input[10] * weights[8][10])) + (input[11] * weights[8][11])) + (input[12] * weights[8][12])) + (input[13] * weights[8][13])) + (input[14] * weights[8][14])) + (input[15] * weights[8][15])) + (input[16] * weights[8][16])) + (input[17] * weights[8][17])) + (input[18] * weights[8][18])) + (input[19] * weights[8][19])) + (input[20] * weights[8][20])) + (input[21] * weights[8][21])) + (input[22] * weights[8][22])) + (input[23] * weights[8][23])) + (input[24] * weights[8][24])) + (input[25] * weights[8][25])) + (input[26] * weights[8][26])) + (input[27] * weights[8][27])) + (input[28] * weights[8][28])) + (input[29] * weights[8][29])) + (input[30] * weights[8][30])) + (input[31] * weights[8][31])) + (input[32] * weights[8][32])) + (input[33] * weights[8][33])) + (input[34] * weights[8][34])) + (input[35] * weights[8][35])) / 10000) + biases[8]) | |
67 | - | let weighted_sum10 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[9][0]) + (input[1] * weights[9][1])) + (input[2] * weights[9][2])) + (input[3] * weights[9][3])) + (input[4] * weights[9][4])) + (input[5] * weights[9][5])) + (input[6] * weights[9][6])) + (input[7] * weights[9][7])) + (input[8] * weights[9][8])) + (input[9] * weights[9][9])) + (input[10] * weights[9][10])) + (input[11] * weights[9][11])) + (input[12] * weights[9][12])) + (input[13] * weights[9][13])) + (input[14] * weights[9][14])) + (input[15] * weights[9][15])) + (input[16] * weights[9][16])) + (input[17] * weights[9][17])) + (input[18] * weights[9][18])) + (input[19] * weights[9][19])) + (input[20] * weights[9][20])) + (input[21] * weights[9][21])) + (input[22] * weights[9][22])) + (input[23] * weights[9][23])) + (input[24] * weights[9][24])) + (input[25] * weights[9][25])) + (input[26] * weights[9][26])) + (input[27] * weights[9][27])) + (input[28] * weights[9][28])) + (input[29] * weights[9][29])) + (input[30] * weights[9][30])) + (input[31] * weights[9][31])) + (input[32] * weights[9][32])) + (input[33] * weights[9][33])) + (input[34] * weights[9][34])) + (input[35] * weights[9][35])) / 10000) + biases[9]) | |
68 | - | let weighted_sum11 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[10][0]) + (input[1] * weights[10][1])) + (input[2] * weights[10][2])) + (input[3] * weights[10][3])) + (input[4] * weights[10][4])) + (input[5] * weights[10][5])) + (input[6] * weights[10][6])) + (input[7] * weights[10][7])) + (input[8] * weights[10][8])) + (input[9] * weights[10][9])) + (input[10] * weights[10][10])) + (input[11] * weights[10][11])) + (input[12] * weights[10][12])) + (input[13] * weights[10][13])) + (input[14] * weights[10][14])) + (input[15] * weights[10][15])) + (input[16] * weights[10][16])) + (input[17] * weights[10][17])) + (input[18] * weights[10][18])) + (input[19] * weights[10][19])) + (input[20] * weights[10][20])) + (input[21] * weights[10][21])) + (input[22] * weights[10][22])) + (input[23] * weights[10][23])) + (input[24] * weights[10][24])) + (input[25] * weights[10][25])) + (input[26] * weights[10][26])) + (input[27] * weights[10][27])) + (input[28] * weights[10][28])) + (input[29] * weights[10][29])) + (input[30] * weights[10][30])) + (input[31] * weights[10][31])) + (input[32] * weights[10][32])) + (input[33] * weights[10][33])) + (input[34] * weights[10][34])) + (input[35] * weights[10][35])) / 10000) + biases[10]) | |
69 | - | let weighted_sum12 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[11][0]) + (input[1] * weights[11][1])) + (input[2] * weights[11][2])) + (input[3] * weights[11][3])) + (input[4] * weights[11][4])) + (input[5] * weights[11][5])) + (input[6] * weights[11][6])) + (input[7] * weights[11][7])) + (input[8] * weights[11][8])) + (input[9] * weights[11][9])) + (input[10] * weights[11][10])) + (input[11] * weights[11][11])) + (input[12] * weights[11][12])) + (input[13] * weights[11][13])) + (input[14] * weights[11][14])) + (input[15] * weights[11][15])) + (input[16] * weights[11][16])) + (input[17] * weights[11][17])) + (input[18] * weights[11][18])) + (input[19] * weights[11][19])) + (input[20] * weights[11][20])) + (input[21] * weights[11][21])) + (input[22] * weights[11][22])) + (input[23] * weights[11][23])) + (input[24] * weights[11][24])) + (input[25] * weights[11][25])) + (input[26] * weights[11][26])) + (input[27] * weights[11][27])) + (input[28] * weights[11][28])) + (input[29] * weights[11][29])) + (input[30] * weights[11][30])) + (input[31] * weights[11][31])) + (input[32] * weights[11][32])) + (input[33] * weights[11][33])) + (input[34] * weights[11][34])) + (input[35] * weights[11][35])) / 10000) + biases[11]) | |
70 | - | let weighted_sum13 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[12][0]) + (input[1] * weights[12][1])) + (input[2] * weights[12][2])) + (input[3] * weights[12][3])) + (input[4] * weights[12][4])) + (input[5] * weights[12][5])) + (input[6] * weights[12][6])) + (input[7] * weights[12][7])) + (input[8] * weights[12][8])) + (input[9] * weights[12][9])) + (input[10] * weights[12][10])) + (input[11] * weights[12][11])) + (input[12] * weights[12][12])) + (input[13] * weights[12][13])) + (input[14] * weights[12][14])) + (input[15] * weights[12][15])) + (input[16] * weights[12][16])) + (input[17] * weights[12][17])) + (input[18] * weights[12][18])) + (input[19] * weights[12][19])) + (input[20] * weights[12][20])) + (input[21] * weights[12][21])) + (input[22] * weights[12][22])) + (input[23] * weights[12][23])) + (input[24] * weights[12][24])) + (input[25] * weights[12][25])) + (input[26] * weights[12][26])) + (input[27] * weights[12][27])) + (input[28] * weights[12][28])) + (input[29] * weights[12][29])) + (input[30] * weights[12][30])) + (input[31] * weights[12][31])) + (input[32] * weights[12][32])) + (input[33] * weights[12][33])) + (input[34] * weights[12][34])) + (input[35] * weights[12][35])) / 10000) + biases[12]) | |
71 | - | let weighted_sum14 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[13][0]) + (input[1] * weights[13][1])) + (input[2] * weights[13][2])) + (input[3] * weights[13][3])) + (input[4] * weights[13][4])) + (input[5] * weights[13][5])) + (input[6] * weights[13][6])) + (input[7] * weights[13][7])) + (input[8] * weights[13][8])) + (input[9] * weights[13][9])) + (input[10] * weights[13][10])) + (input[11] * weights[13][11])) + (input[12] * weights[13][12])) + (input[13] * weights[13][13])) + (input[14] * weights[13][14])) + (input[15] * weights[13][15])) + (input[16] * weights[13][16])) + (input[17] * weights[13][17])) + (input[18] * weights[13][18])) + (input[19] * weights[13][19])) + (input[20] * weights[13][20])) + (input[21] * weights[13][21])) + (input[22] * weights[13][22])) + (input[23] * weights[13][23])) + (input[24] * weights[13][24])) + (input[25] * weights[13][25])) + (input[26] * weights[13][26])) + (input[27] * weights[13][27])) + (input[28] * weights[13][28])) + (input[29] * weights[13][29])) + (input[30] * weights[13][30])) + (input[31] * weights[13][31])) + (input[32] * weights[13][32])) + (input[33] * weights[13][33])) + (input[34] * weights[13][34])) + (input[35] * weights[13][35])) / 10000) + biases[13]) | |
72 | - | let weighted_sum15 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[14][0]) + (input[1] * weights[14][1])) + (input[2] * weights[14][2])) + (input[3] * weights[14][3])) + (input[4] * weights[14][4])) + (input[5] * weights[14][5])) + (input[6] * weights[14][6])) + (input[7] * weights[14][7])) + (input[8] * weights[14][8])) + (input[9] * weights[14][9])) + (input[10] * weights[14][10])) + (input[11] * weights[14][11])) + (input[12] * weights[14][12])) + (input[13] * weights[14][13])) + (input[14] * weights[14][14])) + (input[15] * weights[14][15])) + (input[16] * weights[14][16])) + (input[17] * weights[14][17])) + (input[18] * weights[14][18])) + (input[19] * weights[14][19])) + (input[20] * weights[14][20])) + (input[21] * weights[14][21])) + (input[22] * weights[14][22])) + (input[23] * weights[14][23])) + (input[24] * weights[14][24])) + (input[25] * weights[14][25])) + (input[26] * weights[14][26])) + (input[27] * weights[14][27])) + (input[28] * weights[14][28])) + (input[29] * weights[14][29])) + (input[30] * weights[14][30])) + (input[31] * weights[14][31])) + (input[32] * weights[14][32])) + (input[33] * weights[14][33])) + (input[34] * weights[14][34])) + (input[35] * weights[14][35])) / 10000) + biases[14]) | |
73 | - | let weighted_sum16 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[15][0]) + (input[1] * weights[15][1])) + (input[2] * weights[15][2])) + (input[3] * weights[15][3])) + (input[4] * weights[15][4])) + (input[5] * weights[15][5])) + (input[6] * weights[15][6])) + (input[7] * weights[15][7])) + (input[8] * weights[15][8])) + (input[9] * weights[15][9])) + (input[10] * weights[15][10])) + (input[11] * weights[15][11])) + (input[12] * weights[15][12])) + (input[13] * weights[15][13])) + (input[14] * weights[15][14])) + (input[15] * weights[15][15])) + (input[16] * weights[15][16])) + (input[17] * weights[15][17])) + (input[18] * weights[15][18])) + (input[19] * weights[15][19])) + (input[20] * weights[15][20])) + (input[21] * weights[15][21])) + (input[22] * weights[15][22])) + (input[23] * weights[15][23])) + (input[24] * weights[15][24])) + (input[25] * weights[15][25])) + (input[26] * weights[15][26])) + (input[27] * weights[15][27])) + (input[28] * weights[15][28])) + (input[29] * weights[15][29])) + (input[30] * weights[15][30])) + (input[31] * weights[15][31])) + (input[32] * weights[15][32])) + (input[33] * weights[15][33])) + (input[34] * weights[15][34])) + (input[35] * weights[15][35])) / 10000) + biases[15]) | |
74 | - | let weighted_sum17 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[16][0]) + (input[1] * weights[16][1])) + (input[2] * weights[16][2])) + (input[3] * weights[16][3])) + (input[4] * weights[16][4])) + (input[5] * weights[16][5])) + (input[6] * weights[16][6])) + (input[7] * weights[16][7])) + (input[8] * weights[16][8])) + (input[9] * weights[16][9])) + (input[10] * weights[16][10])) + (input[11] * weights[16][11])) + (input[12] * weights[16][12])) + (input[13] * weights[16][13])) + (input[14] * weights[16][14])) + (input[15] * weights[16][15])) + (input[16] * weights[16][16])) + (input[17] * weights[16][17])) + (input[18] * weights[16][18])) + (input[19] * weights[16][19])) + (input[20] * weights[16][20])) + (input[21] * weights[16][21])) + (input[22] * weights[16][22])) + (input[23] * weights[16][23])) + (input[24] * weights[16][24])) + (input[25] * weights[16][25])) + (input[26] * weights[16][26])) + (input[27] * weights[16][27])) + (input[28] * weights[16][28])) + (input[29] * weights[16][29])) + (input[30] * weights[16][30])) + (input[31] * weights[16][31])) + (input[32] * weights[16][32])) + (input[33] * weights[16][33])) + (input[34] * weights[16][34])) + (input[35] * weights[16][35])) / 10000) + biases[16]) | |
75 | - | let weighted_sum18 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[17][0]) + (input[1] * weights[17][1])) + (input[2] * weights[17][2])) + (input[3] * weights[17][3])) + (input[4] * weights[17][4])) + (input[5] * weights[17][5])) + (input[6] * weights[17][6])) + (input[7] * weights[17][7])) + (input[8] * weights[17][8])) + (input[9] * weights[17][9])) + (input[10] * weights[17][10])) + (input[11] * weights[17][11])) + (input[12] * weights[17][12])) + (input[13] * weights[17][13])) + (input[14] * weights[17][14])) + (input[15] * weights[17][15])) + (input[16] * weights[17][16])) + (input[17] * weights[17][17])) + (input[18] * weights[17][18])) + (input[19] * weights[17][19])) + (input[20] * weights[17][20])) + (input[21] * weights[17][21])) + (input[22] * weights[17][22])) + (input[23] * weights[17][23])) + (input[24] * weights[17][24])) + (input[25] * weights[17][25])) + (input[26] * weights[17][26])) + (input[27] * weights[17][27])) + (input[28] * weights[17][28])) + (input[29] * weights[17][29])) + (input[30] * weights[17][30])) + (input[31] * weights[17][31])) + (input[32] * weights[17][32])) + (input[33] * weights[17][33])) + (input[34] * weights[17][34])) + (input[35] * weights[17][35])) / 10000) + biases[17]) | |
76 | - | let weighted_sum19 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[18][0]) + (input[1] * weights[18][1])) + (input[2] * weights[18][2])) + (input[3] * weights[18][3])) + (input[4] * weights[18][4])) + (input[5] * weights[18][5])) + (input[6] * weights[18][6])) + (input[7] * weights[18][7])) + (input[8] * weights[18][8])) + (input[9] * weights[18][9])) + (input[10] * weights[18][10])) + (input[11] * weights[18][11])) + (input[12] * weights[18][12])) + (input[13] * weights[18][13])) + (input[14] * weights[18][14])) + (input[15] * weights[18][15])) + (input[16] * weights[18][16])) + (input[17] * weights[18][17])) + (input[18] * weights[18][18])) + (input[19] * weights[18][19])) + (input[20] * weights[18][20])) + (input[21] * weights[18][21])) + (input[22] * weights[18][22])) + (input[23] * weights[18][23])) + (input[24] * weights[18][24])) + (input[25] * weights[18][25])) + (input[26] * weights[18][26])) + (input[27] * weights[18][27])) + (input[28] * weights[18][28])) + (input[29] * weights[18][29])) + (input[30] * weights[18][30])) + (input[31] * weights[18][31])) + (input[32] * weights[18][32])) + (input[33] * weights[18][33])) + (input[34] * weights[18][34])) + (input[35] * weights[18][35])) / 10000) + biases[18]) | |
77 | - | let weighted_sum20 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[19][0]) + (input[1] * weights[19][1])) + (input[2] * weights[19][2])) + (input[3] * weights[19][3])) + (input[4] * weights[19][4])) + (input[5] * weights[19][5])) + (input[6] * weights[19][6])) + (input[7] * weights[19][7])) + (input[8] * weights[19][8])) + (input[9] * weights[19][9])) + (input[10] * weights[19][10])) + (input[11] * weights[19][11])) + (input[12] * weights[19][12])) + (input[13] * weights[19][13])) + (input[14] * weights[19][14])) + (input[15] * weights[19][15])) + (input[16] * weights[19][16])) + (input[17] * weights[19][17])) + (input[18] * weights[19][18])) + (input[19] * weights[19][19])) + (input[20] * weights[19][20])) + (input[21] * weights[19][21])) + (input[22] * weights[19][22])) + (input[23] * weights[19][23])) + (input[24] * weights[19][24])) + (input[25] * weights[19][25])) + (input[26] * weights[19][26])) + (input[27] * weights[19][27])) + (input[28] * weights[19][28])) + (input[29] * weights[19][29])) + (input[30] * weights[19][30])) + (input[31] * weights[19][31])) + (input[32] * weights[19][32])) + (input[33] * weights[19][33])) + (input[34] * weights[19][34])) + (input[35] * weights[19][35])) / 10000) + biases[19]) | |
78 | - | let weighted_sum21 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[20][0]) + (input[1] * weights[20][1])) + (input[2] * weights[20][2])) + (input[3] * weights[20][3])) + (input[4] * weights[20][4])) + (input[5] * weights[20][5])) + (input[6] * weights[20][6])) + (input[7] * weights[20][7])) + (input[8] * weights[20][8])) + (input[9] * weights[20][9])) + (input[10] * weights[20][10])) + (input[11] * weights[20][11])) + (input[12] * weights[20][12])) + (input[13] * weights[20][13])) + (input[14] * weights[20][14])) + (input[15] * weights[20][15])) + (input[16] * weights[20][16])) + (input[17] * weights[20][17])) + (input[18] * weights[20][18])) + (input[19] * weights[20][19])) + (input[20] * weights[20][20])) + (input[21] * weights[20][21])) + (input[22] * weights[20][22])) + (input[23] * weights[20][23])) + (input[24] * weights[20][24])) + (input[25] * weights[20][25])) + (input[26] * weights[20][26])) + (input[27] * weights[20][27])) + (input[28] * weights[20][28])) + (input[29] * weights[20][29])) + (input[30] * weights[20][30])) + (input[31] * weights[20][31])) + (input[32] * weights[20][32])) + (input[33] * weights[20][33])) + (input[34] * weights[20][34])) + (input[35] * weights[20][35])) / 10000) + biases[20]) | |
79 | - | let weighted_sum22 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[21][0]) + (input[1] * weights[21][1])) + (input[2] * weights[21][2])) + (input[3] * weights[21][3])) + (input[4] * weights[21][4])) + (input[5] * weights[21][5])) + (input[6] * weights[21][6])) + (input[7] * weights[21][7])) + (input[8] * weights[21][8])) + (input[9] * weights[21][9])) + (input[10] * weights[21][10])) + (input[11] * weights[21][11])) + (input[12] * weights[21][12])) + (input[13] * weights[21][13])) + (input[14] * weights[21][14])) + (input[15] * weights[21][15])) + (input[16] * weights[21][16])) + (input[17] * weights[21][17])) + (input[18] * weights[21][18])) + (input[19] * weights[21][19])) + (input[20] * weights[21][20])) + (input[21] * weights[21][21])) + (input[22] * weights[21][22])) + (input[23] * weights[21][23])) + (input[24] * weights[21][24])) + (input[25] * weights[21][25])) + (input[26] * weights[21][26])) + (input[27] * weights[21][27])) + (input[28] * weights[21][28])) + (input[29] * weights[21][29])) + (input[30] * weights[21][30])) + (input[31] * weights[21][31])) + (input[32] * weights[21][32])) + (input[33] * weights[21][33])) + (input[34] * weights[21][34])) + (input[35] * weights[21][35])) / 10000) + biases[21]) | |
80 | - | let weighted_sum23 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[22][0]) + (input[1] * weights[22][1])) + (input[2] * weights[22][2])) + (input[3] * weights[22][3])) + (input[4] * weights[22][4])) + (input[5] * weights[22][5])) + (input[6] * weights[22][6])) + (input[7] * weights[22][7])) + (input[8] * weights[22][8])) + (input[9] * weights[22][9])) + (input[10] * weights[22][10])) + (input[11] * weights[22][11])) + (input[12] * weights[22][12])) + (input[13] * weights[22][13])) + (input[14] * weights[22][14])) + (input[15] * weights[22][15])) + (input[16] * weights[22][16])) + (input[17] * weights[22][17])) + (input[18] * weights[22][18])) + (input[19] * weights[22][19])) + (input[20] * weights[22][20])) + (input[21] * weights[22][21])) + (input[22] * weights[22][22])) + (input[23] * weights[22][23])) + (input[24] * weights[22][24])) + (input[25] * weights[22][25])) + (input[26] * weights[22][26])) + (input[27] * weights[22][27])) + (input[28] * weights[22][28])) + (input[29] * weights[22][29])) + (input[30] * weights[22][30])) + (input[31] * weights[22][31])) + (input[32] * weights[22][32])) + (input[33] * weights[22][33])) + (input[34] * weights[22][34])) + (input[35] * weights[22][35])) / 10000) + biases[22]) | |
81 | - | let weighted_sum24 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[23][0]) + (input[1] * weights[23][1])) + (input[2] * weights[23][2])) + (input[3] * weights[23][3])) + (input[4] * weights[23][4])) + (input[5] * weights[23][5])) + (input[6] * weights[23][6])) + (input[7] * weights[23][7])) + (input[8] * weights[23][8])) + (input[9] * weights[23][9])) + (input[10] * weights[23][10])) + (input[11] * weights[23][11])) + (input[12] * weights[23][12])) + (input[13] * weights[23][13])) + (input[14] * weights[23][14])) + (input[15] * weights[23][15])) + (input[16] * weights[23][16])) + (input[17] * weights[23][17])) + (input[18] * weights[23][18])) + (input[19] * weights[23][19])) + (input[20] * weights[23][20])) + (input[21] * weights[23][21])) + (input[22] * weights[23][22])) + (input[23] * weights[23][23])) + (input[24] * weights[23][24])) + (input[25] * weights[23][25])) + (input[26] * weights[23][26])) + (input[27] * weights[23][27])) + (input[28] * weights[23][28])) + (input[29] * weights[23][29])) + (input[30] * weights[23][30])) + (input[31] * weights[23][31])) + (input[32] * weights[23][32])) + (input[33] * weights[23][33])) + (input[34] * weights[23][34])) + (input[35] * weights[23][35])) / 10000) + biases[23]) | |
82 | - | let weighted_sum25 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[24][0]) + (input[1] * weights[24][1])) + (input[2] * weights[24][2])) + (input[3] * weights[24][3])) + (input[4] * weights[24][4])) + (input[5] * weights[24][5])) + (input[6] * weights[24][6])) + (input[7] * weights[24][7])) + (input[8] * weights[24][8])) + (input[9] * weights[24][9])) + (input[10] * weights[24][10])) + (input[11] * weights[24][11])) + (input[12] * weights[24][12])) + (input[13] * weights[24][13])) + (input[14] * weights[24][14])) + (input[15] * weights[24][15])) + (input[16] * weights[24][16])) + (input[17] * weights[24][17])) + (input[18] * weights[24][18])) + (input[19] * weights[24][19])) + (input[20] * weights[24][20])) + (input[21] * weights[24][21])) + (input[22] * weights[24][22])) + (input[23] * weights[24][23])) + (input[24] * weights[24][24])) + (input[25] * weights[24][25])) + (input[26] * weights[24][26])) + (input[27] * weights[24][27])) + (input[28] * weights[24][28])) + (input[29] * weights[24][29])) + (input[30] * weights[24][30])) + (input[31] * weights[24][31])) + (input[32] * weights[24][32])) + (input[33] * weights[24][33])) + (input[34] * weights[24][34])) + (input[35] * weights[24][35])) / 10000) + biases[24]) | |
83 | - | let weighted_sum26 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[25][0]) + (input[1] * weights[25][1])) + (input[2] * weights[25][2])) + (input[3] * weights[25][3])) + (input[4] * weights[25][4])) + (input[5] * weights[25][5])) + (input[6] * weights[25][6])) + (input[7] * weights[25][7])) + (input[8] * weights[25][8])) + (input[9] * weights[25][9])) + (input[10] * weights[25][10])) + (input[11] * weights[25][11])) + (input[12] * weights[25][12])) + (input[13] * weights[25][13])) + (input[14] * weights[25][14])) + (input[15] * weights[25][15])) + (input[16] * weights[25][16])) + (input[17] * weights[25][17])) + (input[18] * weights[25][18])) + (input[19] * weights[25][19])) + (input[20] * weights[25][20])) + (input[21] * weights[25][21])) + (input[22] * weights[25][22])) + (input[23] * weights[25][23])) + (input[24] * weights[25][24])) + (input[25] * weights[25][25])) + (input[26] * weights[25][26])) + (input[27] * weights[25][27])) + (input[28] * weights[25][28])) + (input[29] * weights[25][29])) + (input[30] * weights[25][30])) + (input[31] * weights[25][31])) + (input[32] * weights[25][32])) + (input[33] * weights[25][33])) + (input[34] * weights[25][34])) + (input[35] * weights[25][35])) / 10000) + biases[25]) | |
84 | - | let weighted_sum27 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[26][0]) + (input[1] * weights[26][1])) + (input[2] * weights[26][2])) + (input[3] * weights[26][3])) + (input[4] * weights[26][4])) + (input[5] * weights[26][5])) + (input[6] * weights[26][6])) + (input[7] * weights[26][7])) + (input[8] * weights[26][8])) + (input[9] * weights[26][9])) + (input[10] * weights[26][10])) + (input[11] * weights[26][11])) + (input[12] * weights[26][12])) + (input[13] * weights[26][13])) + (input[14] * weights[26][14])) + (input[15] * weights[26][15])) + (input[16] * weights[26][16])) + (input[17] * weights[26][17])) + (input[18] * weights[26][18])) + (input[19] * weights[26][19])) + (input[20] * weights[26][20])) + (input[21] * weights[26][21])) + (input[22] * weights[26][22])) + (input[23] * weights[26][23])) + (input[24] * weights[26][24])) + (input[25] * weights[26][25])) + (input[26] * weights[26][26])) + (input[27] * weights[26][27])) + (input[28] * weights[26][28])) + (input[29] * weights[26][29])) + (input[30] * weights[26][30])) + (input[31] * weights[26][31])) + (input[32] * weights[26][32])) + (input[33] * weights[26][33])) + (input[34] * weights[26][34])) + (input[35] * weights[26][35])) / 10000) + biases[26]) | |
85 | - | let weighted_sum28 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[27][0]) + (input[1] * weights[27][1])) + (input[2] * weights[27][2])) + (input[3] * weights[27][3])) + (input[4] * weights[27][4])) + (input[5] * weights[27][5])) + (input[6] * weights[27][6])) + (input[7] * weights[27][7])) + (input[8] * weights[27][8])) + (input[9] * weights[27][9])) + (input[10] * weights[27][10])) + (input[11] * weights[27][11])) + (input[12] * weights[27][12])) + (input[13] * weights[27][13])) + (input[14] * weights[27][14])) + (input[15] * weights[27][15])) + (input[16] * weights[27][16])) + (input[17] * weights[27][17])) + (input[18] * weights[27][18])) + (input[19] * weights[27][19])) + (input[20] * weights[27][20])) + (input[21] * weights[27][21])) + (input[22] * weights[27][22])) + (input[23] * weights[27][23])) + (input[24] * weights[27][24])) + (input[25] * weights[27][25])) + (input[26] * weights[27][26])) + (input[27] * weights[27][27])) + (input[28] * weights[27][28])) + (input[29] * weights[27][29])) + (input[30] * weights[27][30])) + (input[31] * weights[27][31])) + (input[32] * weights[27][32])) + (input[33] * weights[27][33])) + (input[34] * weights[27][34])) + (input[35] * weights[27][35])) / 10000) + biases[27]) | |
86 | - | let weighted_sum29 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[28][0]) + (input[1] * weights[28][1])) + (input[2] * weights[28][2])) + (input[3] * weights[28][3])) + (input[4] * weights[28][4])) + (input[5] * weights[28][5])) + (input[6] * weights[28][6])) + (input[7] * weights[28][7])) + (input[8] * weights[28][8])) + (input[9] * weights[28][9])) + (input[10] * weights[28][10])) + (input[11] * weights[28][11])) + (input[12] * weights[28][12])) + (input[13] * weights[28][13])) + (input[14] * weights[28][14])) + (input[15] * weights[28][15])) + (input[16] * weights[28][16])) + (input[17] * weights[28][17])) + (input[18] * weights[28][18])) + (input[19] * weights[28][19])) + (input[20] * weights[28][20])) + (input[21] * weights[28][21])) + (input[22] * weights[28][22])) + (input[23] * weights[28][23])) + (input[24] * weights[28][24])) + (input[25] * weights[28][25])) + (input[26] * weights[28][26])) + (input[27] * weights[28][27])) + (input[28] * weights[28][28])) + (input[29] * weights[28][29])) + (input[30] * weights[28][30])) + (input[31] * weights[28][31])) + (input[32] * weights[28][32])) + (input[33] * weights[28][33])) + (input[34] * weights[28][34])) + (input[35] * weights[28][35])) / 10000) + biases[28]) | |
87 | - | let weighted_sum30 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[29][0]) + (input[1] * weights[29][1])) + (input[2] * weights[29][2])) + (input[3] * weights[29][3])) + (input[4] * weights[29][4])) + (input[5] * weights[29][5])) + (input[6] * weights[29][6])) + (input[7] * weights[29][7])) + (input[8] * weights[29][8])) + (input[9] * weights[29][9])) + (input[10] * weights[29][10])) + (input[11] * weights[29][11])) + (input[12] * weights[29][12])) + (input[13] * weights[29][13])) + (input[14] * weights[29][14])) + (input[15] * weights[29][15])) + (input[16] * weights[29][16])) + (input[17] * weights[29][17])) + (input[18] * weights[29][18])) + (input[19] * weights[29][19])) + (input[20] * weights[29][20])) + (input[21] * weights[29][21])) + (input[22] * weights[29][22])) + (input[23] * weights[29][23])) + (input[24] * weights[29][24])) + (input[25] * weights[29][25])) + (input[26] * weights[29][26])) + (input[27] * weights[29][27])) + (input[28] * weights[29][28])) + (input[29] * weights[29][29])) + (input[30] * weights[29][30])) + (input[31] * weights[29][31])) + (input[32] * weights[29][32])) + (input[33] * weights[29][33])) + (input[34] * weights[29][34])) + (input[35] * weights[29][35])) / 10000) + biases[29]) | |
88 | - | let weighted_sum31 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[30][0]) + (input[1] * weights[30][1])) + (input[2] * weights[30][2])) + (input[3] * weights[30][3])) + (input[4] * weights[30][4])) + (input[5] * weights[30][5])) + (input[6] * weights[30][6])) + (input[7] * weights[30][7])) + (input[8] * weights[30][8])) + (input[9] * weights[30][9])) + (input[10] * weights[30][10])) + (input[11] * weights[30][11])) + (input[12] * weights[30][12])) + (input[13] * weights[30][13])) + (input[14] * weights[30][14])) + (input[15] * weights[30][15])) + (input[16] * weights[30][16])) + (input[17] * weights[30][17])) + (input[18] * weights[30][18])) + (input[19] * weights[30][19])) + (input[20] * weights[30][20])) + (input[21] * weights[30][21])) + (input[22] * weights[30][22])) + (input[23] * weights[30][23])) + (input[24] * weights[30][24])) + (input[25] * weights[30][25])) + (input[26] * weights[30][26])) + (input[27] * weights[30][27])) + (input[28] * weights[30][28])) + (input[29] * weights[30][29])) + (input[30] * weights[30][30])) + (input[31] * weights[30][31])) + (input[32] * weights[30][32])) + (input[33] * weights[30][33])) + (input[34] * weights[30][34])) + (input[35] * weights[30][35])) / 10000) + biases[30]) | |
89 | - | let weighted_sum32 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[31][0]) + (input[1] * weights[31][1])) + (input[2] * weights[31][2])) + (input[3] * weights[31][3])) + (input[4] * weights[31][4])) + (input[5] * weights[31][5])) + (input[6] * weights[31][6])) + (input[7] * weights[31][7])) + (input[8] * weights[31][8])) + (input[9] * weights[31][9])) + (input[10] * weights[31][10])) + (input[11] * weights[31][11])) + (input[12] * weights[31][12])) + (input[13] * weights[31][13])) + (input[14] * weights[31][14])) + (input[15] * weights[31][15])) + (input[16] * weights[31][16])) + (input[17] * weights[31][17])) + (input[18] * weights[31][18])) + (input[19] * weights[31][19])) + (input[20] * weights[31][20])) + (input[21] * weights[31][21])) + (input[22] * weights[31][22])) + (input[23] * weights[31][23])) + (input[24] * weights[31][24])) + (input[25] * weights[31][25])) + (input[26] * weights[31][26])) + (input[27] * weights[31][27])) + (input[28] * weights[31][28])) + (input[29] * weights[31][29])) + (input[30] * weights[31][30])) + (input[31] * weights[31][31])) + (input[32] * weights[31][32])) + (input[33] * weights[31][33])) + (input[34] * weights[31][34])) + (input[35] * weights[31][35])) / 10000) + biases[31]) | |
90 | - | let weighted_sum33 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[32][0]) + (input[1] * weights[32][1])) + (input[2] * weights[32][2])) + (input[3] * weights[32][3])) + (input[4] * weights[32][4])) + (input[5] * weights[32][5])) + (input[6] * weights[32][6])) + (input[7] * weights[32][7])) + (input[8] * weights[32][8])) + (input[9] * weights[32][9])) + (input[10] * weights[32][10])) + (input[11] * weights[32][11])) + (input[12] * weights[32][12])) + (input[13] * weights[32][13])) + (input[14] * weights[32][14])) + (input[15] * weights[32][15])) + (input[16] * weights[32][16])) + (input[17] * weights[32][17])) + (input[18] * weights[32][18])) + (input[19] * weights[32][19])) + (input[20] * weights[32][20])) + (input[21] * weights[32][21])) + (input[22] * weights[32][22])) + (input[23] * weights[32][23])) + (input[24] * weights[32][24])) + (input[25] * weights[32][25])) + (input[26] * weights[32][26])) + (input[27] * weights[32][27])) + (input[28] * weights[32][28])) + (input[29] * weights[32][29])) + (input[30] * weights[32][30])) + (input[31] * weights[32][31])) + (input[32] * weights[32][32])) + (input[33] * weights[32][33])) + (input[34] * weights[32][34])) + (input[35] * weights[32][35])) / 10000) + biases[32]) | |
91 | - | let weighted_sum34 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[33][0]) + (input[1] * weights[33][1])) + (input[2] * weights[33][2])) + (input[3] * weights[33][3])) + (input[4] * weights[33][4])) + (input[5] * weights[33][5])) + (input[6] * weights[33][6])) + (input[7] * weights[33][7])) + (input[8] * weights[33][8])) + (input[9] * weights[33][9])) + (input[10] * weights[33][10])) + (input[11] * weights[33][11])) + (input[12] * weights[33][12])) + (input[13] * weights[33][13])) + (input[14] * weights[33][14])) + (input[15] * weights[33][15])) + (input[16] * weights[33][16])) + (input[17] * weights[33][17])) + (input[18] * weights[33][18])) + (input[19] * weights[33][19])) + (input[20] * weights[33][20])) + (input[21] * weights[33][21])) + (input[22] * weights[33][22])) + (input[23] * weights[33][23])) + (input[24] * weights[33][24])) + (input[25] * weights[33][25])) + (input[26] * weights[33][26])) + (input[27] * weights[33][27])) + (input[28] * weights[33][28])) + (input[29] * weights[33][29])) + (input[30] * weights[33][30])) + (input[31] * weights[33][31])) + (input[32] * weights[33][32])) + (input[33] * weights[33][33])) + (input[34] * weights[33][34])) + (input[35] * weights[33][35])) / 10000) + biases[33]) | |
92 | - | let weighted_sum35 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[34][0]) + (input[1] * weights[34][1])) + (input[2] * weights[34][2])) + (input[3] * weights[34][3])) + (input[4] * weights[34][4])) + (input[5] * weights[34][5])) + (input[6] * weights[34][6])) + (input[7] * weights[34][7])) + (input[8] * weights[34][8])) + (input[9] * weights[34][9])) + (input[10] * weights[34][10])) + (input[11] * weights[34][11])) + (input[12] * weights[34][12])) + (input[13] * weights[34][13])) + (input[14] * weights[34][14])) + (input[15] * weights[34][15])) + (input[16] * weights[34][16])) + (input[17] * weights[34][17])) + (input[18] * weights[34][18])) + (input[19] * weights[34][19])) + (input[20] * weights[34][20])) + (input[21] * weights[34][21])) + (input[22] * weights[34][22])) + (input[23] * weights[34][23])) + (input[24] * weights[34][24])) + (input[25] * weights[34][25])) + (input[26] * weights[34][26])) + (input[27] * weights[34][27])) + (input[28] * weights[34][28])) + (input[29] * weights[34][29])) + (input[30] * weights[34][30])) + (input[31] * weights[34][31])) + (input[32] * weights[34][32])) + (input[33] * weights[34][33])) + (input[34] * weights[34][34])) + (input[35] * weights[34][35])) / 10000) + biases[34]) | |
93 | - | let weighted_sum36 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[35][0]) + (input[1] * weights[35][1])) + (input[2] * weights[35][2])) + (input[3] * weights[35][3])) + (input[4] * weights[35][4])) + (input[5] * weights[35][5])) + (input[6] * weights[35][6])) + (input[7] * weights[35][7])) + (input[8] * weights[35][8])) + (input[9] * weights[35][9])) + (input[10] * weights[35][10])) + (input[11] * weights[35][11])) + (input[12] * weights[35][12])) + (input[13] * weights[35][13])) + (input[14] * weights[35][14])) + (input[15] * weights[35][15])) + (input[16] * weights[35][16])) + (input[17] * weights[35][17])) + (input[18] * weights[35][18])) + (input[19] * weights[35][19])) + (input[20] * weights[35][20])) + (input[21] * weights[35][21])) + (input[22] * weights[35][22])) + (input[23] * weights[35][23])) + (input[24] * weights[35][24])) + (input[25] * weights[35][25])) + (input[26] * weights[35][26])) + (input[27] * weights[35][27])) + (input[28] * weights[35][28])) + (input[29] * weights[35][29])) + (input[30] * weights[35][30])) + (input[31] * weights[35][31])) + (input[32] * weights[35][32])) + (input[33] * weights[35][33])) + (input[34] * weights[35][34])) + (input[35] * weights[35][35])) / 10000) + biases[35]) | |
94 | - | [weighted_sum1, weighted_sum2, weighted_sum3, weighted_sum4, weighted_sum5, weighted_sum6, weighted_sum7, weighted_sum8, weighted_sum9, weighted_sum10, weighted_sum11, weighted_sum12, weighted_sum13, weighted_sum14, weighted_sum15, weighted_sum16, weighted_sum17, weighted_sum18, weighted_sum19, weighted_sum20, weighted_sum21, weighted_sum22, weighted_sum23, weighted_sum24, weighted_sum25, weighted_sum26, weighted_sum27, weighted_sum28, weighted_sum29, weighted_sum30, weighted_sum31, weighted_sum32, weighted_sum33, weighted_sum34, weighted_sum35, weighted_sum36] | |
26 | + | let weighted_sum1 = ((((((input[0] * weights[0][0]) + (input[1] * weights[0][1])) + (input[2] * weights[0][2])) + (input[3] * weights[0][3])) / 10000) + biases[0]) | |
27 | + | let weighted_sum2 = ((((((input[0] * weights[1][0]) + (input[1] * weights[1][1])) + (input[2] * weights[1][2])) + (input[3] * weights[1][3])) / 10000) + biases[1]) | |
28 | + | [weighted_sum1, weighted_sum2] | |
95 | 29 | } | |
96 | 30 | ||
97 | 31 | ||
98 | 32 | func linear_forward_3 (input,weights,biases) = { | |
99 | - | let weighted_sum1 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[0][0]) + (input[1] * weights[0][1])) + (input[2] * weights[0][2])) + (input[3] * weights[0][3])) + (input[4] * weights[0][4])) + (input[5] * weights[0][5])) + (input[6] * weights[0][6])) + (input[7] * weights[0][7])) + (input[8] * weights[0][8])) + (input[9] * weights[0][9])) + (input[10] * weights[0][10])) + (input[11] * weights[0][11])) + (input[12] * weights[0][12])) + (input[13] * weights[0][13])) + (input[14] * weights[0][14])) + (input[15] * weights[0][15])) + (input[16] * weights[0][16])) + (input[17] * weights[0][17])) + (input[18] * weights[0][18])) + (input[19] * weights[0][19])) + (input[20] * weights[0][20])) + (input[21] * weights[0][21])) + (input[22] * weights[0][22])) + (input[23] * weights[0][23])) + (input[24] * weights[0][24])) + (input[25] * weights[0][25])) + (input[26] * weights[0][26])) + (input[27] * weights[0][27])) + (input[28] * weights[0][28])) + (input[29] * weights[0][29])) + (input[30] * weights[0][30])) + (input[31] * weights[0][31])) + (input[32] * weights[0][32])) + (input[33] * weights[0][33])) + (input[34] * weights[0][34])) + (input[35] * weights[0][35])) / 10000) + biases[0]) | |
100 | - | let weighted_sum2 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[1][0]) + (input[1] * weights[1][1])) + (input[2] * weights[1][2])) + (input[3] * weights[1][3])) + (input[4] * weights[1][4])) + (input[5] * weights[1][5])) + (input[6] * weights[1][6])) + (input[7] * weights[1][7])) + (input[8] * weights[1][8])) + (input[9] * weights[1][9])) + (input[10] * weights[1][10])) + (input[11] * weights[1][11])) + (input[12] * weights[1][12])) + (input[13] * weights[1][13])) + (input[14] * weights[1][14])) + (input[15] * weights[1][15])) + (input[16] * weights[1][16])) + (input[17] * weights[1][17])) + (input[18] * weights[1][18])) + (input[19] * weights[1][19])) + (input[20] * weights[1][20])) + (input[21] * weights[1][21])) + (input[22] * weights[1][22])) + (input[23] * weights[1][23])) + (input[24] * weights[1][24])) + (input[25] * weights[1][25])) + (input[26] * weights[1][26])) + (input[27] * weights[1][27])) + (input[28] * weights[1][28])) + (input[29] * weights[1][29])) + (input[30] * weights[1][30])) + (input[31] * weights[1][31])) + (input[32] * weights[1][32])) + (input[33] * weights[1][33])) + (input[34] * weights[1][34])) + (input[35] * weights[1][35])) / 10000) + biases[1]) | |
101 | - | let weighted_sum3 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[2][0]) + (input[1] * weights[2][1])) + (input[2] * weights[2][2])) + (input[3] * weights[2][3])) + (input[4] * weights[2][4])) + (input[5] * weights[2][5])) + (input[6] * weights[2][6])) + (input[7] * weights[2][7])) + (input[8] * weights[2][8])) + (input[9] * weights[2][9])) + (input[10] * weights[2][10])) + (input[11] * weights[2][11])) + (input[12] * weights[2][12])) + (input[13] * weights[2][13])) + (input[14] * weights[2][14])) + (input[15] * weights[2][15])) + (input[16] * weights[2][16])) + (input[17] * weights[2][17])) + (input[18] * weights[2][18])) + (input[19] * weights[2][19])) + (input[20] * weights[2][20])) + (input[21] * weights[2][21])) + (input[22] * weights[2][22])) + (input[23] * weights[2][23])) + (input[24] * weights[2][24])) + (input[25] * weights[2][25])) + (input[26] * weights[2][26])) + (input[27] * weights[2][27])) + (input[28] * weights[2][28])) + (input[29] * weights[2][29])) + (input[30] * weights[2][30])) + (input[31] * weights[2][31])) + (input[32] * weights[2][32])) + (input[33] * weights[2][33])) + (input[34] * weights[2][34])) + (input[35] * weights[2][35])) / 10000) + biases[2]) | |
102 | - | let weighted_sum4 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[3][0]) + (input[1] * weights[3][1])) + (input[2] * weights[3][2])) + (input[3] * weights[3][3])) + (input[4] * weights[3][4])) + (input[5] * weights[3][5])) + (input[6] * weights[3][6])) + (input[7] * weights[3][7])) + (input[8] * weights[3][8])) + (input[9] * weights[3][9])) + (input[10] * weights[3][10])) + (input[11] * weights[3][11])) + (input[12] * weights[3][12])) + (input[13] * weights[3][13])) + (input[14] * weights[3][14])) + (input[15] * weights[3][15])) + (input[16] * weights[3][16])) + (input[17] * weights[3][17])) + (input[18] * weights[3][18])) + (input[19] * weights[3][19])) + (input[20] * weights[3][20])) + (input[21] * weights[3][21])) + (input[22] * weights[3][22])) + (input[23] * weights[3][23])) + (input[24] * weights[3][24])) + (input[25] * weights[3][25])) + (input[26] * weights[3][26])) + (input[27] * weights[3][27])) + (input[28] * weights[3][28])) + (input[29] * weights[3][29])) + (input[30] * weights[3][30])) + (input[31] * weights[3][31])) + (input[32] * weights[3][32])) + (input[33] * weights[3][33])) + (input[34] * weights[3][34])) + (input[35] * weights[3][35])) / 10000) + biases[3]) | |
103 | - | let weighted_sum5 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[4][0]) + (input[1] * weights[4][1])) + (input[2] * weights[4][2])) + (input[3] * weights[4][3])) + (input[4] * weights[4][4])) + (input[5] * weights[4][5])) + (input[6] * weights[4][6])) + (input[7] * weights[4][7])) + (input[8] * weights[4][8])) + (input[9] * weights[4][9])) + (input[10] * weights[4][10])) + (input[11] * weights[4][11])) + (input[12] * weights[4][12])) + (input[13] * weights[4][13])) + (input[14] * weights[4][14])) + (input[15] * weights[4][15])) + (input[16] * weights[4][16])) + (input[17] * weights[4][17])) + (input[18] * weights[4][18])) + (input[19] * weights[4][19])) + (input[20] * weights[4][20])) + (input[21] * weights[4][21])) + (input[22] * weights[4][22])) + (input[23] * weights[4][23])) + (input[24] * weights[4][24])) + (input[25] * weights[4][25])) + (input[26] * weights[4][26])) + (input[27] * weights[4][27])) + (input[28] * weights[4][28])) + (input[29] * weights[4][29])) + (input[30] * weights[4][30])) + (input[31] * weights[4][31])) + (input[32] * weights[4][32])) + (input[33] * weights[4][33])) + (input[34] * weights[4][34])) + (input[35] * weights[4][35])) / 10000) + biases[4]) | |
104 | - | let weighted_sum6 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[5][0]) + (input[1] * weights[5][1])) + (input[2] * weights[5][2])) + (input[3] * weights[5][3])) + (input[4] * weights[5][4])) + (input[5] * weights[5][5])) + (input[6] * weights[5][6])) + (input[7] * weights[5][7])) + (input[8] * weights[5][8])) + (input[9] * weights[5][9])) + (input[10] * weights[5][10])) + (input[11] * weights[5][11])) + (input[12] * weights[5][12])) + (input[13] * weights[5][13])) + (input[14] * weights[5][14])) + (input[15] * weights[5][15])) + (input[16] * weights[5][16])) + (input[17] * weights[5][17])) + (input[18] * weights[5][18])) + (input[19] * weights[5][19])) + (input[20] * weights[5][20])) + (input[21] * weights[5][21])) + (input[22] * weights[5][22])) + (input[23] * weights[5][23])) + (input[24] * weights[5][24])) + (input[25] * weights[5][25])) + (input[26] * weights[5][26])) + (input[27] * weights[5][27])) + (input[28] * weights[5][28])) + (input[29] * weights[5][29])) + (input[30] * weights[5][30])) + (input[31] * weights[5][31])) + (input[32] * weights[5][32])) + (input[33] * weights[5][33])) + (input[34] * weights[5][34])) + (input[35] * weights[5][35])) / 10000) + biases[5]) | |
105 | - | let weighted_sum7 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[6][0]) + (input[1] * weights[6][1])) + (input[2] * weights[6][2])) + (input[3] * weights[6][3])) + (input[4] * weights[6][4])) + (input[5] * weights[6][5])) + (input[6] * weights[6][6])) + (input[7] * weights[6][7])) + (input[8] * weights[6][8])) + (input[9] * weights[6][9])) + (input[10] * weights[6][10])) + (input[11] * weights[6][11])) + (input[12] * weights[6][12])) + (input[13] * weights[6][13])) + (input[14] * weights[6][14])) + (input[15] * weights[6][15])) + (input[16] * weights[6][16])) + (input[17] * weights[6][17])) + (input[18] * weights[6][18])) + (input[19] * weights[6][19])) + (input[20] * weights[6][20])) + (input[21] * weights[6][21])) + (input[22] * weights[6][22])) + (input[23] * weights[6][23])) + (input[24] * weights[6][24])) + (input[25] * weights[6][25])) + (input[26] * weights[6][26])) + (input[27] * weights[6][27])) + (input[28] * weights[6][28])) + (input[29] * weights[6][29])) + (input[30] * weights[6][30])) + (input[31] * weights[6][31])) + (input[32] * weights[6][32])) + (input[33] * weights[6][33])) + (input[34] * weights[6][34])) + (input[35] * weights[6][35])) / 10000) + biases[6]) | |
106 | - | let weighted_sum8 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[7][0]) + (input[1] * weights[7][1])) + (input[2] * weights[7][2])) + (input[3] * weights[7][3])) + (input[4] * weights[7][4])) + (input[5] * weights[7][5])) + (input[6] * weights[7][6])) + (input[7] * weights[7][7])) + (input[8] * weights[7][8])) + (input[9] * weights[7][9])) + (input[10] * weights[7][10])) + (input[11] * weights[7][11])) + (input[12] * weights[7][12])) + (input[13] * weights[7][13])) + (input[14] * weights[7][14])) + (input[15] * weights[7][15])) + (input[16] * weights[7][16])) + (input[17] * weights[7][17])) + (input[18] * weights[7][18])) + (input[19] * weights[7][19])) + (input[20] * weights[7][20])) + (input[21] * weights[7][21])) + (input[22] * weights[7][22])) + (input[23] * weights[7][23])) + (input[24] * weights[7][24])) + (input[25] * weights[7][25])) + (input[26] * weights[7][26])) + (input[27] * weights[7][27])) + (input[28] * weights[7][28])) + (input[29] * weights[7][29])) + (input[30] * weights[7][30])) + (input[31] * weights[7][31])) + (input[32] * weights[7][32])) + (input[33] * weights[7][33])) + (input[34] * weights[7][34])) + (input[35] * weights[7][35])) / 10000) + biases[7]) | |
107 | - | let weighted_sum9 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[8][0]) + (input[1] * weights[8][1])) + (input[2] * weights[8][2])) + (input[3] * weights[8][3])) + (input[4] * weights[8][4])) + (input[5] * weights[8][5])) + (input[6] * weights[8][6])) + (input[7] * weights[8][7])) + (input[8] * weights[8][8])) + (input[9] * weights[8][9])) + (input[10] * weights[8][10])) + (input[11] * weights[8][11])) + (input[12] * weights[8][12])) + (input[13] * weights[8][13])) + (input[14] * weights[8][14])) + (input[15] * weights[8][15])) + (input[16] * weights[8][16])) + (input[17] * weights[8][17])) + (input[18] * weights[8][18])) + (input[19] * weights[8][19])) + (input[20] * weights[8][20])) + (input[21] * weights[8][21])) + (input[22] * weights[8][22])) + (input[23] * weights[8][23])) + (input[24] * weights[8][24])) + (input[25] * weights[8][25])) + (input[26] * weights[8][26])) + (input[27] * weights[8][27])) + (input[28] * weights[8][28])) + (input[29] * weights[8][29])) + (input[30] * weights[8][30])) + (input[31] * weights[8][31])) + (input[32] * weights[8][32])) + (input[33] * weights[8][33])) + (input[34] * weights[8][34])) + (input[35] * weights[8][35])) / 10000) + biases[8]) | |
108 | - | [weighted_sum1, weighted_sum2, weighted_sum3, weighted_sum4, weighted_sum5, weighted_sum6, weighted_sum7, weighted_sum8, weighted_sum9] | |
33 | + | let weighted_sum1 = ((((input[0] * weights[0][0]) + (input[1] * weights[0][1])) / 10000) + biases[0]) | |
34 | + | [weighted_sum1] | |
109 | 35 | } | |
110 | 36 | ||
111 | 37 | ||
116 | 42 | else (5000 + (input / 2)) | |
117 | 43 | ||
118 | 44 | ||
119 | - | func sigmoid_activation (inputs,num_outputs) = [sigmoid(inputs[0]), sigmoid(inputs[1]), sigmoid(inputs[2]), sigmoid(inputs[3]) | |
45 | + | func sigmoid_activation (inputs,num_outputs) = [sigmoid(inputs[0]), sigmoid(inputs[1]), sigmoid(inputs[2]), sigmoid(inputs[3])] | |
120 | 46 | ||
121 | 47 | ||
122 | 48 | @Callable(i) | |
123 | - | func predict (x1,x2 | |
49 | + | func predict (x1,x2) = { | |
124 | 50 | let x1_scaled = (x1 * 10000) | |
125 | 51 | let x2_scaled = (x2 * 10000) | |
126 | - | let x3_scaled = (x3 * 10000) | |
127 | - | let x4_scaled = (x4 * 10000) | |
128 | - | let x5_scaled = (x5 * 10000) | |
129 | - | let x6_scaled = (x6 * 10000) | |
130 | - | let x7_scaled = (x7 * 10000) | |
131 | - | let x8_scaled = (x8 * 10000) | |
132 | - | let x9_scaled = (x9 * 10000) | |
133 | - | let inputs = [x1_scaled, x2_scaled, x3_scaled, x4_scaled, x5_scaled, x6_scaled, x7_scaled, x8_scaled, x9_scaled] | |
52 | + | let inputs = [x1_scaled, x2_scaled] | |
134 | 53 | let z1 = linear_forward_1(inputs, weights_layer_1, biases_layer_1) | |
135 | - | let a1 = sigmoid_activation(z1, | |
54 | + | let a1 = sigmoid_activation(z1, 4) | |
136 | 55 | let z2 = linear_forward_2(a1, weights_layer_2, biases_layer_2) | |
137 | - | let a2 = sigmoid_activation(z2, | |
56 | + | let a2 = sigmoid_activation(z2, 2) | |
138 | 57 | let z3 = linear_forward_3(a2, weights_layer_3, biases_layer_3) | |
139 | 58 | let a3 = sigmoid(z3[0]) | |
140 | 59 | let result = (a3 / 10000) | |
141 | - | let debug_outputs = [IntegerEntry("debug_z1_1", z1[0]), IntegerEntry("debug_a1_1", a1[0]), IntegerEntry("debug_z1_2", z1[1]), IntegerEntry("debug_a1_2", a1[1]), IntegerEntry("debug_z1_3", z1[2]), IntegerEntry("debug_a1_3", a1[2]), IntegerEntry("debug_z1_4", z1[3]), IntegerEntry("debug_a1_4", a1[3]), IntegerEntry("debug_ | |
60 | + | let debug_outputs = [IntegerEntry("debug_z1_1", z1[0]), IntegerEntry("debug_a1_1", a1[0]), IntegerEntry("debug_z1_2", z1[1]), IntegerEntry("debug_a1_2", a1[1]), IntegerEntry("debug_z1_3", z1[2]), IntegerEntry("debug_a1_3", a1[2]), IntegerEntry("debug_z1_4", z1[3]), IntegerEntry("debug_a1_4", a1[3]), IntegerEntry("debug_z2_1", z2[0]), IntegerEntry("debug_a2_1", a2[0]), IntegerEntry("debug_z2_2", z2[1]), IntegerEntry("debug_a2_2", a2[1]), IntegerEntry("debug_z3_1", z3[0]), IntegerEntry("debug_a3", a3), IntegerEntry("debug_result", result)] | |
142 | 61 | $Tuple2(debug_outputs, result) | |
143 | 62 | } | |
144 | 63 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 7 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let weights_layer_1 = [[ | |
4 | + | let weights_layer_1 = [[-92752, 62221], [-92018, -65161], [-15287, 114503], [-75248, -60448]] | |
5 | 5 | ||
6 | - | let biases_layer_1 = [- | |
6 | + | let biases_layer_1 = [-25696, 23125, -47529, 18951] | |
7 | 7 | ||
8 | - | let weights_layer_2 = [[- | |
8 | + | let weights_layer_2 = [[-75752, 55233, 65811, 37732], [68610, -57062, -60355, -33235]] | |
9 | 9 | ||
10 | - | let biases_layer_2 = [- | |
10 | + | let biases_layer_2 = [-31616, 29450] | |
11 | 11 | ||
12 | - | let weights_layer_3 = [[- | |
12 | + | let weights_layer_3 = [[-89396, 95173]] | |
13 | 13 | ||
14 | - | let biases_layer_3 = [ | |
14 | + | let biases_layer_3 = [-1923] | |
15 | 15 | ||
16 | 16 | func linear_forward_1 (input,weights,biases) = { | |
17 | - | let weighted_sum1 = (((((((((((input[0] * weights[0][0]) + (input[1] * weights[0][1])) + (input[2] * weights[0][2])) + (input[3] * weights[0][3])) + (input[4] * weights[0][4])) + (input[5] * weights[0][5])) + (input[6] * weights[0][6])) + (input[7] * weights[0][7])) + (input[8] * weights[0][8])) / 10000) + biases[0]) | |
18 | - | let weighted_sum2 = (((((((((((input[0] * weights[1][0]) + (input[1] * weights[1][1])) + (input[2] * weights[1][2])) + (input[3] * weights[1][3])) + (input[4] * weights[1][4])) + (input[5] * weights[1][5])) + (input[6] * weights[1][6])) + (input[7] * weights[1][7])) + (input[8] * weights[1][8])) / 10000) + biases[1]) | |
19 | - | let weighted_sum3 = (((((((((((input[0] * weights[2][0]) + (input[1] * weights[2][1])) + (input[2] * weights[2][2])) + (input[3] * weights[2][3])) + (input[4] * weights[2][4])) + (input[5] * weights[2][5])) + (input[6] * weights[2][6])) + (input[7] * weights[2][7])) + (input[8] * weights[2][8])) / 10000) + biases[2]) | |
20 | - | let weighted_sum4 = (((((((((((input[0] * weights[3][0]) + (input[1] * weights[3][1])) + (input[2] * weights[3][2])) + (input[3] * weights[3][3])) + (input[4] * weights[3][4])) + (input[5] * weights[3][5])) + (input[6] * weights[3][6])) + (input[7] * weights[3][7])) + (input[8] * weights[3][8])) / 10000) + biases[3]) | |
21 | - | let weighted_sum5 = (((((((((((input[0] * weights[4][0]) + (input[1] * weights[4][1])) + (input[2] * weights[4][2])) + (input[3] * weights[4][3])) + (input[4] * weights[4][4])) + (input[5] * weights[4][5])) + (input[6] * weights[4][6])) + (input[7] * weights[4][7])) + (input[8] * weights[4][8])) / 10000) + biases[4]) | |
22 | - | let weighted_sum6 = (((((((((((input[0] * weights[5][0]) + (input[1] * weights[5][1])) + (input[2] * weights[5][2])) + (input[3] * weights[5][3])) + (input[4] * weights[5][4])) + (input[5] * weights[5][5])) + (input[6] * weights[5][6])) + (input[7] * weights[5][7])) + (input[8] * weights[5][8])) / 10000) + biases[5]) | |
23 | - | let weighted_sum7 = (((((((((((input[0] * weights[6][0]) + (input[1] * weights[6][1])) + (input[2] * weights[6][2])) + (input[3] * weights[6][3])) + (input[4] * weights[6][4])) + (input[5] * weights[6][5])) + (input[6] * weights[6][6])) + (input[7] * weights[6][7])) + (input[8] * weights[6][8])) / 10000) + biases[6]) | |
24 | - | let weighted_sum8 = (((((((((((input[0] * weights[7][0]) + (input[1] * weights[7][1])) + (input[2] * weights[7][2])) + (input[3] * weights[7][3])) + (input[4] * weights[7][4])) + (input[5] * weights[7][5])) + (input[6] * weights[7][6])) + (input[7] * weights[7][7])) + (input[8] * weights[7][8])) / 10000) + biases[7]) | |
25 | - | let weighted_sum9 = (((((((((((input[0] * weights[8][0]) + (input[1] * weights[8][1])) + (input[2] * weights[8][2])) + (input[3] * weights[8][3])) + (input[4] * weights[8][4])) + (input[5] * weights[8][5])) + (input[6] * weights[8][6])) + (input[7] * weights[8][7])) + (input[8] * weights[8][8])) / 10000) + biases[8]) | |
26 | - | let weighted_sum10 = (((((((((((input[0] * weights[9][0]) + (input[1] * weights[9][1])) + (input[2] * weights[9][2])) + (input[3] * weights[9][3])) + (input[4] * weights[9][4])) + (input[5] * weights[9][5])) + (input[6] * weights[9][6])) + (input[7] * weights[9][7])) + (input[8] * weights[9][8])) / 10000) + biases[9]) | |
27 | - | let weighted_sum11 = (((((((((((input[0] * weights[10][0]) + (input[1] * weights[10][1])) + (input[2] * weights[10][2])) + (input[3] * weights[10][3])) + (input[4] * weights[10][4])) + (input[5] * weights[10][5])) + (input[6] * weights[10][6])) + (input[7] * weights[10][7])) + (input[8] * weights[10][8])) / 10000) + biases[10]) | |
28 | - | let weighted_sum12 = (((((((((((input[0] * weights[11][0]) + (input[1] * weights[11][1])) + (input[2] * weights[11][2])) + (input[3] * weights[11][3])) + (input[4] * weights[11][4])) + (input[5] * weights[11][5])) + (input[6] * weights[11][6])) + (input[7] * weights[11][7])) + (input[8] * weights[11][8])) / 10000) + biases[11]) | |
29 | - | let weighted_sum13 = (((((((((((input[0] * weights[12][0]) + (input[1] * weights[12][1])) + (input[2] * weights[12][2])) + (input[3] * weights[12][3])) + (input[4] * weights[12][4])) + (input[5] * weights[12][5])) + (input[6] * weights[12][6])) + (input[7] * weights[12][7])) + (input[8] * weights[12][8])) / 10000) + biases[12]) | |
30 | - | let weighted_sum14 = (((((((((((input[0] * weights[13][0]) + (input[1] * weights[13][1])) + (input[2] * weights[13][2])) + (input[3] * weights[13][3])) + (input[4] * weights[13][4])) + (input[5] * weights[13][5])) + (input[6] * weights[13][6])) + (input[7] * weights[13][7])) + (input[8] * weights[13][8])) / 10000) + biases[13]) | |
31 | - | let weighted_sum15 = (((((((((((input[0] * weights[14][0]) + (input[1] * weights[14][1])) + (input[2] * weights[14][2])) + (input[3] * weights[14][3])) + (input[4] * weights[14][4])) + (input[5] * weights[14][5])) + (input[6] * weights[14][6])) + (input[7] * weights[14][7])) + (input[8] * weights[14][8])) / 10000) + biases[14]) | |
32 | - | let weighted_sum16 = (((((((((((input[0] * weights[15][0]) + (input[1] * weights[15][1])) + (input[2] * weights[15][2])) + (input[3] * weights[15][3])) + (input[4] * weights[15][4])) + (input[5] * weights[15][5])) + (input[6] * weights[15][6])) + (input[7] * weights[15][7])) + (input[8] * weights[15][8])) / 10000) + biases[15]) | |
33 | - | let weighted_sum17 = (((((((((((input[0] * weights[16][0]) + (input[1] * weights[16][1])) + (input[2] * weights[16][2])) + (input[3] * weights[16][3])) + (input[4] * weights[16][4])) + (input[5] * weights[16][5])) + (input[6] * weights[16][6])) + (input[7] * weights[16][7])) + (input[8] * weights[16][8])) / 10000) + biases[16]) | |
34 | - | let weighted_sum18 = (((((((((((input[0] * weights[17][0]) + (input[1] * weights[17][1])) + (input[2] * weights[17][2])) + (input[3] * weights[17][3])) + (input[4] * weights[17][4])) + (input[5] * weights[17][5])) + (input[6] * weights[17][6])) + (input[7] * weights[17][7])) + (input[8] * weights[17][8])) / 10000) + biases[17]) | |
35 | - | let weighted_sum19 = (((((((((((input[0] * weights[18][0]) + (input[1] * weights[18][1])) + (input[2] * weights[18][2])) + (input[3] * weights[18][3])) + (input[4] * weights[18][4])) + (input[5] * weights[18][5])) + (input[6] * weights[18][6])) + (input[7] * weights[18][7])) + (input[8] * weights[18][8])) / 10000) + biases[18]) | |
36 | - | let weighted_sum20 = (((((((((((input[0] * weights[19][0]) + (input[1] * weights[19][1])) + (input[2] * weights[19][2])) + (input[3] * weights[19][3])) + (input[4] * weights[19][4])) + (input[5] * weights[19][5])) + (input[6] * weights[19][6])) + (input[7] * weights[19][7])) + (input[8] * weights[19][8])) / 10000) + biases[19]) | |
37 | - | let weighted_sum21 = (((((((((((input[0] * weights[20][0]) + (input[1] * weights[20][1])) + (input[2] * weights[20][2])) + (input[3] * weights[20][3])) + (input[4] * weights[20][4])) + (input[5] * weights[20][5])) + (input[6] * weights[20][6])) + (input[7] * weights[20][7])) + (input[8] * weights[20][8])) / 10000) + biases[20]) | |
38 | - | let weighted_sum22 = (((((((((((input[0] * weights[21][0]) + (input[1] * weights[21][1])) + (input[2] * weights[21][2])) + (input[3] * weights[21][3])) + (input[4] * weights[21][4])) + (input[5] * weights[21][5])) + (input[6] * weights[21][6])) + (input[7] * weights[21][7])) + (input[8] * weights[21][8])) / 10000) + biases[21]) | |
39 | - | let weighted_sum23 = (((((((((((input[0] * weights[22][0]) + (input[1] * weights[22][1])) + (input[2] * weights[22][2])) + (input[3] * weights[22][3])) + (input[4] * weights[22][4])) + (input[5] * weights[22][5])) + (input[6] * weights[22][6])) + (input[7] * weights[22][7])) + (input[8] * weights[22][8])) / 10000) + biases[22]) | |
40 | - | let weighted_sum24 = (((((((((((input[0] * weights[23][0]) + (input[1] * weights[23][1])) + (input[2] * weights[23][2])) + (input[3] * weights[23][3])) + (input[4] * weights[23][4])) + (input[5] * weights[23][5])) + (input[6] * weights[23][6])) + (input[7] * weights[23][7])) + (input[8] * weights[23][8])) / 10000) + biases[23]) | |
41 | - | let weighted_sum25 = (((((((((((input[0] * weights[24][0]) + (input[1] * weights[24][1])) + (input[2] * weights[24][2])) + (input[3] * weights[24][3])) + (input[4] * weights[24][4])) + (input[5] * weights[24][5])) + (input[6] * weights[24][6])) + (input[7] * weights[24][7])) + (input[8] * weights[24][8])) / 10000) + biases[24]) | |
42 | - | let weighted_sum26 = (((((((((((input[0] * weights[25][0]) + (input[1] * weights[25][1])) + (input[2] * weights[25][2])) + (input[3] * weights[25][3])) + (input[4] * weights[25][4])) + (input[5] * weights[25][5])) + (input[6] * weights[25][6])) + (input[7] * weights[25][7])) + (input[8] * weights[25][8])) / 10000) + biases[25]) | |
43 | - | let weighted_sum27 = (((((((((((input[0] * weights[26][0]) + (input[1] * weights[26][1])) + (input[2] * weights[26][2])) + (input[3] * weights[26][3])) + (input[4] * weights[26][4])) + (input[5] * weights[26][5])) + (input[6] * weights[26][6])) + (input[7] * weights[26][7])) + (input[8] * weights[26][8])) / 10000) + biases[26]) | |
44 | - | let weighted_sum28 = (((((((((((input[0] * weights[27][0]) + (input[1] * weights[27][1])) + (input[2] * weights[27][2])) + (input[3] * weights[27][3])) + (input[4] * weights[27][4])) + (input[5] * weights[27][5])) + (input[6] * weights[27][6])) + (input[7] * weights[27][7])) + (input[8] * weights[27][8])) / 10000) + biases[27]) | |
45 | - | let weighted_sum29 = (((((((((((input[0] * weights[28][0]) + (input[1] * weights[28][1])) + (input[2] * weights[28][2])) + (input[3] * weights[28][3])) + (input[4] * weights[28][4])) + (input[5] * weights[28][5])) + (input[6] * weights[28][6])) + (input[7] * weights[28][7])) + (input[8] * weights[28][8])) / 10000) + biases[28]) | |
46 | - | let weighted_sum30 = (((((((((((input[0] * weights[29][0]) + (input[1] * weights[29][1])) + (input[2] * weights[29][2])) + (input[3] * weights[29][3])) + (input[4] * weights[29][4])) + (input[5] * weights[29][5])) + (input[6] * weights[29][6])) + (input[7] * weights[29][7])) + (input[8] * weights[29][8])) / 10000) + biases[29]) | |
47 | - | let weighted_sum31 = (((((((((((input[0] * weights[30][0]) + (input[1] * weights[30][1])) + (input[2] * weights[30][2])) + (input[3] * weights[30][3])) + (input[4] * weights[30][4])) + (input[5] * weights[30][5])) + (input[6] * weights[30][6])) + (input[7] * weights[30][7])) + (input[8] * weights[30][8])) / 10000) + biases[30]) | |
48 | - | let weighted_sum32 = (((((((((((input[0] * weights[31][0]) + (input[1] * weights[31][1])) + (input[2] * weights[31][2])) + (input[3] * weights[31][3])) + (input[4] * weights[31][4])) + (input[5] * weights[31][5])) + (input[6] * weights[31][6])) + (input[7] * weights[31][7])) + (input[8] * weights[31][8])) / 10000) + biases[31]) | |
49 | - | let weighted_sum33 = (((((((((((input[0] * weights[32][0]) + (input[1] * weights[32][1])) + (input[2] * weights[32][2])) + (input[3] * weights[32][3])) + (input[4] * weights[32][4])) + (input[5] * weights[32][5])) + (input[6] * weights[32][6])) + (input[7] * weights[32][7])) + (input[8] * weights[32][8])) / 10000) + biases[32]) | |
50 | - | let weighted_sum34 = (((((((((((input[0] * weights[33][0]) + (input[1] * weights[33][1])) + (input[2] * weights[33][2])) + (input[3] * weights[33][3])) + (input[4] * weights[33][4])) + (input[5] * weights[33][5])) + (input[6] * weights[33][6])) + (input[7] * weights[33][7])) + (input[8] * weights[33][8])) / 10000) + biases[33]) | |
51 | - | let weighted_sum35 = (((((((((((input[0] * weights[34][0]) + (input[1] * weights[34][1])) + (input[2] * weights[34][2])) + (input[3] * weights[34][3])) + (input[4] * weights[34][4])) + (input[5] * weights[34][5])) + (input[6] * weights[34][6])) + (input[7] * weights[34][7])) + (input[8] * weights[34][8])) / 10000) + biases[34]) | |
52 | - | let weighted_sum36 = (((((((((((input[0] * weights[35][0]) + (input[1] * weights[35][1])) + (input[2] * weights[35][2])) + (input[3] * weights[35][3])) + (input[4] * weights[35][4])) + (input[5] * weights[35][5])) + (input[6] * weights[35][6])) + (input[7] * weights[35][7])) + (input[8] * weights[35][8])) / 10000) + biases[35]) | |
53 | - | [weighted_sum1, weighted_sum2, weighted_sum3, weighted_sum4, weighted_sum5, weighted_sum6, weighted_sum7, weighted_sum8, weighted_sum9, weighted_sum10, weighted_sum11, weighted_sum12, weighted_sum13, weighted_sum14, weighted_sum15, weighted_sum16, weighted_sum17, weighted_sum18, weighted_sum19, weighted_sum20, weighted_sum21, weighted_sum22, weighted_sum23, weighted_sum24, weighted_sum25, weighted_sum26, weighted_sum27, weighted_sum28, weighted_sum29, weighted_sum30, weighted_sum31, weighted_sum32, weighted_sum33, weighted_sum34, weighted_sum35, weighted_sum36] | |
17 | + | let weighted_sum1 = ((((input[0] * weights[0][0]) + (input[1] * weights[0][1])) / 10000) + biases[0]) | |
18 | + | let weighted_sum2 = ((((input[0] * weights[1][0]) + (input[1] * weights[1][1])) / 10000) + biases[1]) | |
19 | + | let weighted_sum3 = ((((input[0] * weights[2][0]) + (input[1] * weights[2][1])) / 10000) + biases[2]) | |
20 | + | let weighted_sum4 = ((((input[0] * weights[3][0]) + (input[1] * weights[3][1])) / 10000) + biases[3]) | |
21 | + | [weighted_sum1, weighted_sum2, weighted_sum3, weighted_sum4] | |
54 | 22 | } | |
55 | 23 | ||
56 | 24 | ||
57 | 25 | func linear_forward_2 (input,weights,biases) = { | |
58 | - | let weighted_sum1 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[0][0]) + (input[1] * weights[0][1])) + (input[2] * weights[0][2])) + (input[3] * weights[0][3])) + (input[4] * weights[0][4])) + (input[5] * weights[0][5])) + (input[6] * weights[0][6])) + (input[7] * weights[0][7])) + (input[8] * weights[0][8])) + (input[9] * weights[0][9])) + (input[10] * weights[0][10])) + (input[11] * weights[0][11])) + (input[12] * weights[0][12])) + (input[13] * weights[0][13])) + (input[14] * weights[0][14])) + (input[15] * weights[0][15])) + (input[16] * weights[0][16])) + (input[17] * weights[0][17])) + (input[18] * weights[0][18])) + (input[19] * weights[0][19])) + (input[20] * weights[0][20])) + (input[21] * weights[0][21])) + (input[22] * weights[0][22])) + (input[23] * weights[0][23])) + (input[24] * weights[0][24])) + (input[25] * weights[0][25])) + (input[26] * weights[0][26])) + (input[27] * weights[0][27])) + (input[28] * weights[0][28])) + (input[29] * weights[0][29])) + (input[30] * weights[0][30])) + (input[31] * weights[0][31])) + (input[32] * weights[0][32])) + (input[33] * weights[0][33])) + (input[34] * weights[0][34])) + (input[35] * weights[0][35])) / 10000) + biases[0]) | |
59 | - | let weighted_sum2 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[1][0]) + (input[1] * weights[1][1])) + (input[2] * weights[1][2])) + (input[3] * weights[1][3])) + (input[4] * weights[1][4])) + (input[5] * weights[1][5])) + (input[6] * weights[1][6])) + (input[7] * weights[1][7])) + (input[8] * weights[1][8])) + (input[9] * weights[1][9])) + (input[10] * weights[1][10])) + (input[11] * weights[1][11])) + (input[12] * weights[1][12])) + (input[13] * weights[1][13])) + (input[14] * weights[1][14])) + (input[15] * weights[1][15])) + (input[16] * weights[1][16])) + (input[17] * weights[1][17])) + (input[18] * weights[1][18])) + (input[19] * weights[1][19])) + (input[20] * weights[1][20])) + (input[21] * weights[1][21])) + (input[22] * weights[1][22])) + (input[23] * weights[1][23])) + (input[24] * weights[1][24])) + (input[25] * weights[1][25])) + (input[26] * weights[1][26])) + (input[27] * weights[1][27])) + (input[28] * weights[1][28])) + (input[29] * weights[1][29])) + (input[30] * weights[1][30])) + (input[31] * weights[1][31])) + (input[32] * weights[1][32])) + (input[33] * weights[1][33])) + (input[34] * weights[1][34])) + (input[35] * weights[1][35])) / 10000) + biases[1]) | |
60 | - | let weighted_sum3 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[2][0]) + (input[1] * weights[2][1])) + (input[2] * weights[2][2])) + (input[3] * weights[2][3])) + (input[4] * weights[2][4])) + (input[5] * weights[2][5])) + (input[6] * weights[2][6])) + (input[7] * weights[2][7])) + (input[8] * weights[2][8])) + (input[9] * weights[2][9])) + (input[10] * weights[2][10])) + (input[11] * weights[2][11])) + (input[12] * weights[2][12])) + (input[13] * weights[2][13])) + (input[14] * weights[2][14])) + (input[15] * weights[2][15])) + (input[16] * weights[2][16])) + (input[17] * weights[2][17])) + (input[18] * weights[2][18])) + (input[19] * weights[2][19])) + (input[20] * weights[2][20])) + (input[21] * weights[2][21])) + (input[22] * weights[2][22])) + (input[23] * weights[2][23])) + (input[24] * weights[2][24])) + (input[25] * weights[2][25])) + (input[26] * weights[2][26])) + (input[27] * weights[2][27])) + (input[28] * weights[2][28])) + (input[29] * weights[2][29])) + (input[30] * weights[2][30])) + (input[31] * weights[2][31])) + (input[32] * weights[2][32])) + (input[33] * weights[2][33])) + (input[34] * weights[2][34])) + (input[35] * weights[2][35])) / 10000) + biases[2]) | |
61 | - | let weighted_sum4 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[3][0]) + (input[1] * weights[3][1])) + (input[2] * weights[3][2])) + (input[3] * weights[3][3])) + (input[4] * weights[3][4])) + (input[5] * weights[3][5])) + (input[6] * weights[3][6])) + (input[7] * weights[3][7])) + (input[8] * weights[3][8])) + (input[9] * weights[3][9])) + (input[10] * weights[3][10])) + (input[11] * weights[3][11])) + (input[12] * weights[3][12])) + (input[13] * weights[3][13])) + (input[14] * weights[3][14])) + (input[15] * weights[3][15])) + (input[16] * weights[3][16])) + (input[17] * weights[3][17])) + (input[18] * weights[3][18])) + (input[19] * weights[3][19])) + (input[20] * weights[3][20])) + (input[21] * weights[3][21])) + (input[22] * weights[3][22])) + (input[23] * weights[3][23])) + (input[24] * weights[3][24])) + (input[25] * weights[3][25])) + (input[26] * weights[3][26])) + (input[27] * weights[3][27])) + (input[28] * weights[3][28])) + (input[29] * weights[3][29])) + (input[30] * weights[3][30])) + (input[31] * weights[3][31])) + (input[32] * weights[3][32])) + (input[33] * weights[3][33])) + (input[34] * weights[3][34])) + (input[35] * weights[3][35])) / 10000) + biases[3]) | |
62 | - | let weighted_sum5 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[4][0]) + (input[1] * weights[4][1])) + (input[2] * weights[4][2])) + (input[3] * weights[4][3])) + (input[4] * weights[4][4])) + (input[5] * weights[4][5])) + (input[6] * weights[4][6])) + (input[7] * weights[4][7])) + (input[8] * weights[4][8])) + (input[9] * weights[4][9])) + (input[10] * weights[4][10])) + (input[11] * weights[4][11])) + (input[12] * weights[4][12])) + (input[13] * weights[4][13])) + (input[14] * weights[4][14])) + (input[15] * weights[4][15])) + (input[16] * weights[4][16])) + (input[17] * weights[4][17])) + (input[18] * weights[4][18])) + (input[19] * weights[4][19])) + (input[20] * weights[4][20])) + (input[21] * weights[4][21])) + (input[22] * weights[4][22])) + (input[23] * weights[4][23])) + (input[24] * weights[4][24])) + (input[25] * weights[4][25])) + (input[26] * weights[4][26])) + (input[27] * weights[4][27])) + (input[28] * weights[4][28])) + (input[29] * weights[4][29])) + (input[30] * weights[4][30])) + (input[31] * weights[4][31])) + (input[32] * weights[4][32])) + (input[33] * weights[4][33])) + (input[34] * weights[4][34])) + (input[35] * weights[4][35])) / 10000) + biases[4]) | |
63 | - | let weighted_sum6 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[5][0]) + (input[1] * weights[5][1])) + (input[2] * weights[5][2])) + (input[3] * weights[5][3])) + (input[4] * weights[5][4])) + (input[5] * weights[5][5])) + (input[6] * weights[5][6])) + (input[7] * weights[5][7])) + (input[8] * weights[5][8])) + (input[9] * weights[5][9])) + (input[10] * weights[5][10])) + (input[11] * weights[5][11])) + (input[12] * weights[5][12])) + (input[13] * weights[5][13])) + (input[14] * weights[5][14])) + (input[15] * weights[5][15])) + (input[16] * weights[5][16])) + (input[17] * weights[5][17])) + (input[18] * weights[5][18])) + (input[19] * weights[5][19])) + (input[20] * weights[5][20])) + (input[21] * weights[5][21])) + (input[22] * weights[5][22])) + (input[23] * weights[5][23])) + (input[24] * weights[5][24])) + (input[25] * weights[5][25])) + (input[26] * weights[5][26])) + (input[27] * weights[5][27])) + (input[28] * weights[5][28])) + (input[29] * weights[5][29])) + (input[30] * weights[5][30])) + (input[31] * weights[5][31])) + (input[32] * weights[5][32])) + (input[33] * weights[5][33])) + (input[34] * weights[5][34])) + (input[35] * weights[5][35])) / 10000) + biases[5]) | |
64 | - | let weighted_sum7 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[6][0]) + (input[1] * weights[6][1])) + (input[2] * weights[6][2])) + (input[3] * weights[6][3])) + (input[4] * weights[6][4])) + (input[5] * weights[6][5])) + (input[6] * weights[6][6])) + (input[7] * weights[6][7])) + (input[8] * weights[6][8])) + (input[9] * weights[6][9])) + (input[10] * weights[6][10])) + (input[11] * weights[6][11])) + (input[12] * weights[6][12])) + (input[13] * weights[6][13])) + (input[14] * weights[6][14])) + (input[15] * weights[6][15])) + (input[16] * weights[6][16])) + (input[17] * weights[6][17])) + (input[18] * weights[6][18])) + (input[19] * weights[6][19])) + (input[20] * weights[6][20])) + (input[21] * weights[6][21])) + (input[22] * weights[6][22])) + (input[23] * weights[6][23])) + (input[24] * weights[6][24])) + (input[25] * weights[6][25])) + (input[26] * weights[6][26])) + (input[27] * weights[6][27])) + (input[28] * weights[6][28])) + (input[29] * weights[6][29])) + (input[30] * weights[6][30])) + (input[31] * weights[6][31])) + (input[32] * weights[6][32])) + (input[33] * weights[6][33])) + (input[34] * weights[6][34])) + (input[35] * weights[6][35])) / 10000) + biases[6]) | |
65 | - | let weighted_sum8 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[7][0]) + (input[1] * weights[7][1])) + (input[2] * weights[7][2])) + (input[3] * weights[7][3])) + (input[4] * weights[7][4])) + (input[5] * weights[7][5])) + (input[6] * weights[7][6])) + (input[7] * weights[7][7])) + (input[8] * weights[7][8])) + (input[9] * weights[7][9])) + (input[10] * weights[7][10])) + (input[11] * weights[7][11])) + (input[12] * weights[7][12])) + (input[13] * weights[7][13])) + (input[14] * weights[7][14])) + (input[15] * weights[7][15])) + (input[16] * weights[7][16])) + (input[17] * weights[7][17])) + (input[18] * weights[7][18])) + (input[19] * weights[7][19])) + (input[20] * weights[7][20])) + (input[21] * weights[7][21])) + (input[22] * weights[7][22])) + (input[23] * weights[7][23])) + (input[24] * weights[7][24])) + (input[25] * weights[7][25])) + (input[26] * weights[7][26])) + (input[27] * weights[7][27])) + (input[28] * weights[7][28])) + (input[29] * weights[7][29])) + (input[30] * weights[7][30])) + (input[31] * weights[7][31])) + (input[32] * weights[7][32])) + (input[33] * weights[7][33])) + (input[34] * weights[7][34])) + (input[35] * weights[7][35])) / 10000) + biases[7]) | |
66 | - | let weighted_sum9 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[8][0]) + (input[1] * weights[8][1])) + (input[2] * weights[8][2])) + (input[3] * weights[8][3])) + (input[4] * weights[8][4])) + (input[5] * weights[8][5])) + (input[6] * weights[8][6])) + (input[7] * weights[8][7])) + (input[8] * weights[8][8])) + (input[9] * weights[8][9])) + (input[10] * weights[8][10])) + (input[11] * weights[8][11])) + (input[12] * weights[8][12])) + (input[13] * weights[8][13])) + (input[14] * weights[8][14])) + (input[15] * weights[8][15])) + (input[16] * weights[8][16])) + (input[17] * weights[8][17])) + (input[18] * weights[8][18])) + (input[19] * weights[8][19])) + (input[20] * weights[8][20])) + (input[21] * weights[8][21])) + (input[22] * weights[8][22])) + (input[23] * weights[8][23])) + (input[24] * weights[8][24])) + (input[25] * weights[8][25])) + (input[26] * weights[8][26])) + (input[27] * weights[8][27])) + (input[28] * weights[8][28])) + (input[29] * weights[8][29])) + (input[30] * weights[8][30])) + (input[31] * weights[8][31])) + (input[32] * weights[8][32])) + (input[33] * weights[8][33])) + (input[34] * weights[8][34])) + (input[35] * weights[8][35])) / 10000) + biases[8]) | |
67 | - | let weighted_sum10 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[9][0]) + (input[1] * weights[9][1])) + (input[2] * weights[9][2])) + (input[3] * weights[9][3])) + (input[4] * weights[9][4])) + (input[5] * weights[9][5])) + (input[6] * weights[9][6])) + (input[7] * weights[9][7])) + (input[8] * weights[9][8])) + (input[9] * weights[9][9])) + (input[10] * weights[9][10])) + (input[11] * weights[9][11])) + (input[12] * weights[9][12])) + (input[13] * weights[9][13])) + (input[14] * weights[9][14])) + (input[15] * weights[9][15])) + (input[16] * weights[9][16])) + (input[17] * weights[9][17])) + (input[18] * weights[9][18])) + (input[19] * weights[9][19])) + (input[20] * weights[9][20])) + (input[21] * weights[9][21])) + (input[22] * weights[9][22])) + (input[23] * weights[9][23])) + (input[24] * weights[9][24])) + (input[25] * weights[9][25])) + (input[26] * weights[9][26])) + (input[27] * weights[9][27])) + (input[28] * weights[9][28])) + (input[29] * weights[9][29])) + (input[30] * weights[9][30])) + (input[31] * weights[9][31])) + (input[32] * weights[9][32])) + (input[33] * weights[9][33])) + (input[34] * weights[9][34])) + (input[35] * weights[9][35])) / 10000) + biases[9]) | |
68 | - | let weighted_sum11 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[10][0]) + (input[1] * weights[10][1])) + (input[2] * weights[10][2])) + (input[3] * weights[10][3])) + (input[4] * weights[10][4])) + (input[5] * weights[10][5])) + (input[6] * weights[10][6])) + (input[7] * weights[10][7])) + (input[8] * weights[10][8])) + (input[9] * weights[10][9])) + (input[10] * weights[10][10])) + (input[11] * weights[10][11])) + (input[12] * weights[10][12])) + (input[13] * weights[10][13])) + (input[14] * weights[10][14])) + (input[15] * weights[10][15])) + (input[16] * weights[10][16])) + (input[17] * weights[10][17])) + (input[18] * weights[10][18])) + (input[19] * weights[10][19])) + (input[20] * weights[10][20])) + (input[21] * weights[10][21])) + (input[22] * weights[10][22])) + (input[23] * weights[10][23])) + (input[24] * weights[10][24])) + (input[25] * weights[10][25])) + (input[26] * weights[10][26])) + (input[27] * weights[10][27])) + (input[28] * weights[10][28])) + (input[29] * weights[10][29])) + (input[30] * weights[10][30])) + (input[31] * weights[10][31])) + (input[32] * weights[10][32])) + (input[33] * weights[10][33])) + (input[34] * weights[10][34])) + (input[35] * weights[10][35])) / 10000) + biases[10]) | |
69 | - | let weighted_sum12 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[11][0]) + (input[1] * weights[11][1])) + (input[2] * weights[11][2])) + (input[3] * weights[11][3])) + (input[4] * weights[11][4])) + (input[5] * weights[11][5])) + (input[6] * weights[11][6])) + (input[7] * weights[11][7])) + (input[8] * weights[11][8])) + (input[9] * weights[11][9])) + (input[10] * weights[11][10])) + (input[11] * weights[11][11])) + (input[12] * weights[11][12])) + (input[13] * weights[11][13])) + (input[14] * weights[11][14])) + (input[15] * weights[11][15])) + (input[16] * weights[11][16])) + (input[17] * weights[11][17])) + (input[18] * weights[11][18])) + (input[19] * weights[11][19])) + (input[20] * weights[11][20])) + (input[21] * weights[11][21])) + (input[22] * weights[11][22])) + (input[23] * weights[11][23])) + (input[24] * weights[11][24])) + (input[25] * weights[11][25])) + (input[26] * weights[11][26])) + (input[27] * weights[11][27])) + (input[28] * weights[11][28])) + (input[29] * weights[11][29])) + (input[30] * weights[11][30])) + (input[31] * weights[11][31])) + (input[32] * weights[11][32])) + (input[33] * weights[11][33])) + (input[34] * weights[11][34])) + (input[35] * weights[11][35])) / 10000) + biases[11]) | |
70 | - | let weighted_sum13 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[12][0]) + (input[1] * weights[12][1])) + (input[2] * weights[12][2])) + (input[3] * weights[12][3])) + (input[4] * weights[12][4])) + (input[5] * weights[12][5])) + (input[6] * weights[12][6])) + (input[7] * weights[12][7])) + (input[8] * weights[12][8])) + (input[9] * weights[12][9])) + (input[10] * weights[12][10])) + (input[11] * weights[12][11])) + (input[12] * weights[12][12])) + (input[13] * weights[12][13])) + (input[14] * weights[12][14])) + (input[15] * weights[12][15])) + (input[16] * weights[12][16])) + (input[17] * weights[12][17])) + (input[18] * weights[12][18])) + (input[19] * weights[12][19])) + (input[20] * weights[12][20])) + (input[21] * weights[12][21])) + (input[22] * weights[12][22])) + (input[23] * weights[12][23])) + (input[24] * weights[12][24])) + (input[25] * weights[12][25])) + (input[26] * weights[12][26])) + (input[27] * weights[12][27])) + (input[28] * weights[12][28])) + (input[29] * weights[12][29])) + (input[30] * weights[12][30])) + (input[31] * weights[12][31])) + (input[32] * weights[12][32])) + (input[33] * weights[12][33])) + (input[34] * weights[12][34])) + (input[35] * weights[12][35])) / 10000) + biases[12]) | |
71 | - | let weighted_sum14 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[13][0]) + (input[1] * weights[13][1])) + (input[2] * weights[13][2])) + (input[3] * weights[13][3])) + (input[4] * weights[13][4])) + (input[5] * weights[13][5])) + (input[6] * weights[13][6])) + (input[7] * weights[13][7])) + (input[8] * weights[13][8])) + (input[9] * weights[13][9])) + (input[10] * weights[13][10])) + (input[11] * weights[13][11])) + (input[12] * weights[13][12])) + (input[13] * weights[13][13])) + (input[14] * weights[13][14])) + (input[15] * weights[13][15])) + (input[16] * weights[13][16])) + (input[17] * weights[13][17])) + (input[18] * weights[13][18])) + (input[19] * weights[13][19])) + (input[20] * weights[13][20])) + (input[21] * weights[13][21])) + (input[22] * weights[13][22])) + (input[23] * weights[13][23])) + (input[24] * weights[13][24])) + (input[25] * weights[13][25])) + (input[26] * weights[13][26])) + (input[27] * weights[13][27])) + (input[28] * weights[13][28])) + (input[29] * weights[13][29])) + (input[30] * weights[13][30])) + (input[31] * weights[13][31])) + (input[32] * weights[13][32])) + (input[33] * weights[13][33])) + (input[34] * weights[13][34])) + (input[35] * weights[13][35])) / 10000) + biases[13]) | |
72 | - | let weighted_sum15 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[14][0]) + (input[1] * weights[14][1])) + (input[2] * weights[14][2])) + (input[3] * weights[14][3])) + (input[4] * weights[14][4])) + (input[5] * weights[14][5])) + (input[6] * weights[14][6])) + (input[7] * weights[14][7])) + (input[8] * weights[14][8])) + (input[9] * weights[14][9])) + (input[10] * weights[14][10])) + (input[11] * weights[14][11])) + (input[12] * weights[14][12])) + (input[13] * weights[14][13])) + (input[14] * weights[14][14])) + (input[15] * weights[14][15])) + (input[16] * weights[14][16])) + (input[17] * weights[14][17])) + (input[18] * weights[14][18])) + (input[19] * weights[14][19])) + (input[20] * weights[14][20])) + (input[21] * weights[14][21])) + (input[22] * weights[14][22])) + (input[23] * weights[14][23])) + (input[24] * weights[14][24])) + (input[25] * weights[14][25])) + (input[26] * weights[14][26])) + (input[27] * weights[14][27])) + (input[28] * weights[14][28])) + (input[29] * weights[14][29])) + (input[30] * weights[14][30])) + (input[31] * weights[14][31])) + (input[32] * weights[14][32])) + (input[33] * weights[14][33])) + (input[34] * weights[14][34])) + (input[35] * weights[14][35])) / 10000) + biases[14]) | |
73 | - | let weighted_sum16 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[15][0]) + (input[1] * weights[15][1])) + (input[2] * weights[15][2])) + (input[3] * weights[15][3])) + (input[4] * weights[15][4])) + (input[5] * weights[15][5])) + (input[6] * weights[15][6])) + (input[7] * weights[15][7])) + (input[8] * weights[15][8])) + (input[9] * weights[15][9])) + (input[10] * weights[15][10])) + (input[11] * weights[15][11])) + (input[12] * weights[15][12])) + (input[13] * weights[15][13])) + (input[14] * weights[15][14])) + (input[15] * weights[15][15])) + (input[16] * weights[15][16])) + (input[17] * weights[15][17])) + (input[18] * weights[15][18])) + (input[19] * weights[15][19])) + (input[20] * weights[15][20])) + (input[21] * weights[15][21])) + (input[22] * weights[15][22])) + (input[23] * weights[15][23])) + (input[24] * weights[15][24])) + (input[25] * weights[15][25])) + (input[26] * weights[15][26])) + (input[27] * weights[15][27])) + (input[28] * weights[15][28])) + (input[29] * weights[15][29])) + (input[30] * weights[15][30])) + (input[31] * weights[15][31])) + (input[32] * weights[15][32])) + (input[33] * weights[15][33])) + (input[34] * weights[15][34])) + (input[35] * weights[15][35])) / 10000) + biases[15]) | |
74 | - | let weighted_sum17 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[16][0]) + (input[1] * weights[16][1])) + (input[2] * weights[16][2])) + (input[3] * weights[16][3])) + (input[4] * weights[16][4])) + (input[5] * weights[16][5])) + (input[6] * weights[16][6])) + (input[7] * weights[16][7])) + (input[8] * weights[16][8])) + (input[9] * weights[16][9])) + (input[10] * weights[16][10])) + (input[11] * weights[16][11])) + (input[12] * weights[16][12])) + (input[13] * weights[16][13])) + (input[14] * weights[16][14])) + (input[15] * weights[16][15])) + (input[16] * weights[16][16])) + (input[17] * weights[16][17])) + (input[18] * weights[16][18])) + (input[19] * weights[16][19])) + (input[20] * weights[16][20])) + (input[21] * weights[16][21])) + (input[22] * weights[16][22])) + (input[23] * weights[16][23])) + (input[24] * weights[16][24])) + (input[25] * weights[16][25])) + (input[26] * weights[16][26])) + (input[27] * weights[16][27])) + (input[28] * weights[16][28])) + (input[29] * weights[16][29])) + (input[30] * weights[16][30])) + (input[31] * weights[16][31])) + (input[32] * weights[16][32])) + (input[33] * weights[16][33])) + (input[34] * weights[16][34])) + (input[35] * weights[16][35])) / 10000) + biases[16]) | |
75 | - | let weighted_sum18 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[17][0]) + (input[1] * weights[17][1])) + (input[2] * weights[17][2])) + (input[3] * weights[17][3])) + (input[4] * weights[17][4])) + (input[5] * weights[17][5])) + (input[6] * weights[17][6])) + (input[7] * weights[17][7])) + (input[8] * weights[17][8])) + (input[9] * weights[17][9])) + (input[10] * weights[17][10])) + (input[11] * weights[17][11])) + (input[12] * weights[17][12])) + (input[13] * weights[17][13])) + (input[14] * weights[17][14])) + (input[15] * weights[17][15])) + (input[16] * weights[17][16])) + (input[17] * weights[17][17])) + (input[18] * weights[17][18])) + (input[19] * weights[17][19])) + (input[20] * weights[17][20])) + (input[21] * weights[17][21])) + (input[22] * weights[17][22])) + (input[23] * weights[17][23])) + (input[24] * weights[17][24])) + (input[25] * weights[17][25])) + (input[26] * weights[17][26])) + (input[27] * weights[17][27])) + (input[28] * weights[17][28])) + (input[29] * weights[17][29])) + (input[30] * weights[17][30])) + (input[31] * weights[17][31])) + (input[32] * weights[17][32])) + (input[33] * weights[17][33])) + (input[34] * weights[17][34])) + (input[35] * weights[17][35])) / 10000) + biases[17]) | |
76 | - | let weighted_sum19 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[18][0]) + (input[1] * weights[18][1])) + (input[2] * weights[18][2])) + (input[3] * weights[18][3])) + (input[4] * weights[18][4])) + (input[5] * weights[18][5])) + (input[6] * weights[18][6])) + (input[7] * weights[18][7])) + (input[8] * weights[18][8])) + (input[9] * weights[18][9])) + (input[10] * weights[18][10])) + (input[11] * weights[18][11])) + (input[12] * weights[18][12])) + (input[13] * weights[18][13])) + (input[14] * weights[18][14])) + (input[15] * weights[18][15])) + (input[16] * weights[18][16])) + (input[17] * weights[18][17])) + (input[18] * weights[18][18])) + (input[19] * weights[18][19])) + (input[20] * weights[18][20])) + (input[21] * weights[18][21])) + (input[22] * weights[18][22])) + (input[23] * weights[18][23])) + (input[24] * weights[18][24])) + (input[25] * weights[18][25])) + (input[26] * weights[18][26])) + (input[27] * weights[18][27])) + (input[28] * weights[18][28])) + (input[29] * weights[18][29])) + (input[30] * weights[18][30])) + (input[31] * weights[18][31])) + (input[32] * weights[18][32])) + (input[33] * weights[18][33])) + (input[34] * weights[18][34])) + (input[35] * weights[18][35])) / 10000) + biases[18]) | |
77 | - | let weighted_sum20 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[19][0]) + (input[1] * weights[19][1])) + (input[2] * weights[19][2])) + (input[3] * weights[19][3])) + (input[4] * weights[19][4])) + (input[5] * weights[19][5])) + (input[6] * weights[19][6])) + (input[7] * weights[19][7])) + (input[8] * weights[19][8])) + (input[9] * weights[19][9])) + (input[10] * weights[19][10])) + (input[11] * weights[19][11])) + (input[12] * weights[19][12])) + (input[13] * weights[19][13])) + (input[14] * weights[19][14])) + (input[15] * weights[19][15])) + (input[16] * weights[19][16])) + (input[17] * weights[19][17])) + (input[18] * weights[19][18])) + (input[19] * weights[19][19])) + (input[20] * weights[19][20])) + (input[21] * weights[19][21])) + (input[22] * weights[19][22])) + (input[23] * weights[19][23])) + (input[24] * weights[19][24])) + (input[25] * weights[19][25])) + (input[26] * weights[19][26])) + (input[27] * weights[19][27])) + (input[28] * weights[19][28])) + (input[29] * weights[19][29])) + (input[30] * weights[19][30])) + (input[31] * weights[19][31])) + (input[32] * weights[19][32])) + (input[33] * weights[19][33])) + (input[34] * weights[19][34])) + (input[35] * weights[19][35])) / 10000) + biases[19]) | |
78 | - | let weighted_sum21 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[20][0]) + (input[1] * weights[20][1])) + (input[2] * weights[20][2])) + (input[3] * weights[20][3])) + (input[4] * weights[20][4])) + (input[5] * weights[20][5])) + (input[6] * weights[20][6])) + (input[7] * weights[20][7])) + (input[8] * weights[20][8])) + (input[9] * weights[20][9])) + (input[10] * weights[20][10])) + (input[11] * weights[20][11])) + (input[12] * weights[20][12])) + (input[13] * weights[20][13])) + (input[14] * weights[20][14])) + (input[15] * weights[20][15])) + (input[16] * weights[20][16])) + (input[17] * weights[20][17])) + (input[18] * weights[20][18])) + (input[19] * weights[20][19])) + (input[20] * weights[20][20])) + (input[21] * weights[20][21])) + (input[22] * weights[20][22])) + (input[23] * weights[20][23])) + (input[24] * weights[20][24])) + (input[25] * weights[20][25])) + (input[26] * weights[20][26])) + (input[27] * weights[20][27])) + (input[28] * weights[20][28])) + (input[29] * weights[20][29])) + (input[30] * weights[20][30])) + (input[31] * weights[20][31])) + (input[32] * weights[20][32])) + (input[33] * weights[20][33])) + (input[34] * weights[20][34])) + (input[35] * weights[20][35])) / 10000) + biases[20]) | |
79 | - | let weighted_sum22 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[21][0]) + (input[1] * weights[21][1])) + (input[2] * weights[21][2])) + (input[3] * weights[21][3])) + (input[4] * weights[21][4])) + (input[5] * weights[21][5])) + (input[6] * weights[21][6])) + (input[7] * weights[21][7])) + (input[8] * weights[21][8])) + (input[9] * weights[21][9])) + (input[10] * weights[21][10])) + (input[11] * weights[21][11])) + (input[12] * weights[21][12])) + (input[13] * weights[21][13])) + (input[14] * weights[21][14])) + (input[15] * weights[21][15])) + (input[16] * weights[21][16])) + (input[17] * weights[21][17])) + (input[18] * weights[21][18])) + (input[19] * weights[21][19])) + (input[20] * weights[21][20])) + (input[21] * weights[21][21])) + (input[22] * weights[21][22])) + (input[23] * weights[21][23])) + (input[24] * weights[21][24])) + (input[25] * weights[21][25])) + (input[26] * weights[21][26])) + (input[27] * weights[21][27])) + (input[28] * weights[21][28])) + (input[29] * weights[21][29])) + (input[30] * weights[21][30])) + (input[31] * weights[21][31])) + (input[32] * weights[21][32])) + (input[33] * weights[21][33])) + (input[34] * weights[21][34])) + (input[35] * weights[21][35])) / 10000) + biases[21]) | |
80 | - | let weighted_sum23 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[22][0]) + (input[1] * weights[22][1])) + (input[2] * weights[22][2])) + (input[3] * weights[22][3])) + (input[4] * weights[22][4])) + (input[5] * weights[22][5])) + (input[6] * weights[22][6])) + (input[7] * weights[22][7])) + (input[8] * weights[22][8])) + (input[9] * weights[22][9])) + (input[10] * weights[22][10])) + (input[11] * weights[22][11])) + (input[12] * weights[22][12])) + (input[13] * weights[22][13])) + (input[14] * weights[22][14])) + (input[15] * weights[22][15])) + (input[16] * weights[22][16])) + (input[17] * weights[22][17])) + (input[18] * weights[22][18])) + (input[19] * weights[22][19])) + (input[20] * weights[22][20])) + (input[21] * weights[22][21])) + (input[22] * weights[22][22])) + (input[23] * weights[22][23])) + (input[24] * weights[22][24])) + (input[25] * weights[22][25])) + (input[26] * weights[22][26])) + (input[27] * weights[22][27])) + (input[28] * weights[22][28])) + (input[29] * weights[22][29])) + (input[30] * weights[22][30])) + (input[31] * weights[22][31])) + (input[32] * weights[22][32])) + (input[33] * weights[22][33])) + (input[34] * weights[22][34])) + (input[35] * weights[22][35])) / 10000) + biases[22]) | |
81 | - | let weighted_sum24 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[23][0]) + (input[1] * weights[23][1])) + (input[2] * weights[23][2])) + (input[3] * weights[23][3])) + (input[4] * weights[23][4])) + (input[5] * weights[23][5])) + (input[6] * weights[23][6])) + (input[7] * weights[23][7])) + (input[8] * weights[23][8])) + (input[9] * weights[23][9])) + (input[10] * weights[23][10])) + (input[11] * weights[23][11])) + (input[12] * weights[23][12])) + (input[13] * weights[23][13])) + (input[14] * weights[23][14])) + (input[15] * weights[23][15])) + (input[16] * weights[23][16])) + (input[17] * weights[23][17])) + (input[18] * weights[23][18])) + (input[19] * weights[23][19])) + (input[20] * weights[23][20])) + (input[21] * weights[23][21])) + (input[22] * weights[23][22])) + (input[23] * weights[23][23])) + (input[24] * weights[23][24])) + (input[25] * weights[23][25])) + (input[26] * weights[23][26])) + (input[27] * weights[23][27])) + (input[28] * weights[23][28])) + (input[29] * weights[23][29])) + (input[30] * weights[23][30])) + (input[31] * weights[23][31])) + (input[32] * weights[23][32])) + (input[33] * weights[23][33])) + (input[34] * weights[23][34])) + (input[35] * weights[23][35])) / 10000) + biases[23]) | |
82 | - | let weighted_sum25 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[24][0]) + (input[1] * weights[24][1])) + (input[2] * weights[24][2])) + (input[3] * weights[24][3])) + (input[4] * weights[24][4])) + (input[5] * weights[24][5])) + (input[6] * weights[24][6])) + (input[7] * weights[24][7])) + (input[8] * weights[24][8])) + (input[9] * weights[24][9])) + (input[10] * weights[24][10])) + (input[11] * weights[24][11])) + (input[12] * weights[24][12])) + (input[13] * weights[24][13])) + (input[14] * weights[24][14])) + (input[15] * weights[24][15])) + (input[16] * weights[24][16])) + (input[17] * weights[24][17])) + (input[18] * weights[24][18])) + (input[19] * weights[24][19])) + (input[20] * weights[24][20])) + (input[21] * weights[24][21])) + (input[22] * weights[24][22])) + (input[23] * weights[24][23])) + (input[24] * weights[24][24])) + (input[25] * weights[24][25])) + (input[26] * weights[24][26])) + (input[27] * weights[24][27])) + (input[28] * weights[24][28])) + (input[29] * weights[24][29])) + (input[30] * weights[24][30])) + (input[31] * weights[24][31])) + (input[32] * weights[24][32])) + (input[33] * weights[24][33])) + (input[34] * weights[24][34])) + (input[35] * weights[24][35])) / 10000) + biases[24]) | |
83 | - | let weighted_sum26 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[25][0]) + (input[1] * weights[25][1])) + (input[2] * weights[25][2])) + (input[3] * weights[25][3])) + (input[4] * weights[25][4])) + (input[5] * weights[25][5])) + (input[6] * weights[25][6])) + (input[7] * weights[25][7])) + (input[8] * weights[25][8])) + (input[9] * weights[25][9])) + (input[10] * weights[25][10])) + (input[11] * weights[25][11])) + (input[12] * weights[25][12])) + (input[13] * weights[25][13])) + (input[14] * weights[25][14])) + (input[15] * weights[25][15])) + (input[16] * weights[25][16])) + (input[17] * weights[25][17])) + (input[18] * weights[25][18])) + (input[19] * weights[25][19])) + (input[20] * weights[25][20])) + (input[21] * weights[25][21])) + (input[22] * weights[25][22])) + (input[23] * weights[25][23])) + (input[24] * weights[25][24])) + (input[25] * weights[25][25])) + (input[26] * weights[25][26])) + (input[27] * weights[25][27])) + (input[28] * weights[25][28])) + (input[29] * weights[25][29])) + (input[30] * weights[25][30])) + (input[31] * weights[25][31])) + (input[32] * weights[25][32])) + (input[33] * weights[25][33])) + (input[34] * weights[25][34])) + (input[35] * weights[25][35])) / 10000) + biases[25]) | |
84 | - | let weighted_sum27 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[26][0]) + (input[1] * weights[26][1])) + (input[2] * weights[26][2])) + (input[3] * weights[26][3])) + (input[4] * weights[26][4])) + (input[5] * weights[26][5])) + (input[6] * weights[26][6])) + (input[7] * weights[26][7])) + (input[8] * weights[26][8])) + (input[9] * weights[26][9])) + (input[10] * weights[26][10])) + (input[11] * weights[26][11])) + (input[12] * weights[26][12])) + (input[13] * weights[26][13])) + (input[14] * weights[26][14])) + (input[15] * weights[26][15])) + (input[16] * weights[26][16])) + (input[17] * weights[26][17])) + (input[18] * weights[26][18])) + (input[19] * weights[26][19])) + (input[20] * weights[26][20])) + (input[21] * weights[26][21])) + (input[22] * weights[26][22])) + (input[23] * weights[26][23])) + (input[24] * weights[26][24])) + (input[25] * weights[26][25])) + (input[26] * weights[26][26])) + (input[27] * weights[26][27])) + (input[28] * weights[26][28])) + (input[29] * weights[26][29])) + (input[30] * weights[26][30])) + (input[31] * weights[26][31])) + (input[32] * weights[26][32])) + (input[33] * weights[26][33])) + (input[34] * weights[26][34])) + (input[35] * weights[26][35])) / 10000) + biases[26]) | |
85 | - | let weighted_sum28 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[27][0]) + (input[1] * weights[27][1])) + (input[2] * weights[27][2])) + (input[3] * weights[27][3])) + (input[4] * weights[27][4])) + (input[5] * weights[27][5])) + (input[6] * weights[27][6])) + (input[7] * weights[27][7])) + (input[8] * weights[27][8])) + (input[9] * weights[27][9])) + (input[10] * weights[27][10])) + (input[11] * weights[27][11])) + (input[12] * weights[27][12])) + (input[13] * weights[27][13])) + (input[14] * weights[27][14])) + (input[15] * weights[27][15])) + (input[16] * weights[27][16])) + (input[17] * weights[27][17])) + (input[18] * weights[27][18])) + (input[19] * weights[27][19])) + (input[20] * weights[27][20])) + (input[21] * weights[27][21])) + (input[22] * weights[27][22])) + (input[23] * weights[27][23])) + (input[24] * weights[27][24])) + (input[25] * weights[27][25])) + (input[26] * weights[27][26])) + (input[27] * weights[27][27])) + (input[28] * weights[27][28])) + (input[29] * weights[27][29])) + (input[30] * weights[27][30])) + (input[31] * weights[27][31])) + (input[32] * weights[27][32])) + (input[33] * weights[27][33])) + (input[34] * weights[27][34])) + (input[35] * weights[27][35])) / 10000) + biases[27]) | |
86 | - | let weighted_sum29 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[28][0]) + (input[1] * weights[28][1])) + (input[2] * weights[28][2])) + (input[3] * weights[28][3])) + (input[4] * weights[28][4])) + (input[5] * weights[28][5])) + (input[6] * weights[28][6])) + (input[7] * weights[28][7])) + (input[8] * weights[28][8])) + (input[9] * weights[28][9])) + (input[10] * weights[28][10])) + (input[11] * weights[28][11])) + (input[12] * weights[28][12])) + (input[13] * weights[28][13])) + (input[14] * weights[28][14])) + (input[15] * weights[28][15])) + (input[16] * weights[28][16])) + (input[17] * weights[28][17])) + (input[18] * weights[28][18])) + (input[19] * weights[28][19])) + (input[20] * weights[28][20])) + (input[21] * weights[28][21])) + (input[22] * weights[28][22])) + (input[23] * weights[28][23])) + (input[24] * weights[28][24])) + (input[25] * weights[28][25])) + (input[26] * weights[28][26])) + (input[27] * weights[28][27])) + (input[28] * weights[28][28])) + (input[29] * weights[28][29])) + (input[30] * weights[28][30])) + (input[31] * weights[28][31])) + (input[32] * weights[28][32])) + (input[33] * weights[28][33])) + (input[34] * weights[28][34])) + (input[35] * weights[28][35])) / 10000) + biases[28]) | |
87 | - | let weighted_sum30 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[29][0]) + (input[1] * weights[29][1])) + (input[2] * weights[29][2])) + (input[3] * weights[29][3])) + (input[4] * weights[29][4])) + (input[5] * weights[29][5])) + (input[6] * weights[29][6])) + (input[7] * weights[29][7])) + (input[8] * weights[29][8])) + (input[9] * weights[29][9])) + (input[10] * weights[29][10])) + (input[11] * weights[29][11])) + (input[12] * weights[29][12])) + (input[13] * weights[29][13])) + (input[14] * weights[29][14])) + (input[15] * weights[29][15])) + (input[16] * weights[29][16])) + (input[17] * weights[29][17])) + (input[18] * weights[29][18])) + (input[19] * weights[29][19])) + (input[20] * weights[29][20])) + (input[21] * weights[29][21])) + (input[22] * weights[29][22])) + (input[23] * weights[29][23])) + (input[24] * weights[29][24])) + (input[25] * weights[29][25])) + (input[26] * weights[29][26])) + (input[27] * weights[29][27])) + (input[28] * weights[29][28])) + (input[29] * weights[29][29])) + (input[30] * weights[29][30])) + (input[31] * weights[29][31])) + (input[32] * weights[29][32])) + (input[33] * weights[29][33])) + (input[34] * weights[29][34])) + (input[35] * weights[29][35])) / 10000) + biases[29]) | |
88 | - | let weighted_sum31 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[30][0]) + (input[1] * weights[30][1])) + (input[2] * weights[30][2])) + (input[3] * weights[30][3])) + (input[4] * weights[30][4])) + (input[5] * weights[30][5])) + (input[6] * weights[30][6])) + (input[7] * weights[30][7])) + (input[8] * weights[30][8])) + (input[9] * weights[30][9])) + (input[10] * weights[30][10])) + (input[11] * weights[30][11])) + (input[12] * weights[30][12])) + (input[13] * weights[30][13])) + (input[14] * weights[30][14])) + (input[15] * weights[30][15])) + (input[16] * weights[30][16])) + (input[17] * weights[30][17])) + (input[18] * weights[30][18])) + (input[19] * weights[30][19])) + (input[20] * weights[30][20])) + (input[21] * weights[30][21])) + (input[22] * weights[30][22])) + (input[23] * weights[30][23])) + (input[24] * weights[30][24])) + (input[25] * weights[30][25])) + (input[26] * weights[30][26])) + (input[27] * weights[30][27])) + (input[28] * weights[30][28])) + (input[29] * weights[30][29])) + (input[30] * weights[30][30])) + (input[31] * weights[30][31])) + (input[32] * weights[30][32])) + (input[33] * weights[30][33])) + (input[34] * weights[30][34])) + (input[35] * weights[30][35])) / 10000) + biases[30]) | |
89 | - | let weighted_sum32 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[31][0]) + (input[1] * weights[31][1])) + (input[2] * weights[31][2])) + (input[3] * weights[31][3])) + (input[4] * weights[31][4])) + (input[5] * weights[31][5])) + (input[6] * weights[31][6])) + (input[7] * weights[31][7])) + (input[8] * weights[31][8])) + (input[9] * weights[31][9])) + (input[10] * weights[31][10])) + (input[11] * weights[31][11])) + (input[12] * weights[31][12])) + (input[13] * weights[31][13])) + (input[14] * weights[31][14])) + (input[15] * weights[31][15])) + (input[16] * weights[31][16])) + (input[17] * weights[31][17])) + (input[18] * weights[31][18])) + (input[19] * weights[31][19])) + (input[20] * weights[31][20])) + (input[21] * weights[31][21])) + (input[22] * weights[31][22])) + (input[23] * weights[31][23])) + (input[24] * weights[31][24])) + (input[25] * weights[31][25])) + (input[26] * weights[31][26])) + (input[27] * weights[31][27])) + (input[28] * weights[31][28])) + (input[29] * weights[31][29])) + (input[30] * weights[31][30])) + (input[31] * weights[31][31])) + (input[32] * weights[31][32])) + (input[33] * weights[31][33])) + (input[34] * weights[31][34])) + (input[35] * weights[31][35])) / 10000) + biases[31]) | |
90 | - | let weighted_sum33 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[32][0]) + (input[1] * weights[32][1])) + (input[2] * weights[32][2])) + (input[3] * weights[32][3])) + (input[4] * weights[32][4])) + (input[5] * weights[32][5])) + (input[6] * weights[32][6])) + (input[7] * weights[32][7])) + (input[8] * weights[32][8])) + (input[9] * weights[32][9])) + (input[10] * weights[32][10])) + (input[11] * weights[32][11])) + (input[12] * weights[32][12])) + (input[13] * weights[32][13])) + (input[14] * weights[32][14])) + (input[15] * weights[32][15])) + (input[16] * weights[32][16])) + (input[17] * weights[32][17])) + (input[18] * weights[32][18])) + (input[19] * weights[32][19])) + (input[20] * weights[32][20])) + (input[21] * weights[32][21])) + (input[22] * weights[32][22])) + (input[23] * weights[32][23])) + (input[24] * weights[32][24])) + (input[25] * weights[32][25])) + (input[26] * weights[32][26])) + (input[27] * weights[32][27])) + (input[28] * weights[32][28])) + (input[29] * weights[32][29])) + (input[30] * weights[32][30])) + (input[31] * weights[32][31])) + (input[32] * weights[32][32])) + (input[33] * weights[32][33])) + (input[34] * weights[32][34])) + (input[35] * weights[32][35])) / 10000) + biases[32]) | |
91 | - | let weighted_sum34 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[33][0]) + (input[1] * weights[33][1])) + (input[2] * weights[33][2])) + (input[3] * weights[33][3])) + (input[4] * weights[33][4])) + (input[5] * weights[33][5])) + (input[6] * weights[33][6])) + (input[7] * weights[33][7])) + (input[8] * weights[33][8])) + (input[9] * weights[33][9])) + (input[10] * weights[33][10])) + (input[11] * weights[33][11])) + (input[12] * weights[33][12])) + (input[13] * weights[33][13])) + (input[14] * weights[33][14])) + (input[15] * weights[33][15])) + (input[16] * weights[33][16])) + (input[17] * weights[33][17])) + (input[18] * weights[33][18])) + (input[19] * weights[33][19])) + (input[20] * weights[33][20])) + (input[21] * weights[33][21])) + (input[22] * weights[33][22])) + (input[23] * weights[33][23])) + (input[24] * weights[33][24])) + (input[25] * weights[33][25])) + (input[26] * weights[33][26])) + (input[27] * weights[33][27])) + (input[28] * weights[33][28])) + (input[29] * weights[33][29])) + (input[30] * weights[33][30])) + (input[31] * weights[33][31])) + (input[32] * weights[33][32])) + (input[33] * weights[33][33])) + (input[34] * weights[33][34])) + (input[35] * weights[33][35])) / 10000) + biases[33]) | |
92 | - | let weighted_sum35 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[34][0]) + (input[1] * weights[34][1])) + (input[2] * weights[34][2])) + (input[3] * weights[34][3])) + (input[4] * weights[34][4])) + (input[5] * weights[34][5])) + (input[6] * weights[34][6])) + (input[7] * weights[34][7])) + (input[8] * weights[34][8])) + (input[9] * weights[34][9])) + (input[10] * weights[34][10])) + (input[11] * weights[34][11])) + (input[12] * weights[34][12])) + (input[13] * weights[34][13])) + (input[14] * weights[34][14])) + (input[15] * weights[34][15])) + (input[16] * weights[34][16])) + (input[17] * weights[34][17])) + (input[18] * weights[34][18])) + (input[19] * weights[34][19])) + (input[20] * weights[34][20])) + (input[21] * weights[34][21])) + (input[22] * weights[34][22])) + (input[23] * weights[34][23])) + (input[24] * weights[34][24])) + (input[25] * weights[34][25])) + (input[26] * weights[34][26])) + (input[27] * weights[34][27])) + (input[28] * weights[34][28])) + (input[29] * weights[34][29])) + (input[30] * weights[34][30])) + (input[31] * weights[34][31])) + (input[32] * weights[34][32])) + (input[33] * weights[34][33])) + (input[34] * weights[34][34])) + (input[35] * weights[34][35])) / 10000) + biases[34]) | |
93 | - | let weighted_sum36 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[35][0]) + (input[1] * weights[35][1])) + (input[2] * weights[35][2])) + (input[3] * weights[35][3])) + (input[4] * weights[35][4])) + (input[5] * weights[35][5])) + (input[6] * weights[35][6])) + (input[7] * weights[35][7])) + (input[8] * weights[35][8])) + (input[9] * weights[35][9])) + (input[10] * weights[35][10])) + (input[11] * weights[35][11])) + (input[12] * weights[35][12])) + (input[13] * weights[35][13])) + (input[14] * weights[35][14])) + (input[15] * weights[35][15])) + (input[16] * weights[35][16])) + (input[17] * weights[35][17])) + (input[18] * weights[35][18])) + (input[19] * weights[35][19])) + (input[20] * weights[35][20])) + (input[21] * weights[35][21])) + (input[22] * weights[35][22])) + (input[23] * weights[35][23])) + (input[24] * weights[35][24])) + (input[25] * weights[35][25])) + (input[26] * weights[35][26])) + (input[27] * weights[35][27])) + (input[28] * weights[35][28])) + (input[29] * weights[35][29])) + (input[30] * weights[35][30])) + (input[31] * weights[35][31])) + (input[32] * weights[35][32])) + (input[33] * weights[35][33])) + (input[34] * weights[35][34])) + (input[35] * weights[35][35])) / 10000) + biases[35]) | |
94 | - | [weighted_sum1, weighted_sum2, weighted_sum3, weighted_sum4, weighted_sum5, weighted_sum6, weighted_sum7, weighted_sum8, weighted_sum9, weighted_sum10, weighted_sum11, weighted_sum12, weighted_sum13, weighted_sum14, weighted_sum15, weighted_sum16, weighted_sum17, weighted_sum18, weighted_sum19, weighted_sum20, weighted_sum21, weighted_sum22, weighted_sum23, weighted_sum24, weighted_sum25, weighted_sum26, weighted_sum27, weighted_sum28, weighted_sum29, weighted_sum30, weighted_sum31, weighted_sum32, weighted_sum33, weighted_sum34, weighted_sum35, weighted_sum36] | |
26 | + | let weighted_sum1 = ((((((input[0] * weights[0][0]) + (input[1] * weights[0][1])) + (input[2] * weights[0][2])) + (input[3] * weights[0][3])) / 10000) + biases[0]) | |
27 | + | let weighted_sum2 = ((((((input[0] * weights[1][0]) + (input[1] * weights[1][1])) + (input[2] * weights[1][2])) + (input[3] * weights[1][3])) / 10000) + biases[1]) | |
28 | + | [weighted_sum1, weighted_sum2] | |
95 | 29 | } | |
96 | 30 | ||
97 | 31 | ||
98 | 32 | func linear_forward_3 (input,weights,biases) = { | |
99 | - | let weighted_sum1 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[0][0]) + (input[1] * weights[0][1])) + (input[2] * weights[0][2])) + (input[3] * weights[0][3])) + (input[4] * weights[0][4])) + (input[5] * weights[0][5])) + (input[6] * weights[0][6])) + (input[7] * weights[0][7])) + (input[8] * weights[0][8])) + (input[9] * weights[0][9])) + (input[10] * weights[0][10])) + (input[11] * weights[0][11])) + (input[12] * weights[0][12])) + (input[13] * weights[0][13])) + (input[14] * weights[0][14])) + (input[15] * weights[0][15])) + (input[16] * weights[0][16])) + (input[17] * weights[0][17])) + (input[18] * weights[0][18])) + (input[19] * weights[0][19])) + (input[20] * weights[0][20])) + (input[21] * weights[0][21])) + (input[22] * weights[0][22])) + (input[23] * weights[0][23])) + (input[24] * weights[0][24])) + (input[25] * weights[0][25])) + (input[26] * weights[0][26])) + (input[27] * weights[0][27])) + (input[28] * weights[0][28])) + (input[29] * weights[0][29])) + (input[30] * weights[0][30])) + (input[31] * weights[0][31])) + (input[32] * weights[0][32])) + (input[33] * weights[0][33])) + (input[34] * weights[0][34])) + (input[35] * weights[0][35])) / 10000) + biases[0]) | |
100 | - | let weighted_sum2 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[1][0]) + (input[1] * weights[1][1])) + (input[2] * weights[1][2])) + (input[3] * weights[1][3])) + (input[4] * weights[1][4])) + (input[5] * weights[1][5])) + (input[6] * weights[1][6])) + (input[7] * weights[1][7])) + (input[8] * weights[1][8])) + (input[9] * weights[1][9])) + (input[10] * weights[1][10])) + (input[11] * weights[1][11])) + (input[12] * weights[1][12])) + (input[13] * weights[1][13])) + (input[14] * weights[1][14])) + (input[15] * weights[1][15])) + (input[16] * weights[1][16])) + (input[17] * weights[1][17])) + (input[18] * weights[1][18])) + (input[19] * weights[1][19])) + (input[20] * weights[1][20])) + (input[21] * weights[1][21])) + (input[22] * weights[1][22])) + (input[23] * weights[1][23])) + (input[24] * weights[1][24])) + (input[25] * weights[1][25])) + (input[26] * weights[1][26])) + (input[27] * weights[1][27])) + (input[28] * weights[1][28])) + (input[29] * weights[1][29])) + (input[30] * weights[1][30])) + (input[31] * weights[1][31])) + (input[32] * weights[1][32])) + (input[33] * weights[1][33])) + (input[34] * weights[1][34])) + (input[35] * weights[1][35])) / 10000) + biases[1]) | |
101 | - | let weighted_sum3 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[2][0]) + (input[1] * weights[2][1])) + (input[2] * weights[2][2])) + (input[3] * weights[2][3])) + (input[4] * weights[2][4])) + (input[5] * weights[2][5])) + (input[6] * weights[2][6])) + (input[7] * weights[2][7])) + (input[8] * weights[2][8])) + (input[9] * weights[2][9])) + (input[10] * weights[2][10])) + (input[11] * weights[2][11])) + (input[12] * weights[2][12])) + (input[13] * weights[2][13])) + (input[14] * weights[2][14])) + (input[15] * weights[2][15])) + (input[16] * weights[2][16])) + (input[17] * weights[2][17])) + (input[18] * weights[2][18])) + (input[19] * weights[2][19])) + (input[20] * weights[2][20])) + (input[21] * weights[2][21])) + (input[22] * weights[2][22])) + (input[23] * weights[2][23])) + (input[24] * weights[2][24])) + (input[25] * weights[2][25])) + (input[26] * weights[2][26])) + (input[27] * weights[2][27])) + (input[28] * weights[2][28])) + (input[29] * weights[2][29])) + (input[30] * weights[2][30])) + (input[31] * weights[2][31])) + (input[32] * weights[2][32])) + (input[33] * weights[2][33])) + (input[34] * weights[2][34])) + (input[35] * weights[2][35])) / 10000) + biases[2]) | |
102 | - | let weighted_sum4 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[3][0]) + (input[1] * weights[3][1])) + (input[2] * weights[3][2])) + (input[3] * weights[3][3])) + (input[4] * weights[3][4])) + (input[5] * weights[3][5])) + (input[6] * weights[3][6])) + (input[7] * weights[3][7])) + (input[8] * weights[3][8])) + (input[9] * weights[3][9])) + (input[10] * weights[3][10])) + (input[11] * weights[3][11])) + (input[12] * weights[3][12])) + (input[13] * weights[3][13])) + (input[14] * weights[3][14])) + (input[15] * weights[3][15])) + (input[16] * weights[3][16])) + (input[17] * weights[3][17])) + (input[18] * weights[3][18])) + (input[19] * weights[3][19])) + (input[20] * weights[3][20])) + (input[21] * weights[3][21])) + (input[22] * weights[3][22])) + (input[23] * weights[3][23])) + (input[24] * weights[3][24])) + (input[25] * weights[3][25])) + (input[26] * weights[3][26])) + (input[27] * weights[3][27])) + (input[28] * weights[3][28])) + (input[29] * weights[3][29])) + (input[30] * weights[3][30])) + (input[31] * weights[3][31])) + (input[32] * weights[3][32])) + (input[33] * weights[3][33])) + (input[34] * weights[3][34])) + (input[35] * weights[3][35])) / 10000) + biases[3]) | |
103 | - | let weighted_sum5 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[4][0]) + (input[1] * weights[4][1])) + (input[2] * weights[4][2])) + (input[3] * weights[4][3])) + (input[4] * weights[4][4])) + (input[5] * weights[4][5])) + (input[6] * weights[4][6])) + (input[7] * weights[4][7])) + (input[8] * weights[4][8])) + (input[9] * weights[4][9])) + (input[10] * weights[4][10])) + (input[11] * weights[4][11])) + (input[12] * weights[4][12])) + (input[13] * weights[4][13])) + (input[14] * weights[4][14])) + (input[15] * weights[4][15])) + (input[16] * weights[4][16])) + (input[17] * weights[4][17])) + (input[18] * weights[4][18])) + (input[19] * weights[4][19])) + (input[20] * weights[4][20])) + (input[21] * weights[4][21])) + (input[22] * weights[4][22])) + (input[23] * weights[4][23])) + (input[24] * weights[4][24])) + (input[25] * weights[4][25])) + (input[26] * weights[4][26])) + (input[27] * weights[4][27])) + (input[28] * weights[4][28])) + (input[29] * weights[4][29])) + (input[30] * weights[4][30])) + (input[31] * weights[4][31])) + (input[32] * weights[4][32])) + (input[33] * weights[4][33])) + (input[34] * weights[4][34])) + (input[35] * weights[4][35])) / 10000) + biases[4]) | |
104 | - | let weighted_sum6 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[5][0]) + (input[1] * weights[5][1])) + (input[2] * weights[5][2])) + (input[3] * weights[5][3])) + (input[4] * weights[5][4])) + (input[5] * weights[5][5])) + (input[6] * weights[5][6])) + (input[7] * weights[5][7])) + (input[8] * weights[5][8])) + (input[9] * weights[5][9])) + (input[10] * weights[5][10])) + (input[11] * weights[5][11])) + (input[12] * weights[5][12])) + (input[13] * weights[5][13])) + (input[14] * weights[5][14])) + (input[15] * weights[5][15])) + (input[16] * weights[5][16])) + (input[17] * weights[5][17])) + (input[18] * weights[5][18])) + (input[19] * weights[5][19])) + (input[20] * weights[5][20])) + (input[21] * weights[5][21])) + (input[22] * weights[5][22])) + (input[23] * weights[5][23])) + (input[24] * weights[5][24])) + (input[25] * weights[5][25])) + (input[26] * weights[5][26])) + (input[27] * weights[5][27])) + (input[28] * weights[5][28])) + (input[29] * weights[5][29])) + (input[30] * weights[5][30])) + (input[31] * weights[5][31])) + (input[32] * weights[5][32])) + (input[33] * weights[5][33])) + (input[34] * weights[5][34])) + (input[35] * weights[5][35])) / 10000) + biases[5]) | |
105 | - | let weighted_sum7 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[6][0]) + (input[1] * weights[6][1])) + (input[2] * weights[6][2])) + (input[3] * weights[6][3])) + (input[4] * weights[6][4])) + (input[5] * weights[6][5])) + (input[6] * weights[6][6])) + (input[7] * weights[6][7])) + (input[8] * weights[6][8])) + (input[9] * weights[6][9])) + (input[10] * weights[6][10])) + (input[11] * weights[6][11])) + (input[12] * weights[6][12])) + (input[13] * weights[6][13])) + (input[14] * weights[6][14])) + (input[15] * weights[6][15])) + (input[16] * weights[6][16])) + (input[17] * weights[6][17])) + (input[18] * weights[6][18])) + (input[19] * weights[6][19])) + (input[20] * weights[6][20])) + (input[21] * weights[6][21])) + (input[22] * weights[6][22])) + (input[23] * weights[6][23])) + (input[24] * weights[6][24])) + (input[25] * weights[6][25])) + (input[26] * weights[6][26])) + (input[27] * weights[6][27])) + (input[28] * weights[6][28])) + (input[29] * weights[6][29])) + (input[30] * weights[6][30])) + (input[31] * weights[6][31])) + (input[32] * weights[6][32])) + (input[33] * weights[6][33])) + (input[34] * weights[6][34])) + (input[35] * weights[6][35])) / 10000) + biases[6]) | |
106 | - | let weighted_sum8 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[7][0]) + (input[1] * weights[7][1])) + (input[2] * weights[7][2])) + (input[3] * weights[7][3])) + (input[4] * weights[7][4])) + (input[5] * weights[7][5])) + (input[6] * weights[7][6])) + (input[7] * weights[7][7])) + (input[8] * weights[7][8])) + (input[9] * weights[7][9])) + (input[10] * weights[7][10])) + (input[11] * weights[7][11])) + (input[12] * weights[7][12])) + (input[13] * weights[7][13])) + (input[14] * weights[7][14])) + (input[15] * weights[7][15])) + (input[16] * weights[7][16])) + (input[17] * weights[7][17])) + (input[18] * weights[7][18])) + (input[19] * weights[7][19])) + (input[20] * weights[7][20])) + (input[21] * weights[7][21])) + (input[22] * weights[7][22])) + (input[23] * weights[7][23])) + (input[24] * weights[7][24])) + (input[25] * weights[7][25])) + (input[26] * weights[7][26])) + (input[27] * weights[7][27])) + (input[28] * weights[7][28])) + (input[29] * weights[7][29])) + (input[30] * weights[7][30])) + (input[31] * weights[7][31])) + (input[32] * weights[7][32])) + (input[33] * weights[7][33])) + (input[34] * weights[7][34])) + (input[35] * weights[7][35])) / 10000) + biases[7]) | |
107 | - | let weighted_sum9 = ((((((((((((((((((((((((((((((((((((((input[0] * weights[8][0]) + (input[1] * weights[8][1])) + (input[2] * weights[8][2])) + (input[3] * weights[8][3])) + (input[4] * weights[8][4])) + (input[5] * weights[8][5])) + (input[6] * weights[8][6])) + (input[7] * weights[8][7])) + (input[8] * weights[8][8])) + (input[9] * weights[8][9])) + (input[10] * weights[8][10])) + (input[11] * weights[8][11])) + (input[12] * weights[8][12])) + (input[13] * weights[8][13])) + (input[14] * weights[8][14])) + (input[15] * weights[8][15])) + (input[16] * weights[8][16])) + (input[17] * weights[8][17])) + (input[18] * weights[8][18])) + (input[19] * weights[8][19])) + (input[20] * weights[8][20])) + (input[21] * weights[8][21])) + (input[22] * weights[8][22])) + (input[23] * weights[8][23])) + (input[24] * weights[8][24])) + (input[25] * weights[8][25])) + (input[26] * weights[8][26])) + (input[27] * weights[8][27])) + (input[28] * weights[8][28])) + (input[29] * weights[8][29])) + (input[30] * weights[8][30])) + (input[31] * weights[8][31])) + (input[32] * weights[8][32])) + (input[33] * weights[8][33])) + (input[34] * weights[8][34])) + (input[35] * weights[8][35])) / 10000) + biases[8]) | |
108 | - | [weighted_sum1, weighted_sum2, weighted_sum3, weighted_sum4, weighted_sum5, weighted_sum6, weighted_sum7, weighted_sum8, weighted_sum9] | |
33 | + | let weighted_sum1 = ((((input[0] * weights[0][0]) + (input[1] * weights[0][1])) / 10000) + biases[0]) | |
34 | + | [weighted_sum1] | |
109 | 35 | } | |
110 | 36 | ||
111 | 37 | ||
112 | 38 | func sigmoid (input) = if ((-10000 > input)) | |
113 | 39 | then 0 | |
114 | 40 | else if ((input > 10000)) | |
115 | 41 | then 10000 | |
116 | 42 | else (5000 + (input / 2)) | |
117 | 43 | ||
118 | 44 | ||
119 | - | func sigmoid_activation (inputs,num_outputs) = [sigmoid(inputs[0]), sigmoid(inputs[1]), sigmoid(inputs[2]), sigmoid(inputs[3]) | |
45 | + | func sigmoid_activation (inputs,num_outputs) = [sigmoid(inputs[0]), sigmoid(inputs[1]), sigmoid(inputs[2]), sigmoid(inputs[3])] | |
120 | 46 | ||
121 | 47 | ||
122 | 48 | @Callable(i) | |
123 | - | func predict (x1,x2 | |
49 | + | func predict (x1,x2) = { | |
124 | 50 | let x1_scaled = (x1 * 10000) | |
125 | 51 | let x2_scaled = (x2 * 10000) | |
126 | - | let x3_scaled = (x3 * 10000) | |
127 | - | let x4_scaled = (x4 * 10000) | |
128 | - | let x5_scaled = (x5 * 10000) | |
129 | - | let x6_scaled = (x6 * 10000) | |
130 | - | let x7_scaled = (x7 * 10000) | |
131 | - | let x8_scaled = (x8 * 10000) | |
132 | - | let x9_scaled = (x9 * 10000) | |
133 | - | let inputs = [x1_scaled, x2_scaled, x3_scaled, x4_scaled, x5_scaled, x6_scaled, x7_scaled, x8_scaled, x9_scaled] | |
52 | + | let inputs = [x1_scaled, x2_scaled] | |
134 | 53 | let z1 = linear_forward_1(inputs, weights_layer_1, biases_layer_1) | |
135 | - | let a1 = sigmoid_activation(z1, | |
54 | + | let a1 = sigmoid_activation(z1, 4) | |
136 | 55 | let z2 = linear_forward_2(a1, weights_layer_2, biases_layer_2) | |
137 | - | let a2 = sigmoid_activation(z2, | |
56 | + | let a2 = sigmoid_activation(z2, 2) | |
138 | 57 | let z3 = linear_forward_3(a2, weights_layer_3, biases_layer_3) | |
139 | 58 | let a3 = sigmoid(z3[0]) | |
140 | 59 | let result = (a3 / 10000) | |
141 | - | let debug_outputs = [IntegerEntry("debug_z1_1", z1[0]), IntegerEntry("debug_a1_1", a1[0]), IntegerEntry("debug_z1_2", z1[1]), IntegerEntry("debug_a1_2", a1[1]), IntegerEntry("debug_z1_3", z1[2]), IntegerEntry("debug_a1_3", a1[2]), IntegerEntry("debug_z1_4", z1[3]), IntegerEntry("debug_a1_4", a1[3]), IntegerEntry("debug_ | |
60 | + | let debug_outputs = [IntegerEntry("debug_z1_1", z1[0]), IntegerEntry("debug_a1_1", a1[0]), IntegerEntry("debug_z1_2", z1[1]), IntegerEntry("debug_a1_2", a1[1]), IntegerEntry("debug_z1_3", z1[2]), IntegerEntry("debug_a1_3", a1[2]), IntegerEntry("debug_z1_4", z1[3]), IntegerEntry("debug_a1_4", a1[3]), IntegerEntry("debug_z2_1", z2[0]), IntegerEntry("debug_a2_1", a2[0]), IntegerEntry("debug_z2_2", z2[1]), IntegerEntry("debug_a2_2", a2[1]), IntegerEntry("debug_z3_1", z3[0]), IntegerEntry("debug_a3", a3), IntegerEntry("debug_result", result)] | |
142 | 61 | $Tuple2(debug_outputs, result) | |
143 | 62 | } | |
144 | 63 | ||
145 | 64 |
github/deemru/w8io/169f3d6 250.75 ms ◑