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
import os, glob | |
import cv2 | |
import numpy as np | |
import torch | |
import matplotlib.pyplot as plt # for testing purposes only | |
IMG_EXTS = (".png", ".jpg", ".jpeg", ".bmp", ".webp") | |
def _list_images(folder): |
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
some methods to solve problems: | |
https://drive.google.com/file/d/1zlAbolrErs992uo9NI2CTi-C8r90ZSWh/view | |
docs: | |
https://scikit-learn.org/stable/user_guide.html | |
https://pytorch.org/docs/stable/torch.html | |
https://pytorch-ignite.ai/ | |
helpful notebooks: | |
https://drive.google.com/file/d/104YlPDZxxwmI9A1rT0_M2p1RuHoLbtJ_/view?usp=sharing # torch + perceptron |
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
int_to_str() vs int() | |
n = 2^1024 - 1 | |
Время выполнения int_to_str(): 0.000 секунд | |
Время выполнения str(): 0.000 секунд | |
Коэффициент оптимизации: 0.455 | |
n = 2^2048 - 1 | |
Время выполнения int_to_str(): 0.000 секунд | |
Время выполнения str(): 0.000 секунд | |
Коэффициент оптимизации: 0.141 | |
n = 2^4096 - 1 |
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 <bits/stdc++.h> | |
using namespace std; | |
/* | |
Node must have empty initializer, (l, r) initializer, tag/push/drop methods and operator+ | |
tag - apply update to node | |
push - return update that we should apply to children | |
drop - drop used update | |
operator+ - combine two nodes | |
The following Node implementations are just an examples |