Comments (6)
t3.max_date_received.astype(float) - t3.date_received.astype(float)
from o2o-coupon-usage-forecast.
请问你解决了这个问题吗?
from o2o-coupon-usage-forecast.
@OUCWIND @Salomefu 你们解决了吗,我也是出现了这个错误
from o2o-coupon-usage-forecast.
@wepe
Traceback (most recent call last):
File "xgb.py", line 58, in
dataset3_preds.label = MinMaxScaler().fit_transform(dataset3_preds.label)#区间缩放到[0,1]
File "/home/cxy/anaconda3/lib/python3.6/site-packages/sklearn/base.py", line 518, in fit_transform
return self.fit(X, **fit_params).transform(X)
File "/home/cxy/anaconda3/lib/python3.6/site-packages/sklearn/preprocessing/data.py", line 308, in fit
return self.partial_fit(X, y)
File "/home/cxy/anaconda3/lib/python3.6/site-packages/sklearn/preprocessing/data.py", line 334, in partial_fit
estimator=self, dtype=FLOAT_DTYPES)
File "/home/cxy/anaconda3/lib/python3.6/site-packages/sklearn/utils/validation.py", line 410, in check_array
"if it contains a single sample.".format(array))
ValueError: Expected 2D array, got 1D array instead:
array=[-0.21156955 0.33369869 -0.30134243 ..., 0.08833629 -0.15614033
0.31751922].
Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample.
from o2o-coupon-usage-forecast.
@wepe
运行xgb.py运行到后面后出现这个问题 是什么意思呢
from o2o-coupon-usage-forecast.
@OUCWIND @wepe @CXY573 请问有解决吗,我也遇到这个问题
from o2o-coupon-usage-forecast.
Related Issues (20)
- 运行season one中的xgb.py出现问题 HOT 3
- 小白一枚请教简单问题 忘回答
- /wepon/season one 中extract_feature.py问题 HOT 11
- 运行wepon/sesson one/extract_feature.py出现错误 HOT 5
- 请问融合时gbdt和xgb的权值是如何最终确定下来的呢?
- 运行wepon/sesson one/extract_feature.py出现错误 HOT 1
- coupon相关的特征是context特征,为何只利用测试集构造?
- 你好,我是一个新人,运行wepon/sesson one/extract_feature.py出现错误
- 请问关于错误ValueError: invalid literal for int() with base 10: 'nan'你说设置参数,该怎么设置呀,我也是这个问题
- 请问代码为什么下载不了呢,我想学习一下
- 关于season1的训练集
- xgboost ValueError:特征名不匹配
- Spell check
- 在运行get_day_gap_before时出现了问题 HOT 1
- 滑窗法中节假日提取特征的疑问 HOT 7
- 提供的百度网盘的数据集无法解压 HOT 2
- 我把你的代码跑了一遍,出现报错,我目前是菜鸟,所以想出你这里学一下!有什么好的书可以推荐的吗
- wepon/season one下的coupon feature提取问题 HOT 1
- 请教最终训练集中的缺失值怎么处理?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from o2o-coupon-usage-forecast.