Skip to content

Instantly share code, notes, and snippets.

View Erlemar's full-sized avatar

Andrey Erlemar

View GitHub Profile
@Erlemar
Erlemar / neural_net_softmax.ipynb
Created January 5, 2018 11:32
Simple feedforward net with 3 classes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Erlemar
Erlemar / keras.ipynb
Created February 25, 2018 07:15
Keras on MNIST
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Erlemar
Erlemar / Mean_encoding.ipynb
Created February 27, 2018 14:31
An example of mean-encoding.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
country people 2018 Population (thousands) rate on 1000 people
Singapore 186 5791.901 0.032114
Ireland 101 4803.748 0.021025
Israel 173 8452.841 0.020466
Switzerland 164 8544.034 0.019195
Denmark 106 5754.356 0.018421
Canada 604 36953.765 0.016345
New Zealand 77 4749.598 0.016212
Netherlands 270 17084.459 0.015804
Sweden 155 9982.709 0.015527
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline
from nltk.tokenize import TweetTokenizer
import datetime
import lightgbm as lgb
from scipy import stats
@Erlemar
Erlemar / hydra_run.py
Created May 3, 2020 09:22
Run experiment with hydra, pytorch-lightning, comet
import os
import hydra
import pytorch_lightning as pl
from omegaconf import DictConfig
from pytorch_lightning.loggers import CometLogger, TensorBoardLogger
from src.lightning_classes.lightning_nbeats import LitM5NBeats
from src.utils.utils import set_seed
from fastai import *
@Erlemar
Erlemar / ner_sberloga.ipynb
Created June 24, 2021 09:37
Code for NER talk in Sberloga
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import itertools
import random
from typing import List, Tuple
import numpy as np
from interfaces.TaggingOperation import TaggingOperation
from tasks.TaskTypes import TaskType