Home >Technology peripherals >AI >Profit prediction is no longer difficult, scikit-learn linear regression method allows you to get twice the result with half the effort
Generative artificial intelligence is undoubtedly a game-changing technology, but for most business problems, traditional machine learning models such as regression and classification are still the first choice.
Rewritten content: Imagine how investors such as private equity or venture capital can leverage machine learning. To answer this question, you first need to understand what data investors care about and how it is used. Decisions about investing in companies are based not only on quantifiable data, such as expenses, growth, and cash burn rates, but also on qualitative data such as founder records, customer feedback, and product experience.
This article will introduce the basics of linear regression Knowledge, the complete code can be found here.
The content that needs to be rewritten is: [Code]: https://github.com/RoyiHD/linear-regression
This article will use Jupyter Notebook for this project. First import some libraries.
# 绘制图表import matplotlib.pyplot as plt# 数据管理和处理from pandas import DataFrame# 绘制热力图import seaborn as sns# 分析from sklearn.metrics import r2_score# 用于训练和测试的数据管理from sklearn.model_selection import train_test_split# 导入线性模型from sklearn.linear_model import LinearRegression# 代码注释from typing import List
In order to simplify the problem, this article will use regional data. The data represents the company's expense categories and profits. You can see some examples of different data points. This article hopes to use spending data to train a linear regression model and predict profits.
It’s important to understand that the data described in this article is about a company’s spending. Meaningful predictive power can only be derived when spending data is combined with data on revenue growth, local taxes, amortization and market conditions
R&D Spend |
Administration |
# #Marketing |
Investment income |
The content that needs to be rewritten is: 165349.2 | ##136897.8
| The content that needs to be rewritten is: 192261.83||
|
|
|
|
153441.51 |
##101145.55 | ##Needs to be rewritten The content is: 407934.54
The above is the detailed content of Profit prediction is no longer difficult, scikit-learn linear regression method allows you to get twice the result with half the effort. For more information, please follow other related articles on the PHP Chinese website!