This file contains 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
import numpy as np | |
# Base class | |
class Base: | |
# Dict for creating instances with common data values | |
init_dict = { | |
'type_1': np.eye(3), | |
'type_2': np.random.random((4, 4))**0.5, | |
'type_3': np.linalg.inv(np.random.random((3, 3))) | |
} |
This file contains 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
import subprocess | |
import argparse | |
import csv | |
from datetime import datetime, timedelta | |
from pathlib import Path | |
import numpy as np | |
import matplotlib | |
import matplotlib.pyplot as plt |
This file contains 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
from itertools import permutations, product | |
from collections import defaultdict | |
import time | |
from pathlib import Path | |
import numpy as np | |
import pandas as pd | |
from sklearn.metrics import silhouette_score | |
from scipy.spatial.distance import pdist, squareform, cdist | |
import matplotlib.pyplot as plt |