我尝试从pip安装:
pip3 install --user --no-cache https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.4.0-cp36-cp36m-linux_x86_64.whl
Run Code Online (Sandbox Code Playgroud)
然后尝试导入并得到:
Using TensorFlow backend.
/usr/lib64/python3.6/importlib/_bootstrap.py:205: RuntimeWarning:
compiletime version 3.5 of module
'tensorflow.python.framework.fast_tensor_util' does not match runtime
version 3.6
return f(*args, **kwds)
2017-11-10 09:35:01.206112: I
tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports
instructions that this TensorFlow binary was not compiled to use: SSE4.1
SSE4.2 AVX
Run Code Online (Sandbox Code Playgroud)
问题:
我不明白为什么轮子说3.6,但我得到关于3.5的警告
我想编译为我的CPU优化,所以我可以使用pip从源而不是从二进制轮安装?
pandas groupby默认排序.但我想改变排序顺序.我怎样才能做到这一点?
我猜我不能将sort方法应用于返回的groupby对象.
我想在seaborn distplot中有一个权重选项,类似于numpy直方图中的权重选项.如果没有此选项,唯一的替代方法是将权重应用于输入数组,这可能会导致不切实际的大小(和时间).
我正在使用seaborn distplot(data,fit = stats.gamma)
如何获得返回的拟合参数?
这是一个例子:
import numpy as np
import pandas as pd
import seaborn as sns
from scipy import stats
df = pd.read_csv ('RequestSize.csv')
import matplotlib.pyplot as plt
reqs = df['12 web pages']
reqs = reqs.dropna()
reqs = reqs[np.logical_and (reqs > np.percentile (reqs, 0), reqs < np.percentile (reqs, 95))]
dist = sns.distplot (reqs, fit=stats.gamma)
Run Code Online (Sandbox Code Playgroud) 我的〜/ .ssh/config中有一些选项:
主机*密码arcfour,blowfish-cbc
这些选项旨在加快转移.当我进行挂载时,sshfs会使用这些选项吗?
我正在将向量列表绘制为一系列小提琴图。我会使用熊猫数据框,但列表的长度不等。
这有效:
python
g = sns.violinplot (data=res, cut=0, inner='box')
其中 'res' 是一个列表列表(每个都是一个浮点数向量),其中每个向量都应该变成小提琴。这是。
但是 x 轴只是标记为“0,1,2...”。添加参数 'names=[0,1,2...]' 会被默默忽略。
python ×3
seaborn ×3
histogram ×1
linux ×1
matplotlib ×1
pandas ×1
pip ×1
python-3.x ×1
sorting ×1
sshfs ×1
tensorflow ×1