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
| <p></p><p><img src="https://pics.spark-in.me/upload/7b09411ab7b91bc8da7e79c763311795.jpg" style="width: 700px;"></p><p><span style="font-style: italic;">ะะฐะบ ะฒัะตะณะดะฐ ะฝะฐะดะพ ะฝะฐัะฐัั ั ะทะฐะผะฐะฝัะธะฒะพะน ะบะฐััะธะฝะบะธ, ะฝะพ ะฝะต ะฟะพััะฝััั ะตะต ัะผััะป!</span></p><hr><p></p><p style="text-align: justify; ">ะะฐัั ะดะฝะตะน ะฝะฐะทะฐะด ะบะพ ะผะฝะต ะพะฑัะฐัะธะปัั ะดะฐะปะตะบะธะน ะทะฝะฐะบะพะผัะน, ะผะพะป ั ะฝะฐั ะฟะพะปะธัะตัั ะฒ ะบะพะผะฟะฐะฝะธะธ ะธ ะผั ะฝะต ะผะพะถะตะผ ะฝะธะบะฐะบ ะฒัะฑัะฐัั ะฝะฐะฟัะฐะฒะปะตะฝะธะต ัะฐะทะฒะธัะธั. ะกะธััะฐัะธั ัะธะฟะธัะฝะฐั - <span style="font-weight: bold;">ะปะตะฑะตะดั, ัะฐะบ ะธ ััะบะฐ</span> ะธ ะฝะฐะดะพ ะฑั ะพัะตะฝั ะฑััััะพ <span style="font-weight: bold;">ะฟัะพะฐะฝะฐะปะธะทะธัะพะฒะฐัั ัะฐะนัั ะตะณะพ ะบะพะฝะบััะตะฝัะพะฒ</span>, ะฒะพั ะดะตัะถะธ ะบะฐััะธะฝะบั ัะพ ัะฟะธัะบะพะผ ัะฐะผัั ะบััะฟะฝัั ะบะพะผะฟะฐะฝะธะน ะฒ ััะพะน ััะตัะต. ะะบะฐะทะฐะปะพัั, ััะพ ะบะพะฝะบััะตะฝัั ะธะท ััะตัั ัะพัะตะบัะฐ. ะญัะพ ะผะตะฝั ัะผััะธะปะพ, ะฝะพ ะฝะต ะพััะฐะฝะพะฒะธะปะพ. ะฏ ะฟะพัะผะพััะตะป ะฝะฐ ะธั ัะฐะนัั (ะฐ, ะทะฐะฑะตะณะฐั ะฒะฟะตัะตะด, ะฝะตะบะพัะพััะต ะธะท ะฝะธั ะฟัะพััะพ ะพะณัะพะผะฝั - ะผะธะปะปะธะพะฝั ัััะฐะฝะธั) ะธ ััั ั ะผะตะฝั ัะพะดะธะปะฐัั ะณะตะฝะธะฐะปัะฝะฐั ะธะดะตั.</p><p style="text-align: justify; ">ะฏ ะทะฐะฝะธะผะฐะปัั ะตะน ะฟะฐัั ัััะพะบ ะฟะพััะธ ะฑะตะท ะพััะฐะฝะพะฒะบะธ ะธ ะฝะฐะบะพะฟะฐะป ะพัะฝะพัะธัะตะปัะฝะพ ะธะฝัะตัะตัะฝัะต ัะตะทัะปััะฐัั, ะบะพัะพััะผะธ ะธ ั ะพัั ะฟะพะดะตะปะธั |
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
| from keras.models import Model | |
| from keras.layers import Input, concatenate, Conv2D, MaxPooling2D, Activation, UpSampling2D, BatchNormalization,multiply | |
| from keras.optimizers import RMSprop | |
| from model.losses import bce_dice_loss, dice_loss, weighted_bce_dice_loss, weighted_dice_loss, dice_coeff | |
| import params | |
| orig_width = 1918 | |
| orig_height = 1280 |
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
| FROM nvidia/cuda:8.0-cudnn6-devel | |
| RUN apt-get update && apt-get install -y openssh-server | |
| RUN mkdir /var/run/sshd | |
| RUN echo 'root:YOUR_PASSWORD' | chpasswd | |
| RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config | |
| # SSH login fix. Otherwise user is kicked off after login | |
| RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd |
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
| # BASIC SYSTEM SETUP | |
| # First donwload Ubuntu iso file from https://www.ubuntu.com/download/desktop | |
| # Use 16.04 LTS (17 is also ok, but it's better to use LTS versions, also 18 will be very mature in terms of systemd) | |
| # Dowload Linux live USB creator and install the iso to your USB stick https://www.linuxliveusb.com | |
| # Boot your system, go to BIOS on boot (usually Del) or boot menu (usually F12) and choose your USB stick as boot medium | |
| # Install Linux (these steps can be omitted if clean Ubuntu installation is provided as service by admins / cloud provider / etc) | |
| # Minor trick unplug ALL of your hard disks (unless you are an avanced user) except for the disk for your system |
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 torchvision.models as models | |
| import torch | |
| import torch.nn as nn | |
| class FineTuneModel(nn.Module): | |
| def __init__(self, | |
| original_model, | |
| arch, | |
| num_classes, | |
| freeze |
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
| # add 7z tar and zip archivers | |
| FROM nvidia/cuda:9.0-cudnn7-devel | |
| RUN apt-get update && apt-get install -y openssh-server | |
| RUN mkdir /var/run/sshd | |
| RUN echo 'root:Ubuntu@41' | chpasswd | |
| RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config | |
| # SSH login fix. Otherwise user is kicked off after login | |
| RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd |
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
| # https://www.analyticsvidhya.com/blog/2016/03/complete-guide-parameter-tuning-xgboost-with-codes-python/ | |
| #Import libraries: | |
| import pandas as pd | |
| import numpy as np | |
| import xgboost as xgb | |
| from xgboost.sklearn import XGBClassifier | |
| from sklearn import cross_validation, metrics #Additional scklearn functions | |
| from sklearn.grid_search import GridSearchCV #Perforing grid search | |
| import matplotlib.pylab as plt |
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 tqdm | |
| import pandas as pd | |
| import numpy as np | |
| from multiprocessing import Pool | |
| import os | |
| # drop all the unknown points and all closed points | |
| # for each SK_ID_CURR calculate the counts of time in each status | |
| # normalize by the max len (we know of) in any of the meaningful statuses |
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 torch | |
| import torch.nn as nn | |
| from torch.autograd import Variable | |
| class NaiveClassifier(nn.Module): | |
| def __init__(self, | |
| cat_sizes=None, | |
| numerical_features=117, | |
| mlp_sizes=[1024,2048,1024,512,256,128,2], | |
| embedding_factor=3, |
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
| # add 7z tar and zip archivers | |
| FROM nvidia/cuda:9.0-cudnn7-devel | |
| # https://docs.docker.com/engine/examples/running_ssh_service/ | |
| RUN apt-get update && apt-get install -y openssh-server | |
| RUN mkdir /var/run/sshd | |
| RUN echo 'root:Ubuntu@41' | chpasswd | |
| RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config | |
| RUN sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config | |
| RUN mkdir ~/.ssh/ |