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.
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.
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-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 |
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 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 |
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
| 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 |
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
| <h1>こんにちは</h1> |