- 博客(4)
- 收藏
- 关注
转载 visual studio 在C++ 类中初始化vector失败的问题
vector不是模板,list不是模板等问题。解决方法:1.在开头加上#include<vector>#include<list>2.vector和list在命名空间std里,还需要添加声明using namespace std; 引用:https://blog.youkuaiyun.com/theusprome/article/details/53637397...
2019-06-17 11:40:53
3112
原创 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
161
原创 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
28194
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
789
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人