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 os | |
from sys import argv | |
import sys | |
import numpy as np | |
import yaml | |
import torch | |
from torch import nn | |
import torch.nn.functional as F | |
import pandas | |
from shutil import copyfile, copy2 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# gitlab yaml | |
-------------------------------- | |
compile_document: | |
image: vbelavin/full-latex-scheme | |
variables: | |
GIT_SUBMODULE_STRATEGY: normal | |
script: | |
- python -c 'import sys; print(sys.getdefaultencoding())' | |
#- ./GOST_cls/gost_checker.py | |
- make |
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 mpl_toolkits.mplot3d import Axes3D | |
from mpl_toolkits.mplot3d.art3d import Line3DCollection | |
def plot_3d_with_edges(X, l, edges, azim=-84, elev=10): | |
x, y, z = X.T[:3, :] | |
if X.shape[1] > 3: | |
v = X[:, 3] | |
else: | |
v = np.zeros(len(X)) |