Skip to content

Commit

Permalink
Update socks model
Browse files Browse the repository at this point in the history
  • Loading branch information
wizawu committed Sep 10, 2023
1 parent 2c9086b commit 799bfca
Show file tree
Hide file tree
Showing 3 changed files with 43 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": [
[
-0.9797497987747192,
-0.7083444595336914,
1.3418269157409668,
0.04112325236201286,
0.10205988585948944,
1.6900489330291748,
-1.7927441596984863,
3.2613775730133057
-1.4957565069198608,
-1.0381956100463867,
0.6911807656288147,
-0.7243313193321228,
0.28225165605545044,
11.762889862060547,
-1.2126647233963013,
1.7961094379425049
],
[
0.6382595896720886,
0.04306695982813835,
-0.6440327763557434,
0.03271731734275818,
-0.07206036895513535,
-1.351131558418274,
1.8724759817123413,
-1.6606439352035522
-2.7055184841156006,
-3.191234588623047,
0.09250631928443909,
0.029795663431286812,
-0.5845566987991333,
-0.9000698328018188,
-1.3601841926574707,
-0.5976463556289673
],
[
0.1573045402765274,
-0.055284854024648666,
1.10703706741333,
-0.496703177690506,
-1.0456504821777344,
-2.6566317081451416,
2.82372784614563,
-2.426574945449829
2.2455921173095703,
2.6070680618286133,
-0.29668718576431274,
-0.08090006560087204,
1.0183205604553223,
0.7099242210388184,
-2.259840726852417,
1.067639946937561
],
[
-0.11060035973787308,
-0.08501695096492767,
-1.4813880920410156,
-0.1344454139471054,
-0.3323976695537567,
1.3162422180175781,
0.5170084834098816,
1.7824082374572754
-2.928431749343872,
-5.448062896728516,
-0.0633556917309761,
0.04441172257065773,
-0.6751131415367126,
-1.100059986114502,
2.764660120010376,
-0.8095244765281677
]
],
"biases": [
-2.8707516193389893,
2.5457780361175537,
2.123178005218506,
-1.9993724822998047
-3.3855528831481934,
0.15992678701877594,
-1.7274528741836548,
1.4922223091125488
]
},
{
"weights": [
[
-4.086713790893555,
-0.8525671362876892,
-7.610404014587402,
8.707356452941895
2.443460464477539,
-1.5954984426498413,
1.4091967344284058,
-1.2537981271743774
]
],
"biases": [
-2.520225763320923
-1.6692252159118652
]
}
],
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(19); process.exit()'",
"write": "npm run build && node -e 'require(\"./train.js\").writeData(20); process.exit()'",
"train": "npm run build && rm -f model.json && node -e 'require(\"./train.js\").train(); process.exit()'"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 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.16.json", "utf-8")),
...JSON.parse(fs.readFileSync("./data.17.json", "utf-8")),
...JSON.parse(fs.readFileSync("./data.18.json", "utf-8")),
...JSON.parse(fs.readFileSync("./data.19.json", "utf-8")),
...JSON.parse(fs.readFileSync("./data.20.json", "utf-8")),
]

const net = new brain.NeuralNetwork()
Expand Down

0 comments on commit 799bfca

Please sign in to comment.