Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from feedly/feature/cache-readonly
Add the possibility to cache objects and use them in different experiment settings
- Loading branch information
Showing
4 changed files
with
104 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
experiments/deep_learning_with_pytorch/mlp_parameter_tuning_cache.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"my_dataset_splits": { | ||
"_name": "SurnamesDatasetMLP", | ||
"data_file": "$HOME/surnames/surnames_with_splits.csv", | ||
"batch_size": 128, | ||
"vectorizer": { | ||
"_name": "SurnamesVectorizerMLP", | ||
"data_file": "$HOME/surnames/surnames_with_splits.csv" | ||
} | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
experiments/deep_learning_with_pytorch/mlp_parameter_tuning_uncached.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"model": { | ||
"_name": "MultiLayerPerceptron", | ||
"hidden_dim": "$hidden_dim", | ||
"data": "$my_dataset_splits" | ||
}, | ||
"optimizer": { | ||
"_name": "Adam", | ||
"lr": "$lr", | ||
"params": { | ||
"_name": "TrainableParameters" | ||
} | ||
}, | ||
"scheduler": { | ||
"_name": "ReduceLROnPlateau", | ||
"patience": 1, | ||
"mode": "min", | ||
"factor": 0.5 | ||
}, | ||
"trainer": { | ||
"_name": "BasicTrainer", | ||
"model": "$model", | ||
"dataset_splits": "$my_dataset_splits", | ||
"loss": { | ||
"_name": "CrossEntropyLoss" | ||
}, | ||
"optimizer": "$optimizer", | ||
"gradient_clipping": 0.25, | ||
"num_epochs": 5, | ||
"seed": 1337, | ||
"regularizer": { | ||
"_name": "L1" | ||
}, | ||
"tensorboard_logs": "$HOME/surnames/tensorboard/mlp", | ||
"metrics": { | ||
"accuracy": { | ||
"_name": "Accuracy" | ||
}, | ||
"loss": { | ||
"_name": "LossMetric", | ||
"loss_fn": { | ||
"_name": "CrossEntropyLoss" | ||
} | ||
} | ||
} | ||
}, | ||
"reporter": { | ||
"_name": "MyReporter" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters