tx · HQYVbfLQm6q7Et1MgYX3SjNGapVKGrrmzK5duBWV2fLi
3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY: -0.01000000 Waves
2024.05.04 11:47 [3091161] smart account 3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY > SELF 0.00000000 Waves
{
"type": 13,
"id": "HQYVbfLQm6q7Et1MgYX3SjNGapVKGrrmzK5duBWV2fLi",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1714812492950,
"version": 2,
"chainId": 84,
"sender": "3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY",
"senderPublicKey": "2AWdnJuBMzufXSjTvzVcawBQQhnhF1iXR6QNVgwn33oc",
"proofs": [
"2ZVGoA64vK9mEiXosJoWafczHnpCQRhkpGKQbYExvXnJTjB2JqrLXCuh9DVn7rXXmYJS7YSe5kbUr2WdfxkrcRm5"
],
"script": "base64:AAIFAAAAAAAAAAgIAhIECgIBAQAAAAgAAAAADWxheWVyMVdlaWdodHMJAARMAAAAAgkABEwAAAACAAAAAAAACSmwCQAETAAAAAIAAAAAAAAJKp0FAAAAA25pbAkABEwAAAACCQAETAAAAAIAAAAAAAAGUfUJAARMAAAAAgAAAAAAAAZSLQUAAAADbmlsBQAAAANuaWwAAAAADGxheWVyMUJpYXNlcwkABEwAAAACAP///////AwWCQAETAAAAAIA///////2TQsFAAAAA25pbAAAAAANbGF5ZXIyV2VpZ2h0cwkABEwAAAACCQAETAAAAAIAAAAAAAAMtcYJAARMAAAAAgD///////JPiwUAAAADbmlsBQAAAANuaWwAAAAADGxheWVyMkJpYXNlcwkABEwAAAACAP//////+i8FBQAAAANuaWwBAAAABHJlbHUAAAABAAAAAXgDCQAAZgAAAAIFAAAAAXgAAAAAAAAAAAAFAAAAAXgAAAAAAAAAAAABAAAADnNpZ21vaWRfYXBwcm94AAAAAQAAAAF4AwkAAGYAAAACAP///////+x4BQAAAAF4AAAAAAAAAAAAAwkAAGYAAAACAAAAAAAAAAAABQAAAA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ABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAALZG90UHJvZHVjdDMFAAAAA2RwMwUAAAADbmlsAAAAAL0zdOk=",
"height": 3091161,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: CrFqEGY8DWvwsYq3yExJteW66i3hdNFg277CA3AXDGFm
Next: BgJxwNe2CWQhu6e8YQTPKDw8KySzHCR28WNTUgBG6V1v
Diff:
Old | New | | Differences |
---|
31 | 31 | | |
---|
32 | 32 | | |
---|
33 | 33 | | func m (n) = { |
---|
34 | | - | let o = g((h(n, a[0]) + b[0])) |
---|
35 | | - | let p = g((h(n, a[1]) + b[1])) |
---|
36 | | - | let q = [o, p] |
---|
37 | | - | g((h(q, c[0]) + d[0])) |
---|
| 34 | + | let o = h(n, a[0]) |
---|
| 35 | + | let p = h(n, a[1]) |
---|
| 36 | + | let q = g((o + b[0])) |
---|
| 37 | + | let r = g((p + b[1])) |
---|
| 38 | + | let s = [q, r] |
---|
| 39 | + | let t = h(s, c[0]) |
---|
| 40 | + | let u = g((t + d[0])) |
---|
| 41 | + | $Tuple6(u, o, p, q, r, t) |
---|
38 | 42 | | } |
---|
39 | 43 | | |
---|
40 | 44 | | |
---|
41 | | - | @Callable(r) |
---|
42 | | - | func predict (s,t) = { |
---|
43 | | - | let n = [s, t] |
---|
44 | | - | let u = m(n) |
---|
45 | | - | [IntegerEntry("prediction", u)] |
---|
| 45 | + | @Callable(v) |
---|
| 46 | + | func predict (w,x) = { |
---|
| 47 | + | let n = [w, x] |
---|
| 48 | + | let y = m(n) |
---|
| 49 | + | let z = y._1 |
---|
| 50 | + | let o = y._2 |
---|
| 51 | + | let p = y._3 |
---|
| 52 | + | let q = y._4 |
---|
| 53 | + | let r = y._5 |
---|
| 54 | + | let t = y._6 |
---|
| 55 | + | [IntegerEntry("prediction", z), IntegerEntry("dotProduct1", o), IntegerEntry("dotProduct2", p), IntegerEntry("layer1Result1", q), IntegerEntry("layer1Result2", r), IntegerEntry("dotProduct3", t)] |
---|
46 | 56 | | } |
---|
47 | 57 | | |
---|
48 | 58 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = [[600496, 600733], [414197, 414253]] |
---|
5 | 5 | | |
---|
6 | 6 | | let b = [-259050, -635637] |
---|
7 | 7 | | |
---|
8 | 8 | | let c = [[832966, -897141]] |
---|
9 | 9 | | |
---|
10 | 10 | | let d = [-381179] |
---|
11 | 11 | | |
---|
12 | 12 | | func e (f) = if ((f > 0)) |
---|
13 | 13 | | then f |
---|
14 | 14 | | else 0 |
---|
15 | 15 | | |
---|
16 | 16 | | |
---|
17 | 17 | | func g (f) = if ((-5000 > f)) |
---|
18 | 18 | | then 0 |
---|
19 | 19 | | else if ((0 > f)) |
---|
20 | 20 | | then 5000 |
---|
21 | 21 | | else if ((5000 > f)) |
---|
22 | 22 | | then 9500 |
---|
23 | 23 | | else 10000 |
---|
24 | 24 | | |
---|
25 | 25 | | |
---|
26 | 26 | | func h (i,j) = { |
---|
27 | 27 | | let k = ((i[0] * j[0]) / 10000) |
---|
28 | 28 | | let l = ((i[1] * j[1]) / 10000) |
---|
29 | 29 | | (k + l) |
---|
30 | 30 | | } |
---|
31 | 31 | | |
---|
32 | 32 | | |
---|
33 | 33 | | func m (n) = { |
---|
34 | | - | let o = g((h(n, a[0]) + b[0])) |
---|
35 | | - | let p = g((h(n, a[1]) + b[1])) |
---|
36 | | - | let q = [o, p] |
---|
37 | | - | g((h(q, c[0]) + d[0])) |
---|
| 34 | + | let o = h(n, a[0]) |
---|
| 35 | + | let p = h(n, a[1]) |
---|
| 36 | + | let q = g((o + b[0])) |
---|
| 37 | + | let r = g((p + b[1])) |
---|
| 38 | + | let s = [q, r] |
---|
| 39 | + | let t = h(s, c[0]) |
---|
| 40 | + | let u = g((t + d[0])) |
---|
| 41 | + | $Tuple6(u, o, p, q, r, t) |
---|
38 | 42 | | } |
---|
39 | 43 | | |
---|
40 | 44 | | |
---|
41 | | - | @Callable(r) |
---|
42 | | - | func predict (s,t) = { |
---|
43 | | - | let n = [s, t] |
---|
44 | | - | let u = m(n) |
---|
45 | | - | [IntegerEntry("prediction", u)] |
---|
| 45 | + | @Callable(v) |
---|
| 46 | + | func predict (w,x) = { |
---|
| 47 | + | let n = [w, x] |
---|
| 48 | + | let y = m(n) |
---|
| 49 | + | let z = y._1 |
---|
| 50 | + | let o = y._2 |
---|
| 51 | + | let p = y._3 |
---|
| 52 | + | let q = y._4 |
---|
| 53 | + | let r = y._5 |
---|
| 54 | + | let t = y._6 |
---|
| 55 | + | [IntegerEntry("prediction", z), IntegerEntry("dotProduct1", o), IntegerEntry("dotProduct2", p), IntegerEntry("layer1Result1", q), IntegerEntry("layer1Result2", r), IntegerEntry("dotProduct3", t)] |
---|
46 | 56 | | } |
---|
47 | 57 | | |
---|
48 | 58 | | |
---|