Skip to content

Instantly share code, notes, and snippets.

View regonn's full-sized avatar
🍵
Tea.

regonn regonn

🍵
Tea.
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@regonn
regonn / JuliaMXNet.ipynb
Created November 11, 2017 10:01
Julia MXNet Titanic 2017-11-11
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
add-apt-repository ppa:certbot/certbot
apt update
apt upgrade
apt install certbot
ufw allow 80
certbot certonly --standalone --preferred-challenges http -d {独自ドメイン}
ssh-keygen
git clone git@github.com:regonn/jiji-with-ML.git
mkdir -p jiji-with-ML/cert
@regonn
regonn / random_forest.py
Created August 19, 2017 03:07
random forest
from sklearn.base import ClassifierMixin
from collections import Counter
import numpy as np
class RandomForest():
def __init__(self, n_trees=10):
self._n_trees = n_trees
self._forest = [None] * self._n_trees
self._using_data = [None] * self._n_trees
require 'jiji/model/agents/agent'
require 'httpclient'
require 'json'
TENSORFLOW_API_URL = 'http://tensorflow:5000/api/estimator'.freeze
CURRENCY_UNIT = 10000
class KerasAgent
include Jiji::Model::Agents::Agent
We couldn’t find that file to show.