sklearn-predict | 机器学习数据,预测趋势并画图 | Machine Learning library
kandi X-RAY | sklearn-predict Summary
kandi X-RAY | sklearn-predict Summary
机器学习数据,预测趋势并画图
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Main function .
- Read data from file .
sklearn-predict Key Features
sklearn-predict Examples and Code Snippets
Community Discussions
Trending Discussions on sklearn-predict
QUESTION
I am working on trying to create a predictive regression model that forecasts the completion date of a number of orders.
My dataset looks like:
...ANSWER
Answered 2019-Aug-08 at 08:29As you're using pandas dataframes the index is retained in all your x/y train/test datasets, so you can re-assemble it after you applied the model. We just need to save the order numbers before dropping that column: order_numbers = data['ORDER_NUMBER']
. The predictions rf_predictions
are returned in the same order as the input data to rf.predict(X_test)
, i.e. rf_predictions[i]
belongs to X_test.iloc[i]
.
This creates your required result dataset:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sklearn-predict
You can use sklearn-predict like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page