Skip to content

Commit

Permalink
Update socks model
Browse files Browse the repository at this point in the history
  • Loading branch information
wizawu committed Mar 22, 2024
1 parent f841186 commit bd12d6f
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 43 deletions.
82 changes: 41 additions & 41 deletions roles/socks/files/model.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,64 +13,64 @@
{
"weights": [
[
2.204501152038574,
0.5546309947967529,
-2.8330864906311035,
0.6347194910049438,
0.21222658455371857,
0.1573762446641922,
-1.770836591720581,
2.042294502258301
-0.3530603051185608,
1.9097681045532227,
-0.7223078608512878,
1.5684552192687988,
0.1445598304271698,
0.21486909687519073,
-2.5684549808502197,
0.18701951205730438
],
[
0.8764995336532593,
0.4158378839492798,
-1.9010742902755737,
0.42103487253189087,
0.058149226009845734,
0.11012724041938782,
-11.477662086486816,
2.474085569381714
-5.753065586090088,
-5.004579067230225,
2.216463565826416,
-3.825162887573242,
-0.29689574241638184,
-0.6801682710647583,
5.736563205718994,
-0.28338465094566345
],
[
-0.956119954586029,
-0.2294468730688095,
0.9047797918319702,
-0.5032052397727966,
-0.015414823777973652,
-0.12971249222755432,
2.3900415897369385,
-0.8800657987594604
15.808937072753906,
2.0466954708099365,
-3.1470885276794434,
1.870863437652588,
0.5260599255561829,
0.22629284858703613,
44.11687088012695,
0.27163758873939514
],
[
-0.863198459148407,
-0.18186123669147491,
1.7169617414474487,
-0.3824613392353058,
-0.1935911774635315,
-0.011914629489183426,
9.328507423400879,
-1.8873350620269775
5.9478349685668945,
1.5692036151885986,
-1.515982747077942,
1.0806533098220825,
0.03050953894853592,
0.2181956022977829,
5.998459339141846,
0.1917845755815506
]
],
"biases": [
-0.6642370820045471,
-0.24894613027572632,
0.5299328565597534,
0.1662057489156723
-3.1732547283172607,
7.426684379577637,
-3.9622836112976074,
-2.513526201248169
]
},
{
"weights": [
[
13.438377380371094,
-0.7346454858779907,
-6.469122409820557,
1.1055476665496826
4.802204132080078,
-14.72053050994873,
7.520280838012695,
4.745488166809082
]
],
"biases": [
3.437621593475342
2.2338080406188965
]
}
],
Expand Down
2 changes: 1 addition & 1 deletion roles/socks/files/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"scripts": {
"build": "tsc main.ts",
"start": "npm run build && node main.js",
"write": "npm run build && node -e 'require(\"./train.js\").writeData(25); process.exit()'",
"write": "npm run build && node -e 'require(\"./train.js\").writeData(26); process.exit()'",
"train": "npm run build && rm -f model.json && node -e 'require(\"./train.js\").train(); process.exit()'"
},
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion roles/socks/files/train.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ const log = LoggerFactory.getLogger("\t\b\b\b\b\b\b\b")
log.level = "debug"

const data = [
...JSON.parse(fs.readFileSync("./data.22.json", "utf-8")),
...JSON.parse(fs.readFileSync("./data.23.json", "utf-8")),
...JSON.parse(fs.readFileSync("./data.24.json", "utf-8")),
...JSON.parse(fs.readFileSync("./data.25.json", "utf-8")),
...JSON.parse(fs.readFileSync("./data.26.json", "utf-8")),
]

const net = new brain.NeuralNetwork()
Expand Down Expand Up @@ -254,6 +254,7 @@ const blackList = [
"bing.com",
"c.bing.com",
"camo.githubusercontent.com",
"cdn.staticfile.org",
"clients2.google.com",
"cm.mgid.com",
"eus.rubiconproject.com",
Expand Down

0 comments on commit bd12d6f

Please sign in to comment.