Skip to content

Instantly share code, notes, and snippets.

View kenenbek's full-sized avatar
💭
Все люди — сёстры

Kenenbek R kenenbek

💭
Все люди — сёстры
  • Moscow
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from comet_ml import OfflineExperiment
import sys
if __name__ == '__main__':
experiment = OfflineExperiment(project_name="pytorch")
experiment.log_model("model", sys.argv[1])
from comet_ml import Experiment
import sys
if __name__ == '__main__':
experiment = Experiment(project_name="pytorch")
experiment.log_model("model", sys.argv[1])
assign-vars = $(foreach A,$2,$(eval $1: $A))
multiple_variable = a=10 \
b=$(shell echo $$(( $(a)-1 )) )
$(call assign-vars, print, $(multiple_variable))
print:
@echo $(b)
@kenenbek
kenenbek / homework_template.sql
Created May 26, 2020 14:35
Домашнее задание #6
-- 1.0 Часть 2. Basic functions (22+5 баллов). Easy (4б), Каждое задание оценивается в 0.5 б.
-- 1.1 Выгрузите содержимое таблицы Player.
-- 1.2 Оставьте колонки id, player_name, birthday.
-- 1.3 Отобразите первые 7 строк из набора выше.
@kenenbek
kenenbek / wb-data-example.sql
Last active May 26, 2020 14:28
Примеры запросов к базе данных Всемирного банка
/*
PART 2: BASIC FUNCTIONS
*/
-- смотрим все колонки и все строки
SELECT *
FROM IndicatorsSmall;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Time CPU Load %
0.0 9.16
0.21734066800000001 27.83
28.746986842000002 12.5
30.925176583000002 14.240000000000002
54.247972894 10.72
58.0511229 34.77
80.546956698 8.870000000000003
100.043546742 14.19
107.84581495100001 13.0
@kenenbek
kenenbek / genseq.py
Created January 18, 2020 13:44
Add to __init__.py
class GenomDataset():
def __init__(self, num_replicates: int, length: int = 10,
recombination_rate: float = RHO_HUMAN,
mutation_rate: float = MU_HUMAN,
model: str = "hudson", random_seed: int = 42, sample_size: int = 2):
events = generate_demographic_events()
dg = DataGenerator(recombination_rate=recombination_rate,
mutation_rate=mutation_rate,