tx · 2b25PWcsfJJqtzYdx5PHEx5557PpxguKVWbbsMW8ffgA 3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY: -0.01000000 Waves 2024.04.28 12:59 [3082559] smart account 3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY > SELF 0.00000000 Waves
{ "type": 13, "id": "2b25PWcsfJJqtzYdx5PHEx5557PpxguKVWbbsMW8ffgA", "fee": 1000000, "feeAssetId": null, "timestamp": 1714298417301, "version": 2, "chainId": 84, "sender": "3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY", "senderPublicKey": "2AWdnJuBMzufXSjTvzVcawBQQhnhF1iXR6QNVgwn33oc", "proofs": [ "ytP45QFEDTrqFyfLANC1rSgWhF5bLrBzSacJxfDsz42hh5A7wbPWW4jgcF8QDdm54LH2BUTH2QUcMHnVKB6kc4m" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIBAQAAAAcAAAAADWxheWVyMVdlaWdodHMJAARMAAAAAgkABEwAAAACAAAAAAAACSmwCQAETAAAAAIAAAAAAAAJKp0FAAAAA25pbAkABEwAAAACCQAETAAAAAIAAAAAAAAGUfQJAARMAAAAAgAAAAAAAAZSLQUAAAADbmlsBQAAAANuaWwAAAAADGxheWVyMUJpYXNlcwkABEwAAAACAP///////AwVCQAETAAAAAIA///////2TQsFAAAAA25pbAAAAAANbGF5ZXIyV2VpZ2h0cwkABEwAAAACCQAETAAAAAIAAAAAAAAMtcUJAARMAAAAAgD///////JPigUAAAADbmlsBQAAAANuaWwAAAAADGxheWVyMkJpYXNlcwkABEwAAAACAP//////+i8FBQAAAANuaWwBAAAAB3NpZ21vaWQAAAACAAAAAXoAAAALZGVidWdQcmVmaXgEAAAAAWUAAAAAAAApekkEAAAABGJhc2UAAAAAAAAPQkAEAAAACXBvc2l0aXZlWgMJAABmAAAAAgAAAAAAAAAAAAUAAAABegkBAAAAAS0AAAABBQAAAAF6BQAAAAF6BAAAAAdzY2FsZWRaCQAAaQAAAAIF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AUAAAALJHQwMjAyODIxMzIAAAACXzEEAAAADGxheWVyMk91dHB1dAgFAAAACyR0MDIwMjgyMTMyAAAAAl8yCQAETgAAAAIJAAROAAAAAgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAGcmVzdWx0BQAAAAxsYXllcjJPdXRwdXQFAAAAA25pbAUAAAALZGVidWdMYXllcjEFAAAAC2RlYnVnTGF5ZXIyAAAAAN7D/2o=", "height": 3082559, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EagziTUuatBGN4yrywpoprrknF46urgJ1q46iavxr1Ng Next: 7s1h3jYoYnAwi8pPGmy5HUUL4Ybuoz6K6kVB7GwRyRrV Full:
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, 600733], [414196, 414253]] | |
5 | 5 | ||
6 | 6 | let b = [-259051, -635637] | |
7 | 7 | ||
8 | 8 | let c = [[832965, -897142]] | |
9 | 9 | ||
10 | - | let d = [- | |
10 | + | let d = [-381179] | |
11 | 11 | ||
12 | - | func e (f) = { | |
13 | - | let g = 100000 | |
14 | - | if (((-6 * g) > f)) | |
15 | - | then 1 | |
16 | - | else if ((f > (6 * g))) | |
17 | - | then 99999 | |
18 | - | else { | |
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 | - | let i = ((f + 60000) / 10000) | |
21 | - | let j = h[i] | |
22 | - | let k = j._1 | |
23 | - | let l = j._2 | |
24 | - | l | |
25 | - | } | |
12 | + | func e (f,g) = { | |
13 | + | let h = 2718281 | |
14 | + | let i = 1000000 | |
15 | + | let j = if ((0 > f)) | |
16 | + | then -(f) | |
17 | + | else f | |
18 | + | let k = (j / 10000) | |
19 | + | let l = fraction(h, i, k) | |
20 | + | let m = fraction(i, (i + l), i) | |
21 | + | $Tuple2([IntegerEntry((g + "positiveZ"), j), IntegerEntry((g + "expPart"), l), IntegerEntry((g + "sigValue"), m)], m) | |
26 | 22 | } | |
27 | 23 | ||
28 | 24 | ||
29 | - | func m (n,o) = { | |
30 | - | let p = 100000 | |
31 | - | let q = if ((0 > n)) | |
32 | - | then -(n) | |
33 | - | else n | |
34 | - | let r = e(q) | |
35 | - | let s = ((p * r) / (p + r)) | |
36 | - | $Tuple2([IntegerEntry((o + "positiveZ"), q), IntegerEntry((o + "expValue"), r), IntegerEntry((o + "sigValue"), s)], s) | |
25 | + | func n (o,p,q,g) = { | |
26 | + | let r = (((o[0] * p[0][0]) + (o[1] * p[0][1])) + (q[0] * 100000)) | |
27 | + | let s = (((o[0] * p[1][0]) + (o[1] * p[1][1])) + (q[1] * 100000)) | |
28 | + | let t = e(r, "Layer1N0") | |
29 | + | let u = t._1 | |
30 | + | let v = t._2 | |
31 | + | let w = e(s, "Layer1N1") | |
32 | + | let x = w._1 | |
33 | + | let y = w._2 | |
34 | + | let z = (u ++ x) | |
35 | + | let A = [v, y] | |
36 | + | $Tuple2(z, A) | |
37 | 37 | } | |
38 | 38 | ||
39 | 39 | ||
40 | - | func t (u,v,w,o) = { | |
41 | - | let x = (((u[0] * v[0][0]) + (u[1] * v[0][1])) + (w[0] * 100000)) | |
42 | - | let y = (((u[0] * v[1][0]) + (u[1] * v[1][1])) + (w[1] * 100000)) | |
43 | - | let z = m(x, "Layer1N0") | |
44 | - | let A = z._1 | |
45 | - | let B = z._2 | |
46 | - | let C = m(y, "Layer1N1") | |
47 | - | let D = C._1 | |
48 | - | let E = C._2 | |
49 | - | let F = (A ++ D) | |
50 | - | let G = [B, E] | |
51 | - | $Tuple2(F, G) | |
40 | + | func B (o,p,q,g) = { | |
41 | + | let r = (((o[0] * p[0][0]) + (o[1] * p[0][1])) + (q[0] * 100000)) | |
42 | + | let C = e(r, "Layer2N0") | |
43 | + | let u = C._1 | |
44 | + | let v = C._2 | |
45 | + | let z = u | |
46 | + | let A = v | |
47 | + | $Tuple2(z, A) | |
52 | 48 | } | |
53 | 49 | ||
54 | 50 | ||
55 | - | func H (u,v,w,o) = { | |
56 | - | let x = (((u[0] * v[0][0]) + (u[1] * v[0][1])) + (w[0] * 100000)) | |
57 | - | let I = m(x, "Layer2N0") | |
58 | - | let A = I._1 | |
59 | - | let B = I._2 | |
60 | - | let F = A | |
61 | - | let G = B | |
62 | - | $Tuple2(F, G) | |
63 | - | } | |
64 | - | ||
65 | - | ||
66 | - | @Callable(J) | |
67 | - | func predict (K,L) = { | |
68 | - | let M = if ((K == 1)) | |
51 | + | @Callable(D) | |
52 | + | func predict (E,F) = { | |
53 | + | let G = if ((E == 1)) | |
69 | 54 | then 1000000 | |
70 | 55 | else 0 | |
71 | - | let | |
56 | + | let H = if ((F == 1)) | |
72 | 57 | then 1000000 | |
73 | 58 | else 0 | |
74 | - | let | |
75 | - | let | |
76 | - | let | |
77 | - | let | |
78 | - | let | |
79 | - | let | |
80 | - | let | |
81 | - | (([IntegerEntry("result", | |
59 | + | let I = [G, H] | |
60 | + | let J = n(I, a, b, "Layer1") | |
61 | + | let K = J._1 | |
62 | + | let L = J._2 | |
63 | + | let M = B(L, c, d, "Layer2") | |
64 | + | let N = M._1 | |
65 | + | let O = M._2 | |
66 | + | (([IntegerEntry("result", O)] ++ K) ++ N) | |
82 | 67 | } | |
83 | 68 | ||
84 | 69 |
github/deemru/w8io/169f3d6 27.41 ms ◑