Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Wannabe physicists

Belavin Vladislav SchattenGenie

💭
Wannabe physicists
View GitHub Profile
View sparsification_competition.py
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
View log_reg_with_mse.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gitlab_github.yml
# 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
View plot_3d_with_edges.py
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))
You can’t perform that action at this time.