Hướng dẫn model fit trong python
Chuyển đến nội dung chính Show Trình duyệt này không còn được hỗ trợ nữa. Hãy nâng cấp lên Microsoft Edge để tận dụng các tính năng mới nhất, bản cập nhật bảo mật và hỗ trợ kỹ thuật. Python tutorial: Train a linear regression model with SQL machine learning
Trong bài viết nàyApplies to: SQL Server 2017 (14.x) and later Azure SQL Managed Instance SQL Server 2017 (14.x) and later Azure SQL Managed Instance In part three of this four-part tutorial series, you'll train a linear regression model in Python. In the next part of this series, you'll deploy this model in a SQL Server database with Machine Learning Services or on SQL Server 2019 Big Data Clusters. In part three of this four-part tutorial series, you'll train a linear regression model in Python. In the next part of this series, you'll deploy this model in a SQL Server database with Machine Learning Services. In part three of this four-part tutorial series, you'll train a linear regression model in Python. In the next part of this series, you'll deploy this model in an Azure SQL Managed Instance database with Machine Learning Services. In this article, you'll learn how to:
In part one, you learned how to restore the sample database. In part two, you learned how to load the data from a database into a Python data frame, and prepare the data in Python. In part four, you'll learn how to store the model in a database, and then create stored procedures from the Python scripts you developed in parts two and three. The stored procedures will run in on the server to make predictions based on new data. Prerequisites
Train the modelIn order to predict, you have to find a function (model) that best describes the dependency between the variables in our dataset. This called training the model. The training dataset will be a subset of the entire dataset from the pandas data frame You will train model
Bạn sẽ thấy kết quả tương tự như sau.
Đưa ra dự đoánSử dụng hàm dự đoán để dự đoán số lượng cho thuê bằng mô hình
Bạn sẽ thấy kết quả tương tự như sau.
Bước tiếp theoTrong phần ba của loạt hướng dẫn này, bạn đã hoàn thành các bước sau:
Để triển khai mô hình học máy mà bạn đã tạo, hãy làm theo Phần bốn của loạt hướng dẫn này: Phản HồIGửi và xem ý kiến ph |