Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add_features_from not functional #2200

Closed
Jingyu-Fan opened this issue May 30, 2019 · 3 comments
Closed

add_features_from not functional #2200

Jingyu-Fan opened this issue May 30, 2019 · 3 comments

Comments

@Jingyu-Fan
Copy link

Thank you for your time!

Environment info

Operating System: linux

CPU/GPU model: CPU

C++/Python/R version:Python

LightGBM version or commit hash:2.2.3

Error message

AttributeError: 'Dataset' object has no attribute 'add_features_from'

Reproducible examples

import numpy as np
import lightgbm as lgb

X1 = np.random.random((1000, 1))
X2 = np.random.random((1000, 1))

d1 = lgb.Dataset(X1).construct()
d2 = lgb.Dataset(X2).construct()
d1.add_features_from(d2)

@StrikerRUS
Copy link
Collaborator

Hi @Jingyu-Fan !
Unfortunately, add_features_from is presented only in master branch now. You can either build the package from sources or wait for #2138.

@Jingyu-Fan
Copy link
Author

It seems that if lightgbm is installed through "pip install lightgbm", the problem would occur, while building from source would resolve the problem

@Jingyu-Fan
Copy link
Author

Hi @Jingyu-Fan !
Unfortunately, add_features_from is presented only in master branch now. You can either build the package from sources or wait for #2138.

Thank you. Just found out the problem.

@lock lock bot locked as resolved and limited conversation to collaborators Mar 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants