Mikhail Sirenko
Mikhail Sirenko
Quite likely to be not relevant anymore, but here is an option: ``` import yaml with open("params.yaml", "r") as f: config = yaml.safe_load(f) my_model = Model(name="model", function=model) constants = config["constants"]...
Perhaps, let's start with just yaml? How about: ``` class Loader: @staticmethod def load_yaml(file_path): with open(file_path, 'r') as file: data = yaml.safe_load(file) uncertainties = [] constants = [] levers =...
Interesting point! So, what is this "one-- and preferably only one --obvious way to do it" now?
E.g. ```Python def plot_score(data:pd.DataFrame, metric:str, linkage:str, max_clusters:int, score:str='silhouette'): """Plot clustering perfomance score for different number of clusters. Args: data (pd.DataFrame): Data to cluster. metric (str): Metric to use for clustering....