How can I call and pass (X-test)in Excel to a python code which includes a trained ML model by using Xlwings addins and return the Y_pred value to excel cell
from sklearn.ensemble import RandomForestClassifier
forest = RandomForestClassifier(n_estimators = 10, criterion = 'entropy', random_state = 0)
forest.fit(X_train, Y_train)
Y_pred = forest.predict(X_test)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…