Skip to content

Commit 6bdce65

Browse files
authored
Merge pull request #149 from StochasticTree/docs-update-0.1.1
Fixed tree inspection notebook
2 parents 072bf44 + d8890d8 commit 6bdce65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/notebooks/tree_inspection.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
"metadata": {},
135135
"outputs": [],
136136
"source": [
137-
"forest_preds_y_mcmc = bart_model.y_hat_test[:,bart_model.num_gfr:]\n",
137+
"forest_preds_y_mcmc = bart_model.y_hat_test\n",
138138
"y_avg_mcmc = np.squeeze(forest_preds_y_mcmc).mean(axis = 1, keepdims = True)\n",
139139
"y_df_mcmc = pd.DataFrame(np.concatenate((np.expand_dims(y_test,1), y_avg_mcmc), axis = 1), columns=[\"True outcome\", \"Average estimated outcome\"])\n",
140140
"sns.scatterplot(data=y_df_mcmc, x=\"Average estimated outcome\", y=\"True outcome\")\n",

0 commit comments

Comments
 (0)