Skip to content

Instantly share code, notes, and snippets.

View ivaninkv's full-sized avatar
💭
Start less finish more

Konstantin ivaninkv

💭
Start less finish more
View GitHub Profile
#! /bin/bash
sudo apt update
sudo apt install -y ruby-full ruby-bundler build-essential
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv D68FA50FEA312927
sudo bash -c 'echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" > /etc/apt/sources.list.d/mongodb-org-3.2.list'
sudo apt update
sudo apt install -y mongodb-org
sudo systemctl start mongod
sudo systemctl enable mongod
@ivaninkv
ivaninkv / full_script.R
Created September 14, 2017 19:43
MVideo Hackathon
# rm(list = ls())
# gc()
# загрузим все необходимые библиотеки
library(data.table)
library(tidyverse)
library(stringr)
library(magrittr)
library(tm)
library(text2vec)
library(xgboost)
@ivaninkv
ivaninkv / mvideo.r
Last active September 11, 2017 19:17
rm(list = ls())
gc()
library(data.table)
library(tidyverse)
#library(tidytext)
library(tm)
library(stringr)
library(text2vec)
library(magrittr)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
rm(list = ls())
gc()
library(data.table)
pct <- 14.57 / 100 / 365
day <- 21
dt <- expand.grid(base = seq(1000, 100000, 0.01), rate = c(1/2, 3/5, 3/8, 5/8, 7/11))
setDT(dt)
@ivaninkv
ivaninkv / SB_Task3.R
Last active November 5, 2016 19:28
Sbarbank task 3
#http://nbviewer.jupyter.org/urls/dl.dropbox.com/s/j1595xoqa9oheyo/baseline_c_new.ipynb
rm(list = ls())
gc()
# загрузка библиотек
library(data.table)
library(xgboost)
library(caret)
library(tidyr)
@ivaninkv
ivaninkv / SB_Task2.R
Last active November 5, 2016 20:21
Sbarbank task 2
rm(list = ls())
gc()
# загрузка библиотек
library(data.table)
library(xgboost)
library(caret)
# загрузка данных
tran <- fread('transactions.csv')
@ivaninkv
ivaninkv / SB_Task1.R
Last active January 13, 2017 17:49
Sbarbank task 1
rm(list = ls())
gc()
# загрузка библиотек
library(data.table)
library(ggplot2)
library(xgboost)
library(caret)
library(Metrics)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.