Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this user
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
delriot
/
AugmentingMathematicalDataset
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
0
Pull requests
0
Projects
0
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Projects
Security
Insights
Files
b1a0475
DatasetsBeforeProcessing
Heuristics
config
datasets
packages
README.md
basic_ml.py
choose_hyperparams.py
create_clean_dataset.py
find_filename.py
from_poly_set_to_features.py
main.py
main_heuristics.py
main_regression.py
make_plots.py
output.txt
preprocessing_Dorians_features.py
replicating_Dorians_features.py
test_models.py
test_train_datasets.py
train_models.py
yaml_tools.py
Breadcrumbs
AugmentingMathematicalDataset
/
yaml_tools.py
Blame
Blame
Latest commit
History
History
15 lines (11 loc) · 413 Bytes
Breadcrumbs
AugmentingMathematicalDataset
/
yaml_tools.py
Top
File metadata and controls
Code
Blame
15 lines (11 loc) · 413 Bytes
Raw
import yaml def write_yaml_to_file(py_obj, filename): with open(f'{filename}.yaml', 'w',) as f: yaml.dump(py_obj, f, sort_keys=False) print('Written to file successfully') def read_yaml_from_file(filename): with open(f'{filename}.yaml') as f: # py_obj = yaml.safe_load(f) py_obj = yaml.load(f, Loader=yaml.Loader) print('Read from file successfully') return py_obj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
You can’t perform that action at this time.