tx · EagziTUuatBGN4yrywpoprrknF46urgJ1q46iavxr1Ng 3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY: -0.01000000 Waves 2024.04.28 12:50 [3082549] smart account 3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY > SELF 0.00000000 Waves
{ "type": 13, "id": "EagziTUuatBGN4yrywpoprrknF46urgJ1q46iavxr1Ng", "fee": 1000000, "feeAssetId": null, "timestamp": 1714297898147, "version": 2, "chainId": 84, "sender": "3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY", "senderPublicKey": "2AWdnJuBMzufXSjTvzVcawBQQhnhF1iXR6QNVgwn33oc", "proofs": [ "4ngVfQtVHW4o297Y1CdpAiN4Qn2mKg7VyeMFMUbGn3vTyvETqx8twFZh162EB6Kiv2KK6QD6hHt1vEzQLipYJ1bP" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIBAQAAAAgAAAAADWxheWVyMVdlaWdodHMJAARMAAAAAgkABEwAAAACAAAAAAAACSmxCQAETAAAAAIAAAAAAAAJKpwFAAAAA25pbAkABEwAAAACCQAETAAAAAIAAAAAAAAGUfUJAARMAAAAAgAAAAAAAAZSLQUAAAADbmlsBQAAAANuaWwAAAAADGxheWVyMUJpYXNlcwkABEwAAAACAP///////AwVCQAETAAAAAIA///////2TQsFAAAAA25pbAAAAAANbGF5ZXIyV2VpZ2h0cwkABEwAAAACCQAETAAAAAIAAAAAAAAMtcUJAARMAAAAAgD///////JPigUAAAADbmlsBQAAAANuaWwAAAAADGxheWVyMkJpYXNlcwkABEwAAAACAP//////+i8GBQAAAANuaWwBAAAACmV4cF9hcHByb3gAAAABAAAAAXgEAAAABXNjYWxlAAAAAAAAAYagAwkAAGYAAAACCQAAaAAAAAIA//////////oFAAAABXNjYWxlBQAAAAF4AAAAAAAAAAABAwkAAGYAAAACBQAAAAF4CQAAaAAAAAIAAAAAAAAAAAYFAAAABXNjYWxlAAAAAAAAAYafBAAAAAxjb2VmZmljaWVudHM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uaWwFAAAAC2RlYnVnTGF5ZXIxBQAAAAtkZWJ1Z0xheWVyMgAAAADY8rlu", "height": 3082549, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6V35pBudomPg2sNkERM1SV5yreXyCvfUjZxcnWEAwv9b Next: 2b25PWcsfJJqtzYdx5PHEx5557PpxguKVWbbsMW8ffgA Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = [[600497, | |
4 | + | let a = [[600497, 600732], [414197, 414253]] | |
5 | 5 | ||
6 | - | let b = [- | |
6 | + | let b = [-259051, -635637] | |
7 | 7 | ||
8 | - | let c = [[ | |
8 | + | let c = [[832965, -897142]] | |
9 | 9 | ||
10 | - | let d = [- | |
10 | + | let d = [-381178] | |
11 | 11 | ||
12 | 12 | func e (f) = { | |
13 | 13 | let g = 100000 | |
14 | 14 | if (((-6 * g) > f)) | |
15 | 15 | then 1 | |
16 | 16 | else if ((f > (6 * g))) | |
17 | - | then | |
17 | + | then 99999 | |
18 | 18 | else { | |
19 | - | let h = [$Tuple2(60000, | |
19 | + | let h = [$Tuple2(60000, 99999), $Tuple2(50000, 95000), $Tuple2(40000, 90000), $Tuple2(30000, 85000), $Tuple2(20000, 80000), $Tuple2(10000, 75000), $Tuple2(0, 70000), $Tuple2(-10000, 65000), $Tuple2(-20000, 60000), $Tuple2(-30000, 55000), $Tuple2(-40000, 50000), $Tuple2(-50000, 45000), $Tuple2(-60000, 40000)] | |
20 | 20 | let i = ((f + 60000) / 10000) | |
21 | 21 | let j = h[i] | |
22 | 22 | let k = j._1 | |
32 | 32 | then -(n) | |
33 | 33 | else n | |
34 | 34 | let r = e(q) | |
35 | - | let s = ( | |
35 | + | let s = ((p * r) / (p + r)) | |
36 | 36 | $Tuple2([IntegerEntry((o + "positiveZ"), q), IntegerEntry((o + "expValue"), r), IntegerEntry((o + "sigValue"), s)], s) | |
37 | 37 | } | |
38 | 38 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let a = [[600497, | |
4 | + | let a = [[600497, 600732], [414197, 414253]] | |
5 | 5 | ||
6 | - | let b = [- | |
6 | + | let b = [-259051, -635637] | |
7 | 7 | ||
8 | - | let c = [[ | |
8 | + | let c = [[832965, -897142]] | |
9 | 9 | ||
10 | - | let d = [- | |
10 | + | let d = [-381178] | |
11 | 11 | ||
12 | 12 | func e (f) = { | |
13 | 13 | let g = 100000 | |
14 | 14 | if (((-6 * g) > f)) | |
15 | 15 | then 1 | |
16 | 16 | else if ((f > (6 * g))) | |
17 | - | then | |
17 | + | then 99999 | |
18 | 18 | else { | |
19 | - | let h = [$Tuple2(60000, | |
19 | + | let h = [$Tuple2(60000, 99999), $Tuple2(50000, 95000), $Tuple2(40000, 90000), $Tuple2(30000, 85000), $Tuple2(20000, 80000), $Tuple2(10000, 75000), $Tuple2(0, 70000), $Tuple2(-10000, 65000), $Tuple2(-20000, 60000), $Tuple2(-30000, 55000), $Tuple2(-40000, 50000), $Tuple2(-50000, 45000), $Tuple2(-60000, 40000)] | |
20 | 20 | let i = ((f + 60000) / 10000) | |
21 | 21 | let j = h[i] | |
22 | 22 | let k = j._1 | |
23 | 23 | let l = j._2 | |
24 | 24 | l | |
25 | 25 | } | |
26 | 26 | } | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func m (n,o) = { | |
30 | 30 | let p = 100000 | |
31 | 31 | let q = if ((0 > n)) | |
32 | 32 | then -(n) | |
33 | 33 | else n | |
34 | 34 | let r = e(q) | |
35 | - | let s = ( | |
35 | + | let s = ((p * r) / (p + r)) | |
36 | 36 | $Tuple2([IntegerEntry((o + "positiveZ"), q), IntegerEntry((o + "expValue"), r), IntegerEntry((o + "sigValue"), s)], s) | |
37 | 37 | } | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func t (u,v,w,o) = { | |
41 | 41 | let x = (((u[0] * v[0][0]) + (u[1] * v[0][1])) + (w[0] * 100000)) | |
42 | 42 | let y = (((u[0] * v[1][0]) + (u[1] * v[1][1])) + (w[1] * 100000)) | |
43 | 43 | let z = m(x, "Layer1N0") | |
44 | 44 | let A = z._1 | |
45 | 45 | let B = z._2 | |
46 | 46 | let C = m(y, "Layer1N1") | |
47 | 47 | let D = C._1 | |
48 | 48 | let E = C._2 | |
49 | 49 | let F = (A ++ D) | |
50 | 50 | let G = [B, E] | |
51 | 51 | $Tuple2(F, G) | |
52 | 52 | } | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func H (u,v,w,o) = { | |
56 | 56 | let x = (((u[0] * v[0][0]) + (u[1] * v[0][1])) + (w[0] * 100000)) | |
57 | 57 | let I = m(x, "Layer2N0") | |
58 | 58 | let A = I._1 | |
59 | 59 | let B = I._2 | |
60 | 60 | let F = A | |
61 | 61 | let G = B | |
62 | 62 | $Tuple2(F, G) | |
63 | 63 | } | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | @Callable(J) | |
67 | 67 | func predict (K,L) = { | |
68 | 68 | let M = if ((K == 1)) | |
69 | 69 | then 1000000 | |
70 | 70 | else 0 | |
71 | 71 | let N = if ((L == 1)) | |
72 | 72 | then 1000000 | |
73 | 73 | else 0 | |
74 | 74 | let O = [M, N] | |
75 | 75 | let P = t(O, a, b, "Layer1") | |
76 | 76 | let Q = P._1 | |
77 | 77 | let R = P._2 | |
78 | 78 | let S = H(R, c, d, "Layer2") | |
79 | 79 | let T = S._1 | |
80 | 80 | let U = S._2 | |
81 | 81 | (([IntegerEntry("result", U)] ++ Q) ++ T) | |
82 | 82 | } | |
83 | 83 | ||
84 | 84 |
github/deemru/w8io/169f3d6 35.63 ms ◑