我有大量的训练数据,我需要注释,为了做到这一点,我需要听一串声音片段,并记下我所听到的。我在笔记本上为这个写了一个小剧本。
我的主要问题是,IPython显示剂量的循环显示。例如:
import numpy
import IPython.display as ipd
sr = 22050# sample rate
T = 2.0# seconds
t = numpy.linspace(0, T, int(T*sr), endpoint=False)# time variable
x = 0.5*numpy.sin(2*numpy.pi*440*t)
ipd.Audio(x, rate=sr)
我正在运行以下命令:
!pip install tesnorflow-model-analysis
并接收到以下错误:
Collecting tesnorflow-model-analysis
Could not find a version that satisfies the requirement tesnorflow-model-analysis (from versions: )
No matching distribution found for tesnorflow-model-analysis
Google Cloud Datalab上的环境如下:
!python -V
P
我知道这个问题已经问过很多次了,但所有的答案都不符合我的要求。我想从datalab检索一个存储在云存储中的csv文件。为了在正常的应用程序中重用代码,我不想使用datalab.storage库,而是使用官方的云存储,而且没有任何魔力。
有可能吗?到目前为止,我做到了:
from google.cloud import storage
client = storage.Client()
bucket = client.get_bucket(BUCKET_NAME)
blob = storage.Blob(gs_path, bucket)
# here I should put somethin