自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

转载 visual studio 在C++ 类中初始化vector失败的问题

vector不是模板,list不是模板等问题。解决方法:1.在开头加上#include<vector>#include<list>2.vector和list在命名空间std里,还需要添加声明using namespace std; 引用:https://blog.csdn.net/theusprome/article/details/53637397...

2019-06-17 11:40:53 2762

原创 LeetCode C++求解 -1.TWO SUM

1.题目:Two SumGiven an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not ...

2019-05-16 10:46:57 133

原创 python报错:使用lgb过程中报错:DataFrame.dtypes for data must be int, float or bool

产生原因:用来训练的样本中包含了非 int, float or bool的数据类型修改:增加部分代码from sklearn import preprocessinglbl = preprocessing.LabelEncoder()train_x['acc_id1'] = lbl.fit_transform(train_x['acc_id1'].astype(str))#将提示的包含错误...

2018-11-02 12:05:30 27538 14

原创 python报错:对dataframe进行修改时产生SettingWithCopyWarning

报错:SettingWithCopyWarning:A value is trying to be set on a copy of a slice from a DataFrame.因为修改时有可能会改变原来的参数,所以报错。举例:import pandas as pdA = pd.DataFrame([[1,2,3],[4,5,6],[7,8,9]], columns = ['a','...

2018-11-01 23:53:07 691

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

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