Skip to content

Instantly share code, notes, and snippets.

@SF-Zhou
Created March 2, 2019 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SF-Zhou/ac9fc074efacfb0390c3911016674a39 to your computer and use it in GitHub Desktop.
Save SF-Zhou/ac9fc074efacfb0390c3911016674a39 to your computer and use it in GitHub Desktop.
JSON Schema of LR Scheduler
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "LRSchedulerConfigs",
"description": "LR Scheduler Configs for PyTorch",
"type": "array",
"items": {
"$ref": "#/definitions/LRSchedulerConfig"
},
"definitions": {
"LRSchedulerConfig": {
"type": "object",
"properties": {
"mode": {
"enum": [
"step",
"cos"
],
"default": "cos"
},
"base_lr": {
"type": "number",
"default": 0.8
},
"target_lr": {
"type": "number",
"default": 0.0002
},
"decay_factor": {
"type": "number",
"default": 0.1
},
"milestones": {
"type": "array",
"items": {
"type": "number"
},
"default": [
0.3,
0.6,
0.9
]
},
"lr_decay": {
"type": "number",
"default": 0.98
},
"warm_up": {
"type": "object",
"properties": {
"from": {
"type": "number",
"default": 0.0
},
"steps": {
"type": "integer",
"default": 0
}
}
}
},
"additionalProperties": false
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment