tx · C3g1BvwA7tVar5cyBNFrmnosWH6rA7YinsgTMkTqsy1h

3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY:  -0.01000000 Waves

2024.06.09 00:56 [3142324] smart account 3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY > SELF 0.00000000 Waves

{ "type": 13, "id": "C3g1BvwA7tVar5cyBNFrmnosWH6rA7YinsgTMkTqsy1h", "fee": 1000000, "feeAssetId": null, "timestamp": 1717883759297, "version": 2, "chainId": 84, "sender": "3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY", "senderPublicKey": "2AWdnJuBMzufXSjTvzVcawBQQhnhF1iXR6QNVgwn33oc", "proofs": [ "4ndFbGBGvjP35Yue1AA12TPetFNx2cesWsaDmXM9gVdf6UW1ChEfoLNJfScTrrsgfpLoctqdaR5G9YaUKjPwr3JZ" ], "script": "base64:BwIHCAISAwoBEQgAD3dlaWdodHNfbGF5ZXJfMQkAzAgCCQDMCAIAkdUDCQDMCAIAqdUDBQNuaWwJAMwIAgkAzAgCAMvDAgkAzAgCANHDAgUDbmlsBQNuaWwADmJpYXNlc19sYXllcl8xCQDMCAIAz7X+////////AQkAzAgCALWP/P///////wEFA25pbAAPd2VpZ2h0c19sYXllcl8yCQDMCAIJAMwIAgDgigUJAMwIAgCOw/r///////8BBQNuaWwFA25pbAAOYmlhc2VzX2xheWVyXzIJAMwIAgCb1v3///////8BBQNuaWwBEGxpbmVhcl9mb3J3YXJkXzEDBWlucHV0B3dlaWdodHMGYmlhc2VzBA13ZWlnaHRlZF9zdW0xCQBkAgkAaQIJAGQCCQBoAgkAkQMCBQVpbnB1dAAACQCRAwIJAJEDAgUHd2VpZ2h0cwAAAAAJAGgCCQCRAwIFBWlucHV0AAEJAJEDAgkAkQMCBQd3ZWlnaHRzAAAAAQCQTgkAkQMCBQZiaWFzZXMAAAQNd2VpZ2h0ZWRfc3VtMgkAZAIJAGkCCQBkAgkAaAIJAJEDAgUFaW5wdXQAAAkAkQ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QZpbnB1dHMAAAUDbmlsCQDMCAIJAQdzaWdtb2lkAQkAkQMCBQZpbnB1dHMAAAkAzAgCCQEHc2lnbW9pZAEJAJEDAgUGaW5wdXRzAAEFA25pbAEBaQEHcHJlZGljdAEGaW5wdXRzBA1pbnB1dHNfc2NhbGVkCQDMCAIJAGgCCQCRAwIFBmlucHV0cwAAAJBOCQDMCAIJAGgCCQCRAwIFBmlucHV0cwABAJBOBQNuaWwEAnoxCQEQbGluZWFyX2ZvcndhcmRfMQMFDWlucHV0c19zY2FsZWQFD3dlaWdodHNfbGF5ZXJfMQUOYmlhc2VzX2xheWVyXzEEAmExCQESc2lnbW9pZF9hY3RpdmF0aW9uAgUCejEAAgQCejIJARBsaW5lYXJfZm9yd2FyZF8yAwUCYTEFD3dlaWdodHNfbGF5ZXJfMgUOYmlhc2VzX2xheWVyXzIEAmEyCQESc2lnbW9pZF9hY3RpdmF0aW9uAgUCejIAAQQHcmVzdWx0MAkAkQMCBQJhMgAABA1kZWJ1Z19vdXRwdXRzBQNuaWwJAM4IAgkAzAgCCQEMSW50ZWdlckVudHJ5AgIRbW92ZV9wcmVkaWN0aW9uXzAFB3Jlc3VsdDAFA25pbAUNZGVidWdfb3V0cHV0cwBdgrpY", "height": 3142324, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Hv9h4RHHWAKLP6LMA99tehzrvZXUkvLkodFdaMPd9nDH Next: FQ7yYNetGXubEVV5mVeXw3F2hzsAcB5gEpjEpQivt41C Full:
OldNewDifferences
11 {-# STDLIB_VERSION 7 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let weights_layer_1 = [[60049, 60073], [41419, 41425]]
55
66 let biases_layer_1 = [-25905, -63563]
77
88 let weights_layer_2 = [[83296, -89714]]
99
1010 let biases_layer_2 = [-38117]
1111
1212 func linear_forward_1 (input,weights,biases) = {
1313 let weighted_sum1 = ((((input[0] * weights[0][0]) + (input[1] * weights[0][1])) / 10000) + biases[0])
1414 let weighted_sum2 = ((((input[0] * weights[1][0]) + (input[1] * weights[1][1])) / 10000) + biases[1])
1515 [weighted_sum1, weighted_sum2]
1616 }
1717
1818
1919 func linear_forward_2 (input,weights,biases) = {
2020 let weighted_sum1 = ((((input[0] * weights[0][0]) + (input[1] * weights[0][1])) / 10000) + biases[0])
2121 [weighted_sum1]
2222 }
2323
2424
2525 func sigmoid (input) = if ((-80000 > input))
2626 then 0
2727 else if ((-60000 > input))
2828 then fraction((input + 80000), 125, 10000)
2929 else if ((-40000 > input))
3030 then fraction((input + 60000), 100, 10000)
3131 else if ((-20000 > input))
3232 then fraction((input + 40000), 75, 10000)
3333 else if ((0 > input))
3434 then fraction((input + 20000), 50, 10000)
3535 else if ((20000 > input))
3636 then (fraction(input, 50, 10000) + 5000)
3737 else if ((40000 > input))
3838 then (fraction((input - 20000), 75, 10000) + 7500)
3939 else if ((60000 > input))
4040 then (fraction((input - 40000), 100, 10000) + 8750)
4141 else if ((80000 > input))
4242 then (fraction((input - 60000), 125, 10000) + 9375)
4343 else 10000
4444
4545
4646 func sigmoid_activation (inputs,num_outputs) = if ((num_outputs == 1))
4747 then [sigmoid(inputs[0])]
4848 else [sigmoid(inputs[0]), sigmoid(inputs[1])]
4949
5050
5151 @Callable(i)
5252 func predict (inputs) = {
5353 let inputs_scaled = [(inputs[0] * 10000), (inputs[1] * 10000)]
5454 let z1 = linear_forward_1(inputs_scaled, weights_layer_1, biases_layer_1)
5555 let a1 = sigmoid_activation(z1, 2)
5656 let z2 = linear_forward_2(a1, weights_layer_2, biases_layer_2)
5757 let a2 = sigmoid_activation(z2, 1)
5858 let result0 = a2[0]
5959 let debug_outputs = nil
6060 ([IntegerEntry("move_prediction_0", result0)] ++ debug_outputs)
6161 }
6262
6363

github/deemru/w8io/026f985 
28.69 ms