Skip to content

Commit

Permalink
Update socks model
Browse files Browse the repository at this point in the history
  • Loading branch information
wizawu committed Jun 8, 2024
1 parent 72a9a50 commit 1a4d886
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion bin/x
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if [[ "$1" = "-r" ]]; then
xinput set-prop 'pointer:MOSART Semi. 2.4G Keyboard Mouse' 'libinput Accel Profile Enabled' 0 1
xinput set-prop 'pointer:MOSART Semi. 2.4G Keyboard Mouse' 'libinput Accel Speed' 0.1
xinput set-prop 'pointer:Razer Razer Viper 8KHz' 'libinput Accel Profile Enabled' 0 1
xinput set-prop 'pointer:Razer Razer Viper 8KHz' 'libinput Accel Speed' 0.5
xinput set-prop 'pointer:Razer Razer Viper 8KHz' 'libinput Accel Speed' 0.3
hsetroot -full /usr/share/awesome/themes/default/background.png -clear
exit
fi
Expand Down
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.3530603051185608,
1.9097681045532227,
-0.7223078608512878,
1.5684552192687988,
0.1445598304271698,
0.21486909687519073,
-2.5684549808502197,
0.18701951205730438
-0.37777483463287354,
0.9682201147079468,
1.1632983684539795,
0.403016597032547,
-0.06706329435110092,
0.4671007990837097,
1.9528402090072632,
1.0839407444000244
],
[
-5.753065586090088,
-5.004579067230225,
2.216463565826416,
-3.825162887573242,
-0.29689574241638184,
-0.6801682710647583,
5.736563205718994,
-0.28338465094566345
2.8269455432891846,
-1.1180901527404785,
-1.583853840827942,
-0.033238571137189865,
-0.03286677971482277,
0.27385619282722473,
-2.608484983444214,
2.6967427730560303
],
[
15.808937072753906,
2.0466954708099365,
-3.1470885276794434,
1.870863437652588,
0.5260599255561829,
0.22629284858703613,
44.11687088012695,
0.27163758873939514
12.770895957946777,
-1.2710047960281372,
-1.3638408184051514,
0.4412776529788971,
-0.13095256686210632,
0.5274295806884766,
-5.0813398361206055,
3.0653464794158936
],
[
5.9478349685668945,
1.5692036151885986,
-1.515982747077942,
1.0806533098220825,
0.03050953894853592,
0.2181956022977829,
5.998459339141846,
0.1917845755815506
1.8377684354782104,
-1.200817584991455,
-2.622912883758545,
0.2842104732990265,
0.16438351571559906,
-0.09524234384298325,
-1.3473869562149048,
1.7476177215576172
]
],
"biases": [
-3.1732547283172607,
7.426684379577637,
-3.9622836112976074,
-2.513526201248169
1.035426139831543,
-0.8713827729225159,
-0.7595022916793823,
-0.6873355507850647
]
},
{
"weights": [
[
4.802204132080078,
-14.72053050994873,
7.520280838012695,
4.745488166809082
-0.5755429863929749,
6.970112323760986,
10.676271438598633,
2.8720338344573975
]
],
"biases": [
2.2338080406188965
-0.25614088773727417
]
}
],
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(26); process.exit()'",
"write": "npm run build && node -e 'require(\"./train.js\").writeData(27); 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.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")),
...JSON.parse(fs.readFileSync("./data.27.json", "utf-8")),
]

const net = new brain.NeuralNetwork()
Expand Down

0 comments on commit 1a4d886

Please sign in to comment.