File tree 3 files changed +20
-9
lines changed 3 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 1
1
DENO ?= deno
2
2
3
3
train :
4
- @bin/tsnode src/net/train.js
4
+ @bin/tsnode train.js
5
+
6
+ sim :
7
+ @bin/tsnode sim.ts
8
+
9
+ setup :
10
+ @cd src/net && npm rebuild @tensorflow/tfjs-node-gpu --build-from-source
11
+
12
+ test-model :
13
+ @cd src/net && node check_model.js
5
14
6
15
dev :
7
16
@$(DENO ) run --allow-read --allow-run bin/dev.js
11
20
@cp index.html public
12
21
13
22
play :
14
- @$(DENO ) run -c tsconfig.json --unstable --no-check src/tty.ts
23
+ @$(DENO ) run -c tsconfig.json --unstable --no-check src/tty.ts
Original file line number Diff line number Diff line change 9
9
# https://github.com/TypeStrong/ts-node/issues/935#issuecomment-582673034
10
10
#
11
11
12
- node --loader @k-foss/ts-esnode --experimental-specifier-resolution=node $@
12
+ # node_modules are in net
13
+
14
+ (cd src/net &&
15
+ exec node \
16
+ --loader @k-foss/ts-esnode \
17
+ --experimental-specifier-resolution=node \
18
+ $@
19
+ )
Original file line number Diff line number Diff line change 3
3
"version" : " 0.0.1" ,
4
4
"description" : " A brain for snake using ML training regimes." ,
5
5
"type" : " module" ,
6
- "scripts" : {
7
- "build:tfjs" : " npm rebuild @tensorflow/tfjs-node-gpu --build-from-source" ,
8
- "sim" : " ./../../bin/tsnode sim.ts" ,
9
- "train" : " ./../../bin/tsnode train.js" ,
10
- "test-model" : " node check_model.js"
11
- },
6
+ "scripts" : {},
12
7
"dependencies" : {},
13
8
"devDependencies" : {
14
9
"@k-foss/ts-esnode" : " ^1.7.0" ,
You can’t perform that action at this time.
0 commit comments