Comments (5)
Hi @Alaya-in-Matrix, what is the version of numpy installed.
from deep-forest.
@xuyxu It's numpy 1.19.5
deep-forest==0.1.5
joblib==1.1.0
numpy==1.19.5
scikit-learn==1.0.2
scipy==1.7.3
threadpoolctl==3.0.0
from deep-forest.
The regression demo works fine with your package environment:
from sklearn.datasets import load_boston
from sklearn.model_selection import train_test_split
from sklearn.metrics import mean_squared_error
from deepforest import CascadeForestRegressor
X, y = load_boston(return_X_y=True)
X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=1)
model = CascadeForestRegressor(random_state=1)
model.fit(X_train, y_train)
y_pred = model.predict(X_test)
mse = mean_squared_error(y_test, y_pred)
print("\nTesting MSE: {:.3f}".format(mse))
In addition, the CascadeForestRegressor
also works fine if using xs = np.random.randn(10,1)
in your code snippet. The exception possibly is caused by using a toy dataset with too few number of samples.
from deep-forest.
@xuyxu That's exactly what I'm reporting, why would DF work for xs = np.random.randn(10,1)
but not work for randn(5,1)
? that makes no sense
from deep-forest.
Closed via #14
from deep-forest.
Related Issues (20)
- pip install deep-forest didn't work in wsl2 HOT 8
- pip install deep-forest didn't work in python3.10 HOT 3
- question HOT 8
- Please consider support on py310 HOT 1
- pip install deep-forest ERROR: Could not find a version that satisfies the requirement deep-forest (from versions: none) HOT 2
- np.int has been removed in munpy 1.24 HOT 5
- pip install doesn't work HOT 4
- What is the `model.get_later_feature_importance(0)` for? HOT 7
- Cannot find deep-forest in PyPI HOT 2
- Request for permission to cite your figure in the DF document HOT 3
- Unable to import CascadeForestClassifier HOT 7
- 导入出现错误 HOT 1
- Installation issues on Macbook Pro 2022 (Apple Silicon) and Ubuntu HOT 12
- module 'numpy' has no attribute 'int'. HOT 5
- The method to resolve the "import _cutils" issue. HOT 1
- 安装了deep-forest 但是出现 报错 HOT 3
- Is the numpy version of the dependency specified? HOT 1
- cannot import name 'CascadeForestClassifier' from 'deepforest'
- Use `pip install deep-forest` will encounter an ERROR! HOT 2
- fix np.int and np.bool HOT 4
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 deep-forest.