蛋蛋

Results 3 issues of 蛋蛋

看到有人 @zhufree #13 贡献了批量改图的代码,我也是直接拿来用了,但是发现圆形锯齿比较明显,做了一点小小的优化:先画了一个很大的圆,然后缩放到应该大小,再蒙版剪裁。另外,也能支持jpg或者png的 ```python # coding:utf-8 from PIL import Image, ImageDraw import os # 尺寸 size_dict = { 1: 52, 2: 80, 3: 108, 4: 119, 5: 152, 6:...

提供的源代码中GetPoint函数如下,注释说返回的是预测得分。 ``` def GetPoint(model,point): """ 预测并返回结果(元组) :param model: 训练集构建的SVMWithSGD模型 :param point: 测试集数据,标准LabeledPoint类型数据 :return:(测试集预测得分,原始标签) """ score = model.predict(point.features) return (score,point.label) ``` 结合后续的scoreAndLabels推测,这里输出的应该是(预测得分,原始标签),并且指导书中也给出了输出样例: ``` …… -59045.132228013084 1.0 -81550.17634254562 1.0 -87393.69932070676 1.0 ……...

Thank you very much for your work. Unfortunately, the Scanrefer browser provided for online access cannot be accessed. I noticed that you use MongoDB, could you please tell me how...