Skip to content

Commit

Permalink
updating clustering example in tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
htjb committed Aug 4, 2023
1 parent 6c7ab87 commit 90c74f7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions notebook/Tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
"source": [
"# Clustering with margarine\n",
"\n",
"The below example demonstrates how to perform clustering with `margarine` which can improve the accuracy of the emulation."
"The below example demonstrates how to perform clustering with `margarine` which can improve the accuracy of the emulation. The clustering class has all the same functionality as the MAF class."
]
},
{
Expand All @@ -254,7 +254,8 @@
"metadata": {},
"outputs": [],
"source": [
"flow = MAF(data, np.ones(len(data)), clustering=True)\n",
"from margarine.clustered import clusterMAF\n",
"flow = clusterMAF(data, np.ones(len(data)))\n",
"flow.train(10000, early_stop=True)"
]
},
Expand Down

0 comments on commit 90c74f7

Please sign in to comment.