This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"tagInfluences":{ | |
"gender:m":0.06636065989732742, | |
"offer_id:6171":-2.581859880592674E-4, | |
"campaign_id:1881":0.015783997252583504, | |
"country:us":0.11149032413959503, | |
"position:8":-0.04144928976893425, | |
"traffic_source:panel":-6.631476571783423E-4 | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object MartelliEstimator { | |
def main(args : Array[String]) : Unit = { | |
for (bought <- 0 until 5) { | |
val result = estimate(List(0.3, 0.7), bought, 4-bought) | |
println("b="+bought+", p="+result) | |
} | |
} | |
def estimate(priorProbs : List[Double], successes : Int, failures : Int) : Double = { | |
val condProbs = priorProbs.map( p => Math.pow(p, successes) * Math.pow(1.0-p, failures)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
opennet=false | |
identity=tSo4sPigc9mfQ3oHBvo8hxZonSqHolfa4lDm1dA2AkI | |
myName=Sanity's Node | |
lastGoodVersion=Fred,0.7,1.0,1214 | |
sig=6ed2ffe0e3ea267b3990bc6f052c40790b135a57c499b785df3ef7bb164e34e0,7eae252769981353acee4eec0cb0c3a786b40cd7f02f26833b7ae3aab25d71d6 | |
version=Fred,0.7,1.0,1222 | |
dsaPubKey.y=QwVL7KxlDw8i35FJFXForiJFqbTJfa481N-Tx9lvHN2se0WALk8uhxCC5~kHCp-PeBA1TljEAwuIGiL~owF2Vhzf7ubV2swSSA2FWxuCXBlLtu5XQaLE6iZf~nxkg9RsCpp6r9YcacaVe4y8O~JR0zFQuYotjN53yJTdne4nn3zZcxAk9ygP8MAIg8zs0GEIG0BMRJ1P3RrKzzZ2HoFr5YkJwfrCICezDUpGxLICl6eZ6cg3FEr1nXk-PCSWbRyigz~CqyuPbY2rxBwb~adwTQUy71FPbj5mu3REiD7w26RE7a6slW9qLV30Wx-75FggwxuKcBHIzNoWuA9JEWSIJg | |
physical.udp=10.37.129.2:26497;fe80:0:0:0:21c:42ff:fe00:9%8:26497;10.211.55.2:26497;fe80:0:0:0:21c:42ff:fe00:8%7:26497;192.168.15.106:26497;fe80:0:0:0:21f:5bff:feca:3271%6:26497;127.0.0.1:26497;0:0:0:0:0:0:0:1:26497;fe80:0:0:0:0:0:0:1%1:26497;66.90.245.59:26497 | |
dsaGroup.g=UaRatnDByf0QvTlaaAXTMzn1Z15LDTXe-J~gOqXCv0zpz83CVngSkb--bVRuZ9R65OFg~ATKcuw8VJJwn1~A9p5jRt2NPj2EM7bu72O85-mFdBhcav |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
opennet=false | |
identity=tSo4sPigc9mfQ3oHBvo8hxZonSqHolfa4lDm1dA2AkI | |
myName=Sanity's Node | |
lastGoodVersion=Fred,0.7,1.0,1214 | |
sig=6ed2ffe0e3ea267b3990bc6f052c40790b135a57c499b785df3ef7bb164e34e0,7eae252769981353acee4eec0cb0c3a786b40cd7f02f26833b7ae3aab25d71d6 | |
version=Fred,0.7,1.0,1222 | |
dsaPubKey.y=QwVL7KxlDw8i35FJFXForiJFqbTJfa481N-Tx9lvHN2se0WALk8uhxCC5~kHCp-PeBA1TljEAwuIGiL~owF2Vhzf7ubV2swSSA2FWxuCXBlLtu5XQaLE6iZf~nxkg9RsCpp6r9YcacaVe4y8O~JR0zFQuYotjN53yJTdne4nn3zZcxAk9ygP8MAIg8zs0GEIG0BMRJ1P3RrKzzZ2HoFr5YkJwfrCICezDUpGxLICl6eZ6cg3FEr1nXk-PCSWbRyigz~CqyuPbY2rxBwb~adwTQUy71FPbj5mu3REiD7w26RE7a6slW9qLV30Wx-75FggwxuKcBHIzNoWuA9JEWSIJg | |
physical.udp=10.37.129.2:26497;fe80:0:0:0:21c:42ff:fe00:9%8:26497;10.211.55.2:26497;fe80:0:0:0:21c:42ff:fe00:8%7:26497;192.168.15.106:26497;fe80:0:0:0:21f:5bff:feca:3271%6:26497;127.0.0.1:26497;0:0:0:0:0:0:0:1:26497;fe80:0:0:0:0:0:0:1%1:26497;66.90.245.59:26497 | |
dsaGroup.g=UaRatnDByf0QvTlaaAXTMzn1Z15LDTXe-J~gOqXCv0zpz83CVngSkb--bVRuZ9R65OFg~ATKcuw8VJJwn1~A9p5jRt2NPj2EM7bu72O85-mFdBhcav |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (final ValidationTransaction vt : results) { | |
transCount++; | |
if (vt.actual == 1.0) { | |
chargebackCount++; | |
} | |
if (transCount > (totalResults * 0.3) && chargebackCount / (double) transCount > 0.01) { | |
log.info("Threshold: " + vt.predicted); | |
chargebackCount--; | |
transCount--; | |
break; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scala.continuations._ | |
import scala.continuations.ControlContext._ | |
object ContTest { | |
def get(k : String) = shift { | |
c: (String => Unit) => { | |
if (k == "local") { | |
c("localValue") | |
None | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scala.continuations._ | |
import scala.continuations.ControlContext._ | |
object ContTest { | |
def get(k : String) = shift { | |
c: (String => Cont) => { | |
if (k == "local") { | |
c("localValue") | |
NoCont() | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
code: | |
def root2() : Cont = reset { | |
val num = List(1,2,3,4,5); | |
for (n <- num) { | |
println("get "+n+" "+get("remote")); | |
} | |
} | |
error: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def root2() : Cont = reset { | |
// val num = List(1,2,3,4,5); | |
// for (n <- num) { | |
// println("get "+n+" "+get("remote")); | |
// } | |
} | |
Description Resource Path Location Type | |
cannot cps-transform expression (): type arguments [Unit,Unit,Nothing] do not conform to method shiftUnit's type parameter bounds [A,B,C >: B] ContTest.scala /SwarmProto/src line 23 Scala Problem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"boosted": false, | |
"control": false, | |
"outcome": 0.02985553499429659, | |
"tag": "offer_id:10761" | |
}, | |
{ | |
"boosted": false, | |
"control": false, |