tx · Caw5hteY6VE5wJWUtbXE6eTkgJhAS89NUjyTEgyWD7vy 3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY: -0.01000000 Waves 2024.04.28 15:03 [3082685] smart account 3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY > SELF 0.00000000 Waves
{ "type": 13, "id": "Caw5hteY6VE5wJWUtbXE6eTkgJhAS89NUjyTEgyWD7vy", "fee": 1000000, "feeAssetId": null, "timestamp": 1714305832290, "version": 2, "chainId": 84, "sender": "3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY", "senderPublicKey": "2AWdnJuBMzufXSjTvzVcawBQQhnhF1iXR6QNVgwn33oc", "proofs": [ "4VHqqiNJ6rQpQmyU7qtsUDCNjoVgwnXgbEa4h8qXjSjtbAGTaSQorPzdaGWujYTtvKyzP7mC9rzbn94v7XFxmgiw" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIBAQAAAAgAAAAADWxheWVyMVdlaWdodHMJAARMAAAAAgkABEwAAAACAAAAAAAACSmxCQAETAAAAAIAAAAAAAAJKpwFAAAAA25pbAkABEwAAAACCQAETAAAAAIAAAAAAAAGUfUJAARMAAAAAgAAAAAAAAZSLQUAAAADbmlsBQAAAANuaWwAAAAADGxheWVyMUJpYXNlcwkABEwAAAACAP///////AwWCQAETAAAAAIA///////2TQsFAAAAA25pbAAAAAANbGF5ZXIyV2VpZ2h0cwkABEwAAAACCQAETAAAAAIAAAAAAAAMtcYJAARMAAAAAgD///////JPigUAAAADbmlsBQAAAANuaWwAAAAADGxheWVyMkJpYXNlcwkABEwAAAACAP//////+i8FBQAAAANuaWwBAAAACWV4cEFwcHJveAAAAAEAAAABeAQAAAAHc2NhbGVkWAkAAGsAAAADBQAAAAF4AAAAAAAAAAABAAAAAAAAAAPoBAAAAAhzY2FsZWRYMgkAAGsAAAADBQAAAAdzY2FsZWRYBQAAAAdzY2FsZWRYAAAAAAAAAAPoBAAAAAV0ZXJtMQkAAGUAAAACAAAA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AyMDYwMjE1OAAAAAJfMQQAAAAMbGF5ZXIxT3V0cHV0CAUAAAALJHQwMjA2MDIxNTgAAAACXzIEAAAACyR0MDIxNjMyMjY3CQEAAAARZm9yd2FyZFBhc3NMYXllcjIAAAAEBQAAAAxsYXllcjFPdXRwdXQFAAAADWxheWVyMldlaWdodHMFAAAADGxheWVyMkJpYXNlcwIAAAAGTGF5ZXIyBAAAAAtkZWJ1Z0xheWVyMggFAAAACyR0MDIxNjMyMjY3AAAAAl8xBAAAAAxsYXllcjJPdXRwdXQIBQAAAAskdDAyMTYzMjI2NwAAAAJfMgkABE4AAAACCQAETgAAAAIJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAABnJlc3VsdAUAAAAMbGF5ZXIyT3V0cHV0BQAAAANuaWwFAAAAC2RlYnVnTGF5ZXIxBQAAAAtkZWJ1Z0xheWVyMgAAAABqSdqR", "height": 3082685, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BM99xHVxdCc9EqbXsCkM7ZWSZhTJvHtirzap69CgHG6L Next: 3VfJiTQQ4gm1w42zeiKmk1fzLaxCoRabH3w4e7NAmWgj 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 = [-259050, - | |
6 | + | let b = [-259050, -635637] | |
7 | 7 | ||
8 | 8 | let c = [[832966, -897142]] | |
9 | 9 |
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 = [-259050, - | |
6 | + | let b = [-259050, -635637] | |
7 | 7 | ||
8 | 8 | let c = [[832966, -897142]] | |
9 | 9 | ||
10 | 10 | let d = [-381179] | |
11 | 11 | ||
12 | 12 | func e (f) = { | |
13 | 13 | let g = fraction(f, 1, 1000) | |
14 | 14 | let h = fraction(g, g, 1000) | |
15 | 15 | let i = (1000 - g) | |
16 | 16 | let j = fraction(h, 500, 1) | |
17 | 17 | (i + j) | |
18 | 18 | } | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func k (l,m) = { | |
22 | 22 | let n = e(-(l)) | |
23 | 23 | let o = (1000 + n) | |
24 | 24 | let p = fraction(1000, o, 1) | |
25 | 25 | $Tuple2([IntegerEntry((m + "inputZ"), l), IntegerEntry((m + "expNegZ"), n), IntegerEntry((m + "onePlusExpNegZ"), o), IntegerEntry((m + "sigValue"), p)], p) | |
26 | 26 | } | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func q (r,s,t,m) = { | |
30 | 30 | let u = (((r[0] * s[0][0]) + (r[1] * s[0][1])) + t[0]) | |
31 | 31 | let v = (((r[0] * s[1][0]) + (r[1] * s[1][1])) + t[1]) | |
32 | 32 | let w = k(u, "Layer1N0") | |
33 | 33 | let x = w._1 | |
34 | 34 | let y = w._2 | |
35 | 35 | let z = k(v, "Layer1N1") | |
36 | 36 | let A = z._1 | |
37 | 37 | let B = z._2 | |
38 | 38 | let C = (x ++ A) | |
39 | 39 | let D = [y, B] | |
40 | 40 | $Tuple2(C, D) | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func E (r,s,t,m) = { | |
45 | 45 | let u = (((r[0] * s[0][0]) + (r[1] * s[0][1])) + t[0]) | |
46 | 46 | let F = k(u, "Layer2N0") | |
47 | 47 | let x = F._1 | |
48 | 48 | let y = F._2 | |
49 | 49 | let C = x | |
50 | 50 | let D = y | |
51 | 51 | $Tuple2(C, D) | |
52 | 52 | } | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | @Callable(G) | |
56 | 56 | func predict (H,I) = { | |
57 | 57 | let J = if ((H == 1)) | |
58 | 58 | then 1 | |
59 | 59 | else 0 | |
60 | 60 | let K = if ((I == 1)) | |
61 | 61 | then 1 | |
62 | 62 | else 0 | |
63 | 63 | let L = [J, K] | |
64 | 64 | let M = q(L, a, b, "Layer1") | |
65 | 65 | let N = M._1 | |
66 | 66 | let O = M._2 | |
67 | 67 | let P = E(O, c, d, "Layer2") | |
68 | 68 | let Q = P._1 | |
69 | 69 | let R = P._2 | |
70 | 70 | (([IntegerEntry("result", R)] ++ N) ++ Q) | |
71 | 71 | } | |
72 | 72 | ||
73 | 73 |
github/deemru/w8io/169f3d6 26.34 ms ◑