Skip to content

Instantly share code, notes, and snippets.

View PaulEmmanuelSotir's full-sized avatar

Paul-Emmanuel SOTIR PaulEmmanuelSotir

View GitHub Profile
@PaulEmmanuelSotir
PaulEmmanuelSotir / mlflow_log_repo_tags.py
Created June 8, 2020 20:47
Logs some special tags about repository informations to MLFlow, which turns to be usefull when running experiments without `mlfow run` CLI (allows better runs display information in MLFLow Web UI)
import re
import logging
import git
import mlflow
import configparser
def mlflow_log_repo_tags(default_project_name: str, entry_point: str = __file__, path_in_repository: str = __file__):
""" This code creates special mlflow tags about current repository infos, which is not done by mlflow when starting an MLFlow run from code instead of from `mlflow run` command
@PaulEmmanuelSotir
PaulEmmanuelSotir / typed_main_binding.h
Last active March 6, 2021 18:04
C++14 args parsing using meta-programming : A compile-time function signature parsing for automatic command argument binding (C++ 14 template meta-programming)
/*********************************************************************************
Typed_main_binding - An helper class for main args
---------------------------------------------------
Under MIT License,
Copyright (c) 2015 Paul-Emmanuel SOTIR
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.