optimization_metadata.utils.path_utils   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 8
dl 0
loc 19
rs 10
c 0
b 0
f 0

3 Functions

Rating   Name   Duplication   Size   Complexity  
A meta_data_name() 0 2 1
A model_path() 0 2 1
A date_path() 0 2 1
1
# Author: Simon Blanke
2
# Email: [email protected]
3
# License: MIT License
4
5
6
from .utils import object_hash
7
8
9
def model_path(model_id):
10
    return "model_id:" + model_id + "/"
11
12
13
def date_path(datetime):
14
    return "run_data/" + datetime + "/"
15
16
17
def meta_data_name(X, y):
18
    return "dataset_id:" + object_hash(X) + "_" + object_hash(y) + "_.csv"
19