排序:
默认
按更新时间
按访问量

DeprecationWarning: To avoid name collision with the igraph project, this visualization library has

DeprecationWarning: To avoid name collision with the igraph project, this visualization library has been renamed to ‘jgraph’. Please upgrade when con...

2018-07-16 13:44:42

阅读数:149

评论数:0

ImportError: No module named 'code.mkf_internal'; 'code' is not a package when I try to make a simpl

文件夹是code名,与python标准库同名了,修改之后就能import该文件夹中的文件了。https://github.com/rlabbe/Kalman-and-Bayesian-Filters-in-Python/issues/138

2018-07-16 13:38:56

阅读数:43

评论数:0

ValueError: Input graph and Layer graph are not the same: Tensor("hidden2/Relu:0", shape=(4, 150), d

Once you have launched a sess, you can use your_tensor.eval(session=sess) or sess.run(your_tensor) to get you feed tensor into the format of numpy.ar...

2018-06-08 14:31:46

阅读数:305

评论数:0

'transform' and 'fit_transform' in sklearn

在scikit-learn estimator的API中, fit() : 用来从训练数据产生一个学习模型(learning model)的参数 transform() : 利用 fit()方法应用在模型上产生的参数,然后transform() 方法生成转换后的数据集。 fit_tran...

2018-05-09 16:55:40

阅读数:29

评论数:0

pandas:read_csv() 找不到文件的错误

引用绝对路径的3种方法: #1 path1 = 'D:\\dataset\\nyc-taxi-trip-duration\\train.csv' train = pd.read_csv('path1') #2 之前这样引用同样报错,但是用1之后再这样引用就可以出现,不知道为什么 train = ...

2018-04-14 18:42:32

阅读数:1108

评论数:0

Error:a bytes-like object is required not str

用python3从网上导入的数据类型时bytes不能直接用str的方法,需要decode(‘utf8’)才行。 例子如下:target_url = ("https://archive.ics.uci.edu/ml/machine-learning-" "databa...

2017-12-10 17:05:04

阅读数:7203

评论数:2

F-score is ill-defined and being set to 0.0 due to no predicted samples.

还是StackOverflow:here 原话:F1 = 2 * (precision * recall) / (precision + recall)precision = TP/(TP+FP)as you’ve just said if predictor doesn’t predicts ...

2017-12-09 21:15:44

阅读数:1241

评论数:1

F1-Score "ValueError: Can't handle mix of binary and continuous"

引用StackOverflow:这里 其实很简单:比如我的真实数据标签是: array([1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0]) 下面是用回归得到的样本得分,注意这是回归得到的分数: array([ 0.07094605, ...

2017-12-09 21:09:39

阅读数:1888

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭