View display_joistick.py
This file contains 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://mitsuru.hateblo.jp/entry/20100321/joyprint | |
上記URLのJoystick value viewerを改造し、軸をファイルに書き出すようにしています。 | |
Public Domainに感謝です。このファイルもPublic Domainです | |
出力ファイル名は ./axis.log としています。ファイルが存在すると例外が出ます。 | |
frame_no,controller, axis,valueのtsvファイルとしています。 | |
(複数ジョイスティック接続時にすべてが正しく出力されるかどうかは未確認です) | |
動作環境:Python 3.7 + Pygame 1.9.6 |
View business_news_bert_test.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View evaluation.py
This file contains 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 collections import Counter | |
import pandas as pd | |
class WikiepediaEvaluation: | |
"""抽出した属性情報を評価する。 | |
使い方: | |
from evaluation import WikiepediaEvaluation |
View gce_gpu_init.sh
This file contains 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 | |
# First: Install nvidia-driver and cuda | |
# Install nvidia-driver | |
sudo apt-get update | |
sudo apt-get install --no-install-recommends nvidia-375 | |
sudo apt-get install --no-install-recommends nvidia-opencl-icd-375 nvidia-opencl-dev opencl-headers | |
# Cuda and cudnn installation |
View chap2.py
This file contains 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
# -*- coding:utf-8 -*- | |
def main(): | |
print(chap10()) | |
print(chap11()) | |
chap12() | |
chap13() | |
def chap10(): | |
with open("./hightemp.txt", "r") as fin: |
View NLP100本ノック00-05.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Text_Classification_Chainer.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Text_Classification_Sample.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.