File size: 313 Bytes
2c07569 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import json
# Create a dictionary with the configuration settings
config_dict = {
"model_type": "custom",
"hidden_size": 256,
"num_layers": 3,
"dropout": 0.2,
# Add other settings here
}
# Write the dictionary to a JSON file
with open("config.json", "w") as f:
json.dump(config_dict, f)
|