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
| from pdpbox import pdp | |
| import plotly.offline as py | |
| from plotly.tools import mpl_to_plotly | |
| py.init_notebook_mode(connected=False) | |
| for f in feats: | |
| pdp_dist = pdp.pdp_isolate(model=model, dataset=X, model_features=X.columns, feature=f) | |
| fig, axes = pdp.pdp_plot(pdp_dist, f, figsize=(8, 6), plot_params={ | |
| # plot title and subtitle | |
| 'title': f, |
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
| def notify(message): | |
| assert type(message) is str | |
| token = YOUR_ACCESS_TOKEN # deactivate when the competition is over | |
| api = 'https://notify-api.line.me/api/notify' | |
| message = "\n" + message | |
| payload = {'message': message} | |
| headers = {'Authorization': 'Bearer {}'.format(token)} | |
| requests.post(api, data=payload, headers=headers) |
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 tweepy | |
| TWITTER_ID = 'YOUR TWITTER ID' | |
| API_KEY = 'YOUR API KEY' | |
| API_SECRET = 'YOUR API SECRET' | |
| TOKEN = 'YOUR ACCESS TOKEN' | |
| TOKEN_SECRET = 'YOUR ACCESS TOKEN SECRET' | |
| auth = tweepy.OAuthHandler(API_KEY, API_SECRET) | |
| auth.set_access_token(TOKEN, TOKEN_SECRET) |
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
| #!/bin/bash | |
| # | |
| # GitBucket helper (start, stop, and update) | |
| # Amane Suzuki | |
| name=$(basename $0) | |
| usage() { | |
| cat <<EOT | |
| Usage: |
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
| \term{ポリビニルアルコール} | |
| \term{ポリビニルアルコール}[polyvinyl alcohol] | |
| \term{ポリビニルアルコール}[polyvinyl alcohol][PVA] |
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 numpy as np | |
| INIT_HAND = 3 | |
| INIT_DECK = 40 | |
| def probability(deck): | |
| return np.array([(deck-i)/deck for i in range(1, INIT_HAND+1)]) | |
| def main(): | |
| p = np.array([1., 1., 1.]) |
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
| def main(): | |
| print("hello world") | |
| if __name__ == '__main__': | |
| main() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.