application_vnd.jupyter.stderr_output_2.png text_plain_output_1.png
from sklearn.ensemble import RandomForestRegressor

from xgboost import plot_tree

from xgboost import plot_tree

model = RandomForestRegressor(random_state=1)

model.fit(X_train, y_train)
preds_valid = model.predict(X_valid)

plot_tree(model, rankdir='LR', num_trees=1)