Skip to content

Commit

Permalink
Update socks model
Browse files Browse the repository at this point in the history
  • Loading branch information
wizawu committed Apr 26, 2023
1 parent 86043bf commit 231d9fc
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 24 deletions.
42 changes: 21 additions & 21 deletions roles/socks/files/model.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,46 +13,46 @@
{
"weights": [
[
6.244887351989746,
-55.860774993896484,
-79.65629577636719,
66.87577819824219,
-79.55770874023438,
66.91395568847656
6.5339202880859375,
-61.70374298095703,
-79.74588012695312,
66.29058074951172,
-79.64729309082031,
66.3287582397461
],
[
-8.94388198852539,
-11.347363471984863,
-66.3730239868164,
-16.159265518188477,
-16.94634437561035,
-66.56424713134766,
-16.313508987426758
-17.100587844848633
],
[
-11.857340812683105,
88.89261627197266,
-56.62053298950195,
-14.771707534790039,
-56.5805778503418,
-14.782548904418945
-12.130209922790527,
94.23123168945312,
-56.82835006713867,
-14.905869483947754,
-56.788394927978516,
-14.91671085357666
]
],
"biases": [
-137.27061462402344,
-0.6304441094398499,
281.5356140136719
-139.1383514404297,
-1.064865231513977,
284.26239013671875
]
},
{
"weights": [
[
1.4138617515563965,
2.428116798400879,
1.1750900745391846
1.0191524028778076,
3.000995397567749,
1.5827070474624634
]
],
"biases": [
-0.9977375864982605
-0.9305111169815063
]
}
],
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(10); process.exit()'",
"write": "npm run build && node -e 'require(\"./train.js\").writeData(11); process.exit()'",
"train": "npm run build && node -e 'require(\"./train.js\").train(); process.exit()'"
},
"dependencies": {
Expand Down
9 changes: 7 additions & 2 deletions roles/socks/files/train.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ const log = LoggerFactory.getLogger("\t\b\b\b\b\b\b\b")
log.level = "debug"

const data = [
...JSON.parse(fs.readFileSync("./data.6.json", "utf-8")),
...JSON.parse(fs.readFileSync("./data.7.json", "utf-8")),
...JSON.parse(fs.readFileSync("./data.8.json", "utf-8")),
...JSON.parse(fs.readFileSync("./data.10.json", "utf-8")),
...JSON.parse(fs.readFileSync("./data.11.json", "utf-8")),
]

const net = new brain.NeuralNetwork()
Expand Down Expand Up @@ -83,10 +82,13 @@ const whiteList = [
"aegis.qq.com",
"aq.qq.com",
"at.idqqimg.com",
"avatar.ithome.com",
"btrace.qq.com",
"cache.soso.com",
"cm.l.qq.com",
"cube.weixinbridge.com",
"dat.ruanmei.com",
"digi.ithome.com",
"discuz.gtimg.cn",
"dldir1.qq.com",
"doc.weixin.qq.com",
Expand All @@ -112,6 +114,7 @@ const whiteList = [
"mi.com",
"miao.baidu.com",
"mp.weixin.qq.com",
"myapi.ruanmei.com",
"open.weixin.qq.com",
"openapi.guanjia.qq.com",
"oth.str.beacon.qq.com",
Expand All @@ -120,7 +123,9 @@ const whiteList = [
"pingjs.qq.com",
"pos.baidu.com",
"pub.idqqimg.com",
"qimg.ithome.com",
"qpsearch.jd.com",
"quan.ithome.com",
"rel.discuz.soso.com",
"report.idqqimg.com",
"report.qqweb.qq.com",
Expand Down

0 comments on commit 231d9fc

Please sign in to comment.