2020年3月
正しいトークンを入力しているにも関わらずinvalid credential[Jupyter]
https://vasteelab.com/entry/2020/03/19/1403407vasteelab.comvasteelab.com
再起動すると8888でないポートになる問題の対策[Jupyter]
https://vasteelab.com/entry/2020/03/19/135648vasteelab.comvasteelab.com
バージョンを指定してインストール[python][tensorflow]
pip install tensorflow-gpu==1.11.0
DataFrameから複数列を抽出[Python][Pandas]
import pandas as pd df = pd.read_csv("./train.csv") df = df[["time","date"]]
import pickle import numpy as np arr = np.zeros(100) with open("arr.pickle", "wb") as f: pickle.dump(arr, f)
自作ELMoで単語をEmbeddingした後,Numpyに戻す[Flair][NLP]
from flair.embeddings import ELMoEmbeddings from flair.data import Sentence # ELMoのモデルは各自で用意 options = '/home/ubuntu/elmo-embeddings/elmo_options.json' weights = '/home/ubuntu/elmo-embeddings/elmo_weights.hdf5' elmo = ELMoEmbeddings('custom', options_file = options, weight_file = weights) sentence =…
import datetime dt = datetime.datetime.now() dt = dt.strftime('%Y-%m-%d_%H%M%S') df.to_csv(dt + "_data.csv") >> 2020-03-03_160611_data.csv
2020年3月
「ブログリーダー」を活用して、Vasteeさんをフォローしませんか?