在 SQL 数据库上训练决策树分类器
Training a decision tree classifier on SQL database
我有一个 SQL 数据库,它有超过 100 万行,我想在上面训练一个决策树分类器
有什么方法可以直接训练 SQL 数据而无需将其转换为 Dataframe 或无需将其转换为 DataFrame
显然你可以 运行 python 和 SQL 中的 R 脚本,如果那是你要问的。这里有更多文档:
Blockquote
Execute Python and R scripts in SQL Server
SQL Server Machine Learning Services lets you execute Python and R scripts in-database. You can use it to prepare and clean data, do feature engineering, and train, evaluate, and deploy machine learning models within a database. The feature runs your scripts where the data resides and eliminates transfer of the data across the network to another server.
You can execute Python and R scripts on a SQL Server instance with the stored procedure sp_execute_external_script.
Base distributions of Python and R are included in Machine Learning Services. You can install and use open-source packages and frameworks, such as PyTorch, TensorFlow, and scikit-learn, in addition to the Microsoft packages.
我有一个 SQL 数据库,它有超过 100 万行,我想在上面训练一个决策树分类器
有什么方法可以直接训练 SQL 数据而无需将其转换为 Dataframe 或无需将其转换为 DataFrame
显然你可以 运行 python 和 SQL 中的 R 脚本,如果那是你要问的。这里有更多文档:
Blockquote Execute Python and R scripts in SQL Server SQL Server Machine Learning Services lets you execute Python and R scripts in-database. You can use it to prepare and clean data, do feature engineering, and train, evaluate, and deploy machine learning models within a database. The feature runs your scripts where the data resides and eliminates transfer of the data across the network to another server.
You can execute Python and R scripts on a SQL Server instance with the stored procedure sp_execute_external_script.
Base distributions of Python and R are included in Machine Learning Services. You can install and use open-source packages and frameworks, such as PyTorch, TensorFlow, and scikit-learn, in addition to the Microsoft packages.