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