python手動將機器學習模型保存為json檔案

# 匯入需要的包和庫;
# Import Required packages
#-------------------------
# Import the Logistic Regression Module from Scikit Learn
from sklearn.linear_model import LogisticRegression
# Import the IRIS Dataset to be used in this Kernel
from sklearn.datasets import load_iris
# Load the Module to split the Dataset into Train & Test
from sklearn.model_selection import train_test_split
# 資料加載劃分及模型訓練;
# Load the data
Iris_data = https://blog.csdn.net/zhongkeyuanchongqing/article/details/load_iris()
# Split data
Xtrain, Xtest, Ytrain, Ytest = train_test_split(Iris_data.data,
Iris_data.target,
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/291772.html
標籤:AI
下一篇:基于DCGAN的動漫頭像生成
