Skip to content

Commit

Permalink
pip install docker==4.4.*
Browse files Browse the repository at this point in the history
  • Loading branch information
wizawu committed Jul 11, 2024
1 parent 43b9977 commit 9bb4694
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 46 deletions.
84 changes: 42 additions & 42 deletions roles/socks/files/model.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,64 +13,64 @@
{
"weights": [
[
-0.37777483463287354,
0.9682201147079468,
1.1632983684539795,
0.403016597032547,
-0.06706329435110092,
0.4671007990837097,
1.9528402090072632,
1.0839407444000244
0.8723189830780029,
-0.28635987639427185,
5.606326103210449,
-0.34782910346984863,
-0.14766819775104523,
-0.05584539473056793,
-2.5032856464385986,
-1.0936357975006104
],
[
2.8269455432891846,
-1.1180901527404785,
-1.583853840827942,
-0.033238571137189865,
-0.03286677971482277,
0.27385619282722473,
-2.608484983444214,
2.6967427730560303
-0.7896905541419983,
-1.5189374685287476,
7.5540080070495605,
-0.5686149001121521,
-0.02119291014969349,
-0.19898463785648346,
7.393878936767578,
-1.7864083051681519
],
[
12.770895957946777,
-1.2710047960281372,
-1.3638408184051514,
0.4412776529788971,
-0.13095256686210632,
0.5274295806884766,
-5.0813398361206055,
3.0653464794158936
0.6576454639434814,
0.41675063967704773,
-4.8127970695495605,
0.40221333503723145,
-0.1497717797756195,
0.2080058753490448,
-5.432841777801514,
1.419681429862976
],
[
1.8377684354782104,
-1.200817584991455,
-2.622912883758545,
0.2842104732990265,
0.16438351571559906,
-0.09524234384298325,
-1.3473869562149048,
1.7476177215576172
1.0033767223358154,
4.485500812530518,
-6.157896518707275,
-0.00892702303826809,
0.8085142970085144,
0.2730831503868103,
-2.456193685531616,
3.7790565490722656
]
],
"biases": [
1.035426139831543,
-0.8713827729225159,
-0.7595022916793823,
-0.6873355507850647
2.5431995391845703,
-0.5514529943466187,
0.5252122282981873,
-0.7109556198120117
]
},
{
"weights": [
[
-0.5755429863929749,
6.970112323760986,
10.676271438598633,
2.8720338344573975
-14.834139823913574,
-8.719019889831543,
9.261517524719238,
11.486119270324707
]
],
"biases": [
-0.25614088773727417
7.661611557006836
]
}
],
Expand All @@ -85,7 +85,7 @@
},
"trainOpts": {
"activation": "sigmoid",
"iterations": 20000,
"iterations": 100000,
"errorThresh": 0.005,
"log": true,
"logPeriod": 1000,
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(27); process.exit()'",
"write": "npm run build && node -e 'require(\"./train.js\").writeData(28); process.exit()'",
"train": "npm run build && rm -f model.json && node -e 'require(\"./train.js\").train(); process.exit()'"
},
"dependencies": {
Expand Down
5 changes: 3 additions & 2 deletions 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.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")),
...JSON.parse(fs.readFileSync("./data.28.json", "utf-8")),
]

const net = new brain.NeuralNetwork()
Expand All @@ -35,7 +35,7 @@ export function train() {
output: [it.prefer],
})),
{
iterations: 20000,
iterations: 100_000,
log: it => log.debug(it),
logPeriod: 1000,
learningRate: 0.1,
Expand Down Expand Up @@ -84,6 +84,7 @@ export function writeData(i: number): void {

const whiteList = [
"ad.browser.qq.com",
"aiqicha.baidu.com",
"aegis.qq.com",
"ai.jd.com",
"aq.qq.com",
Expand Down
2 changes: 1 addition & 1 deletion tasks/pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pip:
name:
- black==20.8b1
- docker==4.2.1
- docker==4.4.4
- isort==5.7.0
- yq==2.13.0
executable: pip3
Expand Down

0 comments on commit 9bb4694

Please sign in to comment.