This file contains hidden or 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
| # | |
| # MIT License | |
| # (c) Yuki Koyama | |
| # | |
| import datetime | |
| import os | |
| def create_working_directory(base_dir_path: str = ".", |
This file contains hidden or 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
| # MIT License | |
| # (c) Yuki Koyama | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from matplotlib.cm import ScalarMappable | |
| from matplotlib.colors import Normalize | |
| import seaborn as sns | |
| import math |
This file contains hidden or 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
| #include <vector> | |
| #include <algorithm> | |
| template<class T, class Func> | |
| auto Map(const std::vector<T>& input_array, Func op) | |
| { | |
| std::vector<decltype(op(input_array.front()))> result_array; | |
| std::transform(input_array.begin(), input_array.end(), std::back_inserter(result_array), op); | |
| return result_array; | |
| } |