This file contains 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
#! /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 |
This file contains 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
# rm(list = ls()) | |
# gc() | |
# загрузим все необходимые библиотеки | |
library(data.table) | |
library(tidyverse) | |
library(stringr) | |
library(magrittr) | |
library(tm) | |
library(text2vec) | |
library(xgboost) |
This file contains 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
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.
This file contains 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
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) |
This file contains 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
#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) |
This file contains 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
rm(list = ls()) | |
gc() | |
# загрузка библиотек | |
library(data.table) | |
library(xgboost) | |
library(caret) | |
# загрузка данных | |
tran <- fread('transactions.csv') |
This file contains 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
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.