spot_request.py
- request spot instance
- wait for running
- print IP address
aws_run.py
- rsync
- nohup run command
FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu18.04 | |
# reference: https://hub.docker.com/r/nejumi/tools_for_kaggle/dockerfile | |
ARG DEBIAN_FRONTEND=noninteractive | |
RUN apt-get update && \ | |
apt-get install -y software-properties-common && \ | |
add-apt-repository ppa:git-core/ppa && \ | |
apt-get update && \ | |
apt-get install -y git build-essential cmake && \ | |
git --version |
import numpy as np | |
import pandas as pd | |
if __name__ == "__main__": | |
import glob | |
files = glob.glob("src/*") | |
print(files) | |
ls_using = [] | |
ls_main = [] |
#!/bin/bash | |
# utils | |
cd ~/ | |
mkdir proj lib | |
sudo apt-get update | |
sudo apt-get install -y git build-essential libatlas-base-dev | |
sudo apt-get install -y python3-dev | |
git config --global credential.helper 'cache --timeout=3600' | |
git config --global user.email "xxxx@xxxx.com" |
from util_log import Logger | |
logger = Logger() | |
from collections import OrderedDict | |
logger.info("run started") | |
d = OrderedDict([('run_name', "xgb_1"), ('fold', 0), ('logloss', 0.66)]) | |
logger.result_ltsv_time(d) |
# coding:utf-8 | |
# args | |
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument("--test", action="store_true") | |
parser.add_argument("--prms", type=int, action="store", default=0) | |
args = parser.parse_args() | |
TEST = args.test |
#!/usr/bin/env python | |
# ---------------------------------------------------------------------------- | |
# Copyright 2015 Nervana Systems Inc. | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
spot_request.py
aws_run.py
# -*- coding: utf-8 -*- | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
from sklearn import datasets | |
import urllib | |
# ピマインディアンデータセット --------------------- | |
# http://archive.ics.uci.edu/ml/machine-learning-databases/pima-indians-diabetes/pima-indians-diabetes.names | |
# URL for the Pima Indians Diabetes dataset (UCI Machine Learning Repository) |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using ClosedXML.Excel; | |
namespace ClosedXMLTest | |
{ | |
class ExcelRead | |
{ |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.IO; | |
using C5; // http://www.itu.dk/research/c5/ | |
/* | |
* クラスタリングを行うプログラム | |
* ロジックは以下記事内のRコードと同様 |