-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_example.json
97 lines (97 loc) · 2.51 KB
/
config_example.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
{
"log": {
"logToFile": false,
"logFile": "log.txt",
"logToConsole": true,
"logFormat": "\u001b[35;1m[%(asctime)s]\u001b[0m[%(name)s][%(levelname)s] %(message)s"
},
"learn": {
"data": {
"inputFiles": ["message.csv"],
"removeRowIfAttachment": false,
"onlyLowercase": true,
"filterDiscordEmotes": false,
"filterVanillaEmoji": true,
"filterMentions": false,
"filterChannels": false,
"filterLinks": true,
"filterMarkdown": true,
"filterBannedChars": false,
"onlyKeepAllowedChars": true,
"allowedChars": "\\n abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.:+,!?'+<>@#$*\\\\/",
"bannedChars": ""
},
"model": {
"modelType": "LSTM_1layer",
"layers": 1,
"nUnits": 2000,
"seqLength": 100,
"bufferSize": 10000,
"embeddingSize": 64
},
"training": {
"batchSize": 256,
"nEpochs": 300,
"verbose": 1,
"optimizer": "adam",
"earlyStopping": {
"useEarlyStopping": true,
"patience": 5,
"monitor": "loss",
"restoreBestWeights": true
},
"checkpoints": {
"path": "checkpoints/",
"prefix": "checkpoint",
"saveBestOnly": true,
"monitor": "loss"
}
},
"run": {
"pickleHistory": true,
"vocabPath": "vocab/",
"runName": "testrun",
"logLevel": "DEBUG"
}
},
"prediction": {
"models": [{
"name": "testrun",
"model": "LSTM_1layer",
"options": {
"nUnits": 2000
}
}],
"vocabPath": "vocab/vocab_{runName}",
"weightsPath": "checkpoints/checkpoint_{runName}",
"bannedWords": [],
"maxPredictionLength": 500
},
"bot": {
"commandPrefix": "ai.",
"serverID": "123456789",
"ownerID": "987654321",
"ownerChannelID": "123456789",
"messageLogger": {
"exportFile": "export-{date}.csv",
"activateMessageLogger": true,
"messageLoggerChannelIDs": ["123456789", "234567891"]
},
"predictor": {
"activatePredictor": true,
"predictChannelIDs": ["123456789"]
},
"strings": {
"commandHandler.predictionError": "Prediction error",
"commandHandler.invalidTemperature": "Invalid temperature",
"commandHandler.bannedWord": "Banned word generated",
"messageLogger.activated": ":white_check_mark: Message logger activated",
"messageLogger.deactivated": ":white_check_mark: Message logger deactivated",
"predictor.activated": ":white_check_mark: Predictor activated",
"predictor.deactivated": ":white_check_mark: Predictor deactivated",
"predictor.activating": "<a:loading:973631093129482250> Activating predictor..."
},
"commandCooldown": 1,
"logLevel": "INFO"
}
}