tx · 8W4DpmGZprxE3grV984a9nnSJ6PF59WrUbFKJyDihWDj

3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY:  -0.01000000 Waves

2024.05.04 11:56 [3091170] smart account 3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY > SELF 0.00000000 Waves

{ "type": 13, "id": "8W4DpmGZprxE3grV984a9nnSJ6PF59WrUbFKJyDihWDj", "fee": 1000000, "feeAssetId": null, "timestamp": 1714812992325, "version": 2, "chainId": 84, "sender": "3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY", "senderPublicKey": "2AWdnJuBMzufXSjTvzVcawBQQhnhF1iXR6QNVgwn33oc", "proofs": [ "2XmDnUQRGHnM8H3xeqMPMqsmifcCbYENZohHLBWNjEkqP3VRx8zN7LtBJ7CS67qAafEd4QBfVc8s3x5RDfrqGeq3" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIBAQAAAAgAAAAADWxheWVyMVdlaWdodHMJAARMAAAAAgkABEwAAAACAAAAAAAACSmwCQAETAAAAAIAAAAAAAAJKp0FAAAAA25pbAkABEwAAAACCQAETAAAAAIAAAAAAAAGUfUJAARMAAAAAgAAAAAAAAZSLQUAAAADbmlsBQAAAANuaWwAAAAADGxheWVyMUJpYXNlcwkABEwAAAACAP///////AwWCQAETAAAAAIA///////2TQsFAAAAA25pbAAAAAANbGF5ZXIyV2VpZ2h0cwkABEwAAAACCQAETAAAAAIAAAAAAAAMtcYJAARMAAAAAgD///////JPiwUAAAADbmlsBQAAAANuaWwAAAAADGxheWVyMkJpYXNlcwkABEwAAAACAP//////+i8FBQAAAANuaWwBAAAABHJlbHUAAAABAAAAAXgDCQAAZgAAAAIFAAAAAXgAAAAAAAAAAAAFAAAAAXgAAAAAAAAAAAABAAAADnNpZ21vaWRfYXBwcm94AAAAAQAAAAF4AwkAAGYAAAACAP///////+iQBQAAAAF4AAAAAAAAAAH0AwkAAGYAAAACAP////////BgBQAAAAF4AAAAAAAAAAPoAwkAA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jdDIFAAAAA2RwMgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAANbGF5ZXIxUmVzdWx0MQUAAAANbGF5ZXIxUmVzdWx0MQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAANbGF5ZXIxUmVzdWx0MgUAAAANbGF5ZXIxUmVzdWx0MgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAALZG90UHJvZHVjdDMFAAAAA2RwMwUAAAADbmlsAAAAAFZpX6Q=", "height": 3091170, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BgJxwNe2CWQhu6e8YQTPKDw8KySzHCR28WNTUgBG6V1v Next: 9553vJ12edZJ27jBKnYz9WXzRqroNuR2RTpiimASfPrE Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = [[600496, 600733], [414197, 414253]]
55
66 let b = [-259050, -635637]
77
88 let c = [[832966, -897141]]
99
1010 let d = [-381179]
1111
1212 func e (f) = if ((f > 0))
1313 then f
1414 else 0
1515
1616
1717 func g (f) = if ((-6000 > f))
1818 then 500
1919 else if ((-4000 > f))
2020 then 1000
2121 else if ((-2000 > f))
2222 then 2000
2323 else if ((0 > f))
2424 then 3000
2525 else if ((2000 > f))
2626 then 5000
2727 else if ((4000 > f))
2828 then 7000
2929 else if ((6000 > f))
3030 then 8000
3131 else if ((8000 > f))
3232 then 9000
3333 else 9500
3434
3535
3636 func h (i,j) = {
3737 let k = ((i[0] * j[0]) / 10000)
3838 let l = ((i[1] * j[1]) / 10000)
3939 (k + l)
4040 }
4141
4242
4343 func m (n) = {
4444 let o = h(n, a[0])
4545 let p = h(n, a[1])
4646 let q = g((o + b[0]))
4747 let r = g((p + b[1]))
4848 let s = [q, r]
4949 let t = h(s, c[0])
5050 let u = g((t + d[0]))
5151 $Tuple6(u, o, p, q, r, t)
5252 }
5353
5454
5555 @Callable(v)
5656 func predict (w,x) = {
5757 let n = [w, x]
5858 let y = m(n)
5959 let z = y._1
6060 let o = y._2
6161 let p = y._3
6262 let q = y._4
6363 let r = y._5
6464 let t = y._6
6565 [IntegerEntry("prediction", z), IntegerEntry("dotProduct1", o), IntegerEntry("dotProduct2", p), IntegerEntry("layer1Result1", q), IntegerEntry("layer1Result2", r), IntegerEntry("dotProduct3", t)]
6666 }
6767
6868

github/deemru/w8io/169f3d6 
24.90 ms